After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750630 - Keyboard Backlight Toggle does not work with toshiba kbd_backlight_mode
Keyboard Backlight Toggle does not work with toshiba kbd_backlight_mode
Status: RESOLVED OBSOLETE
Product: gnome-settings-daemon
Classification: Core
Component: media-keys
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2015-06-09 12:17 UTC by ailin.nemui
Modified: 2019-03-20 11:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
script to toggle the keyboard light (302 bytes, text/x-c)
2015-06-09 20:13 UTC, ailin.nemui
Details

Description ailin.nemui 2015-06-09 12:17:36 UTC
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.

1) 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)

2) 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!
Comment 1 Bastien Nocera 2015-06-09 12:48:54 UTC
The fact that it cannot be rebound won't be fixed/changed, so I'll remove that from the bug title.

Thanks for the information on the rest though. I was testing a Toshiba laptop last week, and was wondering what kind of tricks the firmware was playing wrt. the keyboard backlight operation.

We'll have to see just how much work is necessary to make this work properly.
Comment 2 ailin.nemui 2015-06-09 20:13:34 UTC
Created attachment 304893 [details]
script to toggle the keyboard light

I attach a small sample script how to operate the keyboard light, but unfortunately it seems impossible to easily integrate this directly.
Comment 3 Hans de Goede 2017-05-19 08:52:57 UTC
Hi,

I stumbled over this one while looking to see if an issue I'm hitting atm was already filed.

IMHO this is a kernel bug, there should be a kernel driver which properly exports a led class device for the keyboard like it is done one both Dell and Lenovo laptops already.

Regards,

Hans
Comment 4 GNOME Infrastructure Team 2019-03-20 11:27:16 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/269.