GNOME Bugzilla – Bug 682564
keyboard backlight toggle functions incorrectly
Last modified: 2012-09-17 16:49:33 UTC
The keyboard backlight toggle functionality in g-s-d is not hooked up correctly - pressing the 'toggle' key on my keyboard causes g-s-d to decrease the keyboard backlight brightness rather than toggling it on/off. The underlying events are working fine; udev emits 'kbdillumtoggle', for example. The problem is in gsd-media-keys-manager's do_keyboard_brightness_action(), which has not been updated to pass KEYBOARD_BRIGHTNESS_TOGGLE_KEY events to the power plugin.
Created attachment 222253 [details] [review] Patch against git master Patch tested on g-s-d 3.4.2 in Ubuntu on a MacbookPro 3,1. The patch does uncover some bugs in the power plugin - looks like the power plugin can get confused if you toggle the backlight when it's set to mix or max brightness. Those do not appear to be side effects of this patch.
Committed with a few changes.
(In reply to comment #1) > Patch tested on g-s-d 3.4.2 in Ubuntu on a MacbookPro 3,1. The patch does > uncover some bugs in the power plugin - looks like the power plugin can get > confused if you toggle the backlight when it's set to mix or max brightness. > Those do not appear to be side effects of this patch. Please file those bugs separately.