How to control keyboard backlight using hotkeys

keyboardkeyboard shortcutskeyboard-backlight

How can I turn increase and decrease the keyboard backlight in notebook on Linux using the same hotkeys used on Windows?

In Windows I can control the keyboard backlight by pressing hotkeys (FnF9 to decrease and FnF10 to increase), but in Linux it doesn't seems to have these hotkeys implemented as the keyboard backlight is a new and not most spread feature for the notebooks/ultrabooks.

Note: The Fn is working for normal features like display brightness and sound, just for controlling the keyboard backlight it is not configured correctly… But it works in the Linux, as I can turn it on in the Grub2 boot device selector, but not in the running Linux OS.

Just some extra-specs: OS : Linux (Mint Cinnamon 17). Notebook: Samsung Ativ Book 6.

Best Answer

The keys usually used to control keyboard backlight are XF86KbdBrightnessUp and XF86KbdBrightnessDown. You just need to find a way to bind it to the following shell command lines (and set the sudoers as needed):

# Light off the leds
sudo echo 0 > /sys/class/leds/asus::kbd_backlight/brightness
# Light on the leds (full power)
sudo echo 100 > /sys/class/leds/asus::kbd_backlight/brightness