Bug 70367

Summary: Add keyboard backlight save/restore
Product: systemd Reporter: Bastien Nocera <bugzilla>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: bugzilla, teg
Version: unspecified   
Hardware: Other   
OS: All   
i915 platform: i915 features:
Attachments: Add support for saving/restoring keyboard backlights

Description Bastien Nocera 2013-10-11 07:47:48 UTC
Similarly to the screen backlight save and restore, we should make it possible to save and restore keyboard backlight levels.
Comment 1 Bastien Nocera 2013-10-11 07:48:17 UTC
Created attachment 87429 [details] [review]
Add support for saving/restoring keyboard backlights

Piggy-backing on the display backlight code, this saves and restores
keyboard backlights on supported devices.

The detection code matches that of UPower:

NOTE: Untested.
Comment 2 Tom Gundersen 2013-10-11 11:00:17 UTC
Thanks for the patch.

I applied it with a minor change: the matching on the kernel name was a bit too strict for some keyboard backlight devices (I could find at least "{samsung,asus,smc}::kbd_backlight" in the kernel).

Please check that this makes sense for you: http://cgit.freedesktop.org/systemd/systemd/commit/?id=1a0464230c08506c3fd715ff7cc56660df3a85ca

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.