Hi,
I'm trying to get Linux + KMS Framebuffer up and running on a board that has this hardware configuration:
- CPU: Intel Atom N2600
- Chipset: Intel NM10
- Integrated graphics system: Intel GMA 3600
- LCD Panel with LVDS controller (LCD resolution is 800x480, 18 bpp, 60Hz)
I have downloaded the latest 3.6.6 linux kernel and configured for my board.
The configuration for the framebuffer section is like this:
#
# Graphics support
#
# CONFIG_AGP is not set
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_VGA_SWITCHEROO is not set
CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_TTM=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_NOUVEAU is not set
#
# I2C encoder or helper chips
#
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_DRM_VMWGFX is not set
CONFIG_DRM_GMA500=y
# CONFIG_DRM_GMA600 is not set
CONFIG_DRM_GMA3600=y
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_CIRRUS_QEMU is not set
# CONFIG_STUB_POULSBO is not set
# CONFIG_VGASTATE is not set
CONFIG_VIDEO_OUTPUT_CONTROL=y
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB_DDC is not set
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_BOTH_ENDIAN is not set
# CONFIG_FB_BIG_ENDIAN is not set
# CONFIG_FB_LITTLE_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_WMT_GE_ROPS is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set
#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not set
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_TMIO is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_BROADSHEET is not set
# CONFIG_FB_AUO_K190X is not set
# CONFIG_EXYNOS_VIDEO is not set
CONFIG_BACKLIGHT_LCD_SUPPORT=y
# CONFIG_LCD_CLASS_DEVICE is not set
CONFIG_BACKLIGHT_CLASS_DEVICE=y
CONFIG_BACKLIGHT_GENERIC=y
# CONFIG_BACKLIGHT_PROGEAR is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LP855X is not set
#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
CONFIG_LOGO_LINUX_CLUT224=y
To boot my new kernel I use these parameters: video=LVDS-1:800x480-18@60D drm.debug=0x06
The kernel boots correctly but the LCD screen is completely black (with backlight off).
Using SSH I can login to my system and have a look at dmesg:
> CONFIG_DRM=y
> CONFIG_DRM_KMS_HELPER=y
> # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
Ok
> CONFIG_DRM_GMA500=y
> # CONFIG_DRM_GMA600 is not set
> CONFIG_DRM_GMA3600=y
Ditto
> To boot my new kernel I use these parameters: video=LVDS-1:800x480-18@60D drm.debug=0x06
> The kernel boots correctly but the LCD screen is completely black (with backlight off).
> Using SSH I can login to my system and have a look at dmesg:
> [ 5.749614] [drm:cdv_get_max_backlight], LVDS Panel PWM value is 0!
> [ 5.749622] [drm:cdv_get_max_backlight], LVDS Panel PWM value is 0!
> [ 5.749633] [drm] Initialized gma500 1.0.0 2011-06-06 for 0000:00:02.0 on minor 0
So the panel backlight register is set to indicate that the brightness
will be handled by the firmware in some other way and not by the graphics.
Do you have ACPI backlight support in your kernel ? Do you have the LVDS
panel enabled in the BIOS ?
It could be the value hasn't been initialised when it should have been,
it could be your hardware has some other interface for this.
If you look at cdv_device.c you'll see cdv_get_max_backlight() checks for
this case. If you can find out what the value should be then you can
substitute
if (max == 0) {
DRM_DEBUG_KMS("LVDS Panel PWM value is 0!\n");
/* i915 does this, I believe which means that we should
* smash PWM control as firmware will take control of it.
return 1;
}
with
if (max == 0)
max = max_value << 16;
and test that case. If that doesn't work then probably the backlight is
wired some other way. If ACPI handles it you may be able to handle it
that way. If it's a custom driver interface in Windows you may have a
problem.
> So the panel backlight register is set to indicate that the
> brightness
> will be handled by the firmware in some other way and not by the
> graphics.
> Do you have ACPI backlight support in your kernel ? Do you have the
> LVDS
> panel enabled in the BIOS ?
This backlight problem appears only when I run linux with KMS framebuffer,
when I run linux without KMS framebuffer, the backlight is always on.
Yes, I have ACPI enabled and ACPI backlight enabled, but running:
echo 100 > /sys/class/backlight/psb-bl/brightness
won't change anything.
In the BIOS there isn't any section relative to Video or LVDS settings.
But, in the end, this means that the driver si correctly loaded and the framebuffer is running but the panel backlight is off?
In other words, I can't see anything only because the backlight is off?
> It could be the value hasn't been initialised when it should have
> been,
> it could be your hardware has some other interface for this.
> If you look at cdv_device.c you'll see cdv_get_max_backlight() checks
> for
> this case. If you can find out what the value should be then you can
> substitute
> if (max == 0) {
> DRM_DEBUG_KMS("LVDS Panel PWM value is 0!\n");
> /* i915 does this, I believe which means that we
> should
> * smash PWM control as firmware will take control of
> it.
> return 1;
> }
> with
> if (max == 0)
> max = max_value << 16;
> and test that case. If that doesn't work then probably the backlight
> is
> wired some other way. If ACPI handles it you may be able to handle it
> that way. If it's a custom driver interface in Windows you may have a
> problem.
> Alan
I don't know which could be the maximum value, there are any standard values
for backlight settings? I could try setting some values and see what happens...
Thanks again for your help.
Regards,
Samuele.
-- Ing. Samuele Forconi
Responsabile Sviluppo SW
WaveComm S.r.l.
Sede legale: Via Donizetti 25, 53011 Castellina in Chianti (SI)
Sede operativa: Loc. Belvedere - Ingresso 2, 53034 Colle Val d'Elsa (SI)
Phone: (39) 0577 043101
Fax: (39) 0577 043101
Mobile: (39) 347 5899717
Skype: samueleforconi
E-mail: forc...@wavecomm.it
URL: www.wavecomm.it
Ai sensi del D. Lgs. n.196 del 30/06/2003, questo messaggio ed ogni suo allegato sono confidenziali e ad uso esclusivo del destinatario, il quale è l'unico autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità, diffonderlo. Se il ricevente non è il destinatario diretto del presente messaggio, è pregato di contattare l'originario mittente e di cancellare questo messaggio ed ogni suo allegato dal sistema di posta. Se il ricevente non è il destinatario diretto del presente messaggio, sono vietati l'uso, la riproduzione, e la stampa di questo messaggio e di ogni suo allegato, nonché la diffusione del loro contenuto a qualsiasi altro soggetto.
For the D. Lgs. n.196 of 30/06/2003, this message and any attachment are confidential and privileged for the the recipient identified above, who only may use, copy and, under his/her responsibility, further disseminate it. If you are not the intended recipient, please contact the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not use, copy or print this message or attachment or disclose the contents to any other person.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
> This backlight problem appears only when I run linux with KMS framebuffer,
> when I run linux without KMS framebuffer, the backlight is always on.
> Yes, I have ACPI enabled and ACPI backlight enabled, but running:
> echo 100 > /sys/class/backlight/psb-bl/brightness
psb-bl/backlight willbe the backlight of the graphics not the ACPI
driver. You may need to enable that and also hack the acpi_video code to
add it anyway on that device.
> But, in the end, this means that the driver si correctly loaded and the > framebuffer is running but the panel backlight is off?
> In other words, I can't see anything only because the backlight is off?
I think so.
> I don't know which could be the maximum value, there are any standard values
> for backlight settings? I could try setting some values and see what happens...
Unfortunately not - and I have no idea what overdriving it would do to
the hardware.
Reading the manual of the board I found this specification:
LVDS: 24-bit dual channel via CH7511 thru eDP
The Chrontel CH7511 is a DisplayPort (DP/eDP) to LVDS converter.
So, what I understand is that the LVDS interface that comes out
from the connector on the board is connected to the CH7511 that
is connected to the DP/eDP port on the CPU.
Until now I was starting the kernel with video=LVDS-1.....,
maybe I have to use another video device like DVI to use the eDP port?
Regards,
Samuele.
----- Messaggio originale -----
Da: "Alan Cox" <a...@lxorguk.ukuu.org.uk>
A: "Forconi" <forc...@wavecomm.it>
Cc: linux-ker...@vger.kernel.org
Inviato: Mercoledì, 14 novembre 2012 18:17:55
Oggetto: Re: KMS Framebuffer on Intel N2600 (GMA3600)
> This backlight problem appears only when I run linux with KMS framebuffer,
> when I run linux without KMS framebuffer, the backlight is always on.
> Yes, I have ACPI enabled and ACPI backlight enabled, but running:
> echo 100 > /sys/class/backlight/psb-bl/brightness
psb-bl/backlight willbe the backlight of the graphics not the ACPI
driver. You may need to enable that and also hack the acpi_video code to
add it anyway on that device.
> But, in the end, this means that the driver si correctly loaded and the > framebuffer is running but the panel backlight is off?
> In other words, I can't see anything only because the backlight is off?
I think so.
> I don't know which could be the maximum value, there are any standard values
> for backlight settings? I could try setting some values and see what happens...
Unfortunately not - and I have no idea what overdriving it would do to
the hardware.
Alan
-- Ing. Samuele Forconi
Responsabile Sviluppo SW
WaveComm S.r.l.
Sede legale: Via Donizetti 25, 53011 Castellina in Chianti (SI)
Sede operativa: Loc. Belvedere - Ingresso 2, 53034 Colle Val d'Elsa (SI)
Phone: (39) 0577 043101
Fax: (39) 0577 043101
Mobile: (39) 347 5899717
Skype: samueleforconi
E-mail: forc...@wavecomm.it
URL: www.wavecomm.it
Ai sensi del D. Lgs. n.196 del 30/06/2003, questo messaggio ed ogni suo allegato sono confidenziali e ad uso esclusivo del destinatario, il quale è l'unico autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità, diffonderlo. Se il ricevente non è il destinatario diretto del presente messaggio, è pregato di contattare l'originario mittente e di cancellare questo messaggio ed ogni suo allegato dal sistema di posta. Se il ricevente non è il destinatario diretto del presente messaggio, sono vietati l'uso, la riproduzione, e la stampa di questo messaggio e di ogni suo allegato, nonché la diffusione del loro contenuto a qualsiasi altro soggetto.
For the D. Lgs. n.196 of 30/06/2003, this message and any attachment are confidential and privileged for the the recipient identified above, who only may use, copy and, under his/her responsibility, further disseminate it. If you are not the intended recipient, please contact the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not use, copy or print this message or attachment or disclose the contents to any other person.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Forconi <forc...@wavecomm.it> wrote:
> Hi Alan,
> thanks again for your answer.
> Reading the manual of the board I found this specification:
> LVDS: 24-bit dual channel via CH7511 thru eDP
> The Chrontel CH7511 is a DisplayPort (DP/eDP) to LVDS converter.
> So, what I understand is that the LVDS interface that comes out
> from the connector on the board is connected to the CH7511 that
> is connected to the DP/eDP port on the CPU.
> Until now I was starting the kernel with video=LVDS-1.....,
> maybe I have to use another video device like DVI to use the eDP port?
Could help explain why there is no backlight. Initial eDP support got
added to the driver very recently so it might work but it should still
have decided itself you have eDP given a current kernel.
Hi Alan,
I wasn't be able to make the Linux Framebuffer run on my kernel, even if the kernel config seems to be correct.
I have decided to give a try to ubuntu-server because many users report to make their netbook screen work with cedarview-drm driver.
To be short, I installed ubuntu-server, installed a non-pae kernel (3.2.0.33), installed cedarview-drm package and configured grub with video=LVDS-1:d.
Framebuffer is up and running now with 800x480 resolution. I haven't investigated yet why ubuntu driver works and the one I built wit the 3.6.6 kernel not.
Thanks again for your support.
Regards,
Samuele.
----- Messaggio originale -----
Da: "Alan Cox" <a...@lxorguk.ukuu.org.uk>
A: "Forconi" <forc...@wavecomm.it>
Cc: linux-ker...@vger.kernel.org
Inviato: Giovedì, 15 novembre 2012 13:57:49
Oggetto: Re: KMS Framebuffer on Intel N2600 (GMA3600)
On Thu, 15 Nov 2012 09:09:35 +0000 (UTC)
Forconi <forc...@wavecomm.it> wrote:
> Hi Alan,
> thanks again for your answer.
> Reading the manual of the board I found this specification:
> LVDS: 24-bit dual channel via CH7511 thru eDP
> The Chrontel CH7511 is a DisplayPort (DP/eDP) to LVDS converter.
> So, what I understand is that the LVDS interface that comes out
> from the connector on the board is connected to the CH7511 that
> is connected to the DP/eDP port on the CPU.
> Until now I was starting the kernel with video=LVDS-1.....,
> maybe I have to use another video device like DVI to use the eDP port?
Could help explain why there is no backlight. Initial eDP support got
added to the driver very recently so it might work but it should still
have decided itself you have eDP given a current kernel.
Alan
-- Ing. Samuele Forconi
Responsabile Sviluppo SW
WaveComm S.r.l.
Sede legale: Via Donizetti 25, 53011 Castellina in Chianti (SI)
Sede operativa: Loc. Belvedere - Ingresso 2, 53034 Colle Val d'Elsa (SI)
Phone: (39) 0577 043101
Fax: (39) 0577 043101
Mobile: (39) 347 5899717
Skype: samueleforconi
E-mail: forc...@wavecomm.it
URL: www.wavecomm.it
Ai sensi del D. Lgs. n.196 del 30/06/2003, questo messaggio ed ogni suo allegato sono confidenziali e ad uso esclusivo del destinatario, il quale è l'unico autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità, diffonderlo. Se il ricevente non è il destinatario diretto del presente messaggio, è pregato di contattare l'originario mittente e di cancellare questo messaggio ed ogni suo allegato dal sistema di posta. Se il ricevente non è il destinatario diretto del presente messaggio, sono vietati l'uso, la riproduzione, e la stampa di questo messaggio e di ogni suo allegato, nonché la diffusione del loro contenuto a qualsiasi altro soggetto.
For the D. Lgs. n.196 of 30/06/2003, this message and any attachment are confidential and privileged for the the recipient identified above, who only may use, copy and, under his/her responsibility, further disseminate it. If you are not the intended recipient, please contact the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not use, copy or print this message or attachment or disclose the contents to any other person.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Forconi <forc...@wavecomm.it> wrote:
> Hi Alan,
> I wasn't be able to make the Linux Framebuffer run on my kernel, even if the kernel config seems to be correct.
> I have decided to give a try to ubuntu-server because many users report to make their netbook screen work with cedarview-drm driver.
> To be short, I installed ubuntu-server, installed a non-pae kernel (3.2.0.33), installed cedarview-drm package and configured grub with video=LVDS-1:d.
> Framebuffer is up and running now with 800x480 resolution. I haven't investigated yet why ubuntu driver works and the one I built wit the 3.6.6 kernel not.
Glad to hear that. Can you let me know the version number of the
cedarview-drm driver you are using. That helps me as the open source
driver is derived from that code so I know if you've got a newer version
for example.
----- Messaggio originale -----
Da: "Alan Cox" <a...@lxorguk.ukuu.org.uk>
A: "Forconi" <forc...@wavecomm.it>
Cc: linux-ker...@vger.kernel.org
Inviato: Venerdì, 16 novembre 2012 16:44:43
Oggetto: Re: KMS Framebuffer on Intel N2600 (GMA3600)
On Fri, 16 Nov 2012 14:50:54 +0000 (UTC)
Forconi <forc...@wavecomm.it> wrote:
> Hi Alan,
> I wasn't be able to make the Linux Framebuffer run on my kernel, even if the kernel config seems to be correct.
> I have decided to give a try to ubuntu-server because many users report to make their netbook screen work with cedarview-drm driver.
> To be short, I installed ubuntu-server, installed a non-pae kernel (3.2.0.33), installed cedarview-drm package and configured grub with video=LVDS-1:d.
> Framebuffer is up and running now with 800x480 resolution. I haven't investigated yet why ubuntu driver works and the one I built wit the 3.6.6 kernel not.
Glad to hear that. Can you let me know the version number of the
cedarview-drm driver you are using. That helps me as the open source
driver is derived from that code so I know if you've got a newer version
for example.
Alan
-- Ing. Samuele Forconi
Responsabile Sviluppo SW
WaveComm S.r.l.
Sede legale: Via Donizetti 25, 53011 Castellina in Chianti (SI)
Sede operativa: Loc. Belvedere - Ingresso 2, 53034 Colle Val d'Elsa (SI)
Phone: (39) 0577 043101
Fax: (39) 0577 043101
Mobile: (39) 347 5899717
Skype: samueleforconi
E-mail: forc...@wavecomm.it
URL: www.wavecomm.it
Ai sensi del D. Lgs. n.196 del 30/06/2003, questo messaggio ed ogni suo allegato sono confidenziali e ad uso esclusivo del destinatario, il quale è l'unico autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità, diffonderlo. Se il ricevente non è il destinatario diretto del presente messaggio, è pregato di contattare l'originario mittente e di cancellare questo messaggio ed ogni suo allegato dal sistema di posta. Se il ricevente non è il destinatario diretto del presente messaggio, sono vietati l'uso, la riproduzione, e la stampa di questo messaggio e di ogni suo allegato, nonché la diffusione del loro contenuto a qualsiasi altro soggetto.
For the D. Lgs. n.196 of 30/06/2003, this message and any attachment are confidential and privileged for the the recipient identified above, who only may use, copy and, under his/her responsibility, further disseminate it. If you are not the intended recipient, please contact the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not use, copy or print this message or attachment or disclose the contents to any other person.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/