Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[buttonbacklight] Implement button backlight policy. JB#39838
Devices designed with Android in mind can have menu/home/back buttons in front face. In some devices these buttons are practically invisible unless the underlying button backlight is turned on. Add D-Bus interface that can used by applications and/or lipstick for requesting and tracking button backlight state. Implement policy that turns button backlight on when: - Related sysfs controls have been defined in mce configuration - At least one D-Bus client has requested backlight - Display is powered up - Lockscreen is not active Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
8 changed files
with
902 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Configuration file for MCE - android buttons backlight control | ||
|
||
[ButtonBacklight] | ||
|
||
ControlPath=/sys/class/leds/button-backlight/brightness | ||
ControlValueEnable=1 | ||
ControlValueDisable=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.