[ltp] Brightness up/down with video module

rocku linux-thinkpad@linux-thinkpad.org
Wed, 07 May 2008 02:14:09 +0200


Yves-Alexis Perez pisze:
> On jeu, 2008-05-01 at 15:02 +0200, Yves-Alexis Perez wrote:
>> On jeu, 2008-05-01 at 15:52 +0300, Marius Gedminas wrote:
>>> Now this all works, I don't know.  I have the ACPI video module
>>> loaded,
>>> HAL is running, X is running, and I get nice GNOME popups showing
>> the
>>> video level.  xev shows key press events (keycodes 212 and 101), but
>>> no
>>> X symbol is assigned to them.
>> I guess ubuntu guys patched their hal/gnome-power-manager to manage
>> this. It'd have been nice to know how, but hey.
> 
> I've found a parameter to the video module, which is
> brightness_switch_enabled on vanilla kernel (and automatic_change on
> ubuntu kernels).
> 
> If I set it to “no” (echo N
>> /sys/modules/video/parameters/brightness_switch_enabled),
> gnome-power-manager is able to use brightness keys.

I've compiled 2.6.25 from sid's repository today and the new video 
module does make brightness keys work perfect! I also had to change this 
parameter.

> 
> Could you tell me what you have
> in /sys/modules/video/parameters/automatic_change?

I don't have this file there. The only one I have is 
brightness_switch_enabled

-- 
Pozdrawiam,
rocku
digimortal@wp.pl