Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[battery-udev] Refresh all udev properties on heartbeat. Fixes JB#48324
There might not be udev notification about every battery capacity percent value change. While this is usually harmless when battery is sufficiently full, it can cause issues like missed battery low notifications and/or delay battery empty shutdown so much that battery gets too depleted for regular bootup. Poll power supply device properties in process watchdog heartbeat pace i.e. about every 36 seconds of uptime not spent in suspend. Periodic udev polling is enabled by default, but can be disabled via mce configuration. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 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