Re: 2.6.30-rc1 (latest git): thinkpad-acpi: cannot control brightnesswith hotkeys

From: Niel Lambrechts
Date: Mon Apr 13 2009 - 11:16:36 EST


On 04/13/2009 03:21 AM, yakui_zhao wrote:
> On Mon, 2009-04-13 at 02:37 +0800, Niel Lambrechts wrote:
>
>> On 04/12/2009 06:14 PM, Henrique de Moraes Holschuh wrote:
>>
>>> On Sat, 11 Apr 2009, Andrew Morton wrote:
>>>
>>>
>>>>> With latest git kernel, I'm no longer able to control my Thinkpad (W500)
>>>>> brightness, although I can still control the backlight, bluetooth etc.
>>>>>
>>>>>
>>> Niels, something just occourred to me. Is your problem the hotkeys, or the
>>> brightness control itself? Check /sys/class/backlight/*, please. What do
>>> you have in there? Does it work?
>>>
>>>
>> Hi Henrique,
>>
> Will you please check whether there exists the /sys/class/backlight/*/*?
>
I already did mention that the directory does not exist when using
2.6.30 - see down below.

The directory only exists when I use 2.6.29.1 or 2.6.28.x, so there is
some type of regression.
>
> If not, will you please load the i915 driver and see whether the
> backlight can be controlled by hotkeys?(The CONFIG_DRM_I915_KMS should
> be enabled in kernel configuration).
>

I'm not using modeset=1, as I have even worse results with
i915.modeset=1 enabled (freezing system / black screen). So the results
I gave was using:

Graphics card: Mobile Intel GM45 Express Chipset

Option "EXANoComposite"
Option "AccelMethod" "exa"
Option "MigrationHeuristic" "greedy"
Option "ExaNoComposite" "false"
Option "VBERestore" "true"

> Thanks.
>
>> The directory is empty - this is when I used 2.6.30-rc1 (latest git)
>> from yesterday. I'll keep retrying with the latest git kernels though.
>>
>> The only additional observations I can provide is:
>> 1) pulling/plugging the power cord does actually have an effect on the
>> brightness.
>> 2) resuming form hibernate - Xorg is blank, until I simultaneously press
>> a keyboard key and touch the synaptics pad. But I have this problem in
>> 2.6.28/2.6.29 as well, and I guess it could either be vesafb or ACPI
>> related, as it also happened when I used s2disk in a console session
>> outside of X.
>>
>> In 2.6.29.1:
>> lrwxrwxrwx 1 root root 0 Apr 12 20:01 /sys/class/backlight/acpi_video0
>> -> ../../devices/virtual/backlight/acpi_video0
>>
>> which contains:
>> drwxr-xr-x 3 root root 0 Apr 12 20:01 ./
>> drwxr-xr-x 3 root root 0 Apr 12 20:01 ../
>> -r--r--r-- 1 root root 4096 Apr 12 20:02 actual_brightness
>> -rw-r--r-- 1 root root 4096 Apr 12 20:02 bl_power
>> -rw-r--r-- 1 root root 4096 Apr 12 20:02 brightness
>> -r--r--r-- 1 root root 4096 Apr 12 20:01 max_brightness
>> drwxr-xr-x 2 root root 0 Apr 12 20:02 power/
>> lrwxrwxrwx 1 root root 0 Apr 12 20:01 subsystem ->
>> ../../../../class/backlight/
>> -rw-r--r-- 1 root root 4096 Apr 12 20:01 uevent
>>
>> max_brightness = 15 and echoing values [0-15] to brightness controls it
>> as expected, or just using the standard thinkpad keys (Fn-Home to increase).
>>
Thanks
Niel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/