Re: i915/kms/backlight-combo mode problem (was: Re: Linux 2.6.39-rc5)

From: Keith Packard
Date: Sat Jan 21 2012 - 13:32:28 EST


On Sat, 21 Jan 2012 17:09:25 +0000, Chris Diamand <chris.diamand@xxxxxxxxx> wrote:
> Hi,
>
> I have the problem described in the thread here
> (https://lkml.org/lkml/2011/4/29/217) where the backlight
> values are reversed so although stuff is displayed on the screen, the
> backlight is off. This occurs with kernels from about 2.6.39 onwards.
>
> After booting a "broken" kernel (>~2.6.39), the backlight can be lit
> temporarily with:
> setpci -s 00:02.0 F4.B=0
> and then turned off with:
> setpci -s 00:02.0 F4.B=FF

Can you experiment with other values? I'd like to know if it's
completely reversed, or if there's some other interaction here.

Testing 0x80, 0x7f, 0x01, 0xfe would all be interesting to me.

I suspect that writes to the LPBC value are being trapped by SMI and
'doing things' underneath.

> Yesterday I tried this patch, https://lkml.org/lkml/2011/4/30/37 by
> manually applying it to the 3.2.1
> kernel source - this fixes the problem.

Can you still turn the backlight off with this patch in place?

> ** Unfortunately the LKML thread stops after this patch and given that
> the problem is still present in the latest source, this code wasn't
> pushed into the kernel. Is there a reason for this or was it just
> forgotten about? What can I do about this? I am happy to make a git
> patch with the latest source if this will help.

The patch would completely bypass LPBC-based brightness controls if the
backlight happened to be off when the driver started, which isn't
exactly what you want.

--
keith.packard@xxxxxxxxx

Attachment: pgp00000.pgp
Description: PGP signature