Skip to content

Commit

Permalink
[buttonbacklight] Power off backlight after timeout. JB#42094
Browse files Browse the repository at this point in the history
The backlight for menu/home/back keys is enabled whenever UI side signals
that key events will be used for UI control. Previously this meant that an
android application is on top. Now that it is possible for these keys to
be used also in SFOS context, it as a side effect means that the backlight
is on practically always.

Keep the logical backlight enable policy as it were, but implement a layer
beneath it to allow powering off the button backlight after 5 seconds of
no significant activity (e.g. display state changes and input events not
related to touch screen).

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Nov 20, 2018
1 parent ae6c28b commit 117697f
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 60 deletions.
2 changes: 2 additions & 0 deletions .depend
Expand Up @@ -592,6 +592,7 @@ modules/buttonbacklight.o:\
modules/buttonbacklight.c\
builtin-gconf.h\
datapipe.h\
evdev.h\
mce-conf.h\
mce-dbus.h\
mce-log.h\
Expand All @@ -601,6 +602,7 @@ modules/buttonbacklight.pic.o:\
modules/buttonbacklight.c\
builtin-gconf.h\
datapipe.h\
evdev.h\
mce-conf.h\
mce-dbus.h\
mce-log.h\
Expand Down

0 comments on commit 117697f

Please sign in to comment.