View Single Post
Old 02-08-10, 12:59 AM   #25
damdim
Registered User
 
Join Date: Jan 2010
Posts: 21
Default Re: Linux backlight driver

Quote:
Originally Posted by keptile View Post
To make the Fn keys to work, Ubuntu loads the sony-laptop module. When nvidia_bl is also loaded, then lshal shows two backlight devices in /sys/devices/virtual/backlight, which are sony and nvidia_backlight. Fn-F5, Fn-F6 keys, gnome-power-preferences and gnome-brightness applet actually work but they all change /sys/class/backlight/sony/brightness.

As a workaround, I use a slightly modified version of the script at
https://bugs.launchpad.net/ubuntu/+s...39/comments/26. Then I added two files into /etc/acpi/events to map Fn-F5 and Fn-F6 keys to change the brightness using that script.
Using xev I also see that Fn keys work when sony-laptop is loaded, but they control sony backlight instead of nvidia_backlight interface. I can even map them to various actions in kde, although there isn't any for controlling brightness. I read somewhere that KDE SC 4.4 might have these actions, but for now I also have to use your scripts...
Could you paste the code of these scripts, and how you mapped them with Fn keys?
Thanks.
damdim is offline   Reply With Quote