mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Forconi <forconi@wavecomm.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: KMS Framebuffer on Intel N2600 (GMA3600)
Date: Wed, 14 Nov 2012 11:52:55 +0000	[thread overview]
Message-ID: <20121114115255.2dfaefc9@pyramind.ukuu.org.uk> (raw)
In-Reply-To: <2055189652.1317458.1352882446411.JavaMail.root@zmail.sgconsulting.it>

>  - 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)

Ok

> 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.

Alan



  reply	other threads:[~2012-11-14 11:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1877610299.1316440.1352881150817.JavaMail.root@zmail.sgconsulting.it>
2012-11-14  8:40 ` Forconi
2012-11-14 11:52   ` Alan Cox [this message]
2012-11-14 16:48     ` Forconi
2012-11-14 17:17       ` Alan Cox
2012-11-15  9:09         ` Forconi
2012-11-15 12:57           ` Alan Cox
2012-11-16 14:50             ` Forconi
2012-11-16 15:44               ` Alan Cox
2012-11-16 16:32                 ` Forconi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121114115255.2dfaefc9@pyramind.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=forconi@wavecomm.it \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome