[ltp] CALL FOR TESTING: thinkpad-acpi BETA release 0.14-20070708
Joseph Xu
linux-thinkpad@linux-thinkpad.org
Mon, 9 Jul 2007 03:38:36 -0400
So it turns out that the problem is because I have the nvidia nvs140m
graphics card and am using the nvidia proprietary driver. If I switch
to using the vesa driver, brightness works fine.
If I load the nvidia kernel module with the parameter
NVreg_EnableBrightnessControl=1, I can control the brightness in
console mode and then switch over to X, and the brightness will be
preserved. If I look at /var/log/acpid, I notice something like this
when I switch between console and X and adjust brightness:
[Mon Jul 9 03:06:06 2007] completed event "video LCD0 00000087 00000000"
** here I switch to a console, and then press brightness up twice **
[Mon Jul 9 03:14:53 2007] received event "video LCD0 00000087 00000000"
[Mon Jul 9 03:14:53 2007] notifying client 3169[105:108]
[Mon Jul 9 03:14:53 2007] notifying client 3767[0:0]
[Mon Jul 9 03:14:53 2007] notifying client 3767[0:0]
[Mon Jul 9 03:14:53 2007] client has disconnected
[Mon Jul 9 03:14:53 2007] completed event "video LCD0 00000087 00000000"
[Mon Jul 9 03:14:54 2007] received event "video LCD0 00000087 00000000"
[Mon Jul 9 03:14:54 2007] notifying client 3169[105:108]
[Mon Jul 9 03:14:54 2007] notifying client 3767[0:0]
[Mon Jul 9 03:14:54 2007] completed event "video LCD0 00000087 00000000"
** here I switch back to X **
[Mon Jul 9 03:14:58 2007] client connected from 3767[0:0]
[Mon Jul 9 03:14:58 2007] 1 client rule loaded
** here I press brightness up twice **
[Mon Jul 9 03:15:42 2007] received event "video LCD0 00000086 00000000"
[Mon Jul 9 03:15:42 2007] notifying client 3169[105:108]
[Mon Jul 9 03:15:42 2007] notifying client 3767[0:0]
[Mon Jul 9 03:15:42 2007] notifying client 3767[0:0]
[Mon Jul 9 03:15:42 2007] completed event "video LCD0 00000086 00000000"
[Mon Jul 9 03:15:43 2007] received event "video LCD0 00000086 00000000"
[Mon Jul 9 03:15:43 2007] notifying client 3169[105:108]
[Mon Jul 9 03:15:43 2007] notifying client 3767[0:0]
[Mon Jul 9 03:15:43 2007] notifying client 3767[0:0]
[Mon Jul 9 03:15:43 2007] completed event "video LCD0 00000086 00000000"
Process 3169 is hald-acpi-addon and process 3767 is X. When I'm using
the vesa driver, I only have a single client connection from 3767
rather than two when I'm in X. So it looks like there's something
about that second connection that's messing things up.
Anyway, I hope this information is useful to you in some way.
On 7/8/07, Henrique de Moraes Holschuh <hmh@hmh.eng.br> wrote:
> On Sun, 08 Jul 2007, Joseph Xu wrote:
> > There seem to be 16 levels of brightness when in the bios/console.
>
> Ok. Now I will need to figure out how to detect how many there are in a
> given thinkpad, to select the highest allowed level :(
>
> > I tried both with and without the ACPI video module loaded, without
> > success. Also, by disabling hotkeys I assume you mean something like #
> > echo disable >/proc/acpi/ibm/hotkey ? If so I tried that and the
> > brightness still won't change.
>
> Ok.
>
> >> So either something is telling ACPI video to keep it hands off the
> >> brightness control, or something is messing with the thinkpad and it is
> >> not
> >> generating the events ACPI video wants.
> >
> > Do you know of any way I can test for this?
>
> acpi_listen will tell you of any events, I think, even those processed by
> ACPI video.
>
> --
> "One disk to rule them all, One disk to find them. One disk to bring
> them all and in the darkness grind them. In the Land of Redmond
> where the shadows lie." -- The Silicon Valley Tarot
> Henrique Holschuh
>