Most posts about changing the brightness on a Sony Vaio (I have an FZ4000) refer to installing spicctrl or nvclock and then using those settings to change it, but in Karmic Koala, you can just install the recommended video driver and use the smartdimmer command.
Usage: smartdimmer [OPTION]...
Options:
-g --get Query brightness level.
-s --set <level> Set brightness level (15-100)
-i --increase Increase brightness with one level.
-d --decrease Decrease brightness with one level.
-h --help Prints this help text.
So first I made files for the brightness up and down settings:
Then add the following code into that file:Code:$ sudo gedit /etc/acpi/events/sony-brightness-down
Next you need to do the same but for the brightness up file.Code:event=sony/hotkey SNC 00000001 00000010 action=smartdimmer -d
Code:$ sudo gedit /etc/acpi/events/sony-brightness-upNow the keys have binds and all you need to do is restart the acpidCode:event=sony/hotkey SNC 00000001 00000011 action=smartdimmer -i
Code:$ sudo restart acpid
Now you should have working brightness up/down keys for your Vaio.



Adv Reply
Bookmarks