I installed Mint 15 (Cinnamon) and later Ubuntu 12.04 LTS on my old sony laptop Vaio VGN-FJ170. My problem is that in both OS laptop can't detect the press of Fn key combinations. I investigated a bit and found that at least some functionality of sony-laptop module in kernel works - display brightness could be changed through Ubuntu settings (and it works through changing setting file in /sys/devices/platform/sony-laptop see below).
I tried to see if os could detect Fn+F2 and other things by using acpi_listen or through xev. Nothing comes through...
However, After pressing FN+Fkey combination file /sys/devices/platform/sony-laptop/fnkey changes with specific codes:
Fn+F2 - (audio mute) - fnkey file content changes to 1;
Fn+F3 - (Vol down) - fnkey file content changes to 2;
Fn+F4 - (Vol Up) - fnkey file content changes to 4;
Fn+F5 - (Brightness down) - fnkey file content changes to 8;
Fn+F6 - (Brightness up) - fnkey file content changes to 16;
Fn+F7 - (Video output change) - fnkey file content changes to 32;
Fn+F10 - (Zoom) - fnkey file content changes to 1024;
Fn+F12 - (Sleep) - fnkey file content changes to 64;
No other key combination changes value of /sys/devices/platform/sony-laptop/fnkey
I guess it is possible to write a daemon which will watch content of this file and translate it to something which could be detected by window manager and used to trigger keyboard shortcuts... But this is well beyond my capabilities... Could someone please help?
Changing display brightness works as well, but I don't know how to actually tie it to daemon or somehow make it accessible through GUI...Here is the details:
File /sys/class/backlight/sony/brightness controls actual brightness of the screen (values are integers from 0[lowest] to 7[highest]).
Command
Code: Select all
sudo sh -c 'echo "0" > /sys/class/backlight/sony/brightness'
I dont know system command to change volume of the sound or mute.
Please help me to utilize this in GUI.
Thank you in advance!