Originally Posted by keptile
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
. 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?