Keyboard Backlight Toggle does not work with toshiba kbd_backlight_mode
@Nei
Submitted by Ailin Nemui Link to original bug (#750630)
Description
I have a keyboard with backlight. The backlight has a toggle key on the keyboard (Fn+Z) which is recognised as XF86KbdLightOnOff
This key is bound in gsd-media-keys-manager to run some action on a UPower proxy.
-
I cannot assign this key to another program in gnome-control-center / Keyboard / Shortcuts. It is properly detected when assigning (as KbdLightOnOff) but ignored when pressed (the original Gnome pop-up still appears)
-
The Keyboard Backlight control as done by GNOME does not have any effect
Since it only tries to use the UPower/KbdBacklight proxy, which is in fact a Brightness control. The way it seems to detect it is by scanning /sys/class/leds/* for kbd_backlight.
However, the Backlight in the Toshiba Z-30 is a tri-state toggle: ON/OFF/Automatic after delay, without any configurable brightness. As such, I need to write the bits 2, 4 or 5 to /sys/devices/platform/*/firmware_node/kbd_backlight_mode. It does not have any kbd_backlight file in /sys/class/leds.
If I could bind a script to this key, I would be able to fix this. Or if UPower supported tri-state keyboard backlights, I suppose it might work as well.
Thanks for your help!