Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[batterytracker] Track battery state via MCE D-Bus interface. JB#41302
DSME maintains battery status by reading statefs provided files
periodically. While period length is adjusted based on various system
states, it still manages to do both too little and too much.

Tap into battery and charger state data made available by MCE on D-Bus,
so that DSME gets changes as they happen without delay.

The existing configuration files are still supported, but only
battery empty shutdown level is used from them.

Update dependencies as required constants are in libdsme >= 0.66.0.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Apr 10, 2018
1 parent a46e933 commit b790dbd
Show file tree
Hide file tree
Showing 3 changed files with 1,760 additions and 328 deletions.
2 changes: 1 addition & 1 deletion Makefile.custom
Expand Up @@ -325,6 +325,7 @@ CLEAN_SOURCES += dsme/dsme-rd-mode.c
CLEAN_SOURCES += dsme/dsmesock.c
CLEAN_SOURCES += dsme/timers.c
CLEAN_SOURCES += modules/abootsettings.c
CLEAN_SOURCES += modules/batterytracker.c
CLEAN_SOURCES += modules/dbusautoconnector.c
CLEAN_SOURCES += modules/dbusproxy.c
CLEAN_SOURCES += modules/diskmonitor.c
Expand Down Expand Up @@ -370,7 +371,6 @@ DIRTY_SOURCES += dsme/modulebase.c
DIRTY_SOURCES += dsme/oom.c
DIRTY_SOURCES += getbootstate/getbootstate.c
DIRTY_SOURCES += modules/alarmtracker.c
DIRTY_SOURCES += modules/batterytracker.c
DIRTY_SOURCES += modules/bootreasonlogger.c
DIRTY_SOURCES += modules/emergencycalltracker.c
DIRTY_SOURCES += modules/iphb.c
Expand Down

0 comments on commit b790dbd

Please sign in to comment.