Skip to content

battery: optionally use capacity_level for determining battery state#63

Open
sicelo wants to merge 1 commit into
maemo-leste:masterfrom
sicelo:upowered
Open

battery: optionally use capacity_level for determining battery state#63
sicelo wants to merge 1 commit into
maemo-leste:masterfrom
sicelo:upowered

Conversation

@sicelo
Copy link
Copy Markdown
Contributor

@sicelo sicelo commented Mar 26, 2025

Requires upower with a patch to expose capacity_level on sysfs [0]. The functionality is enabled in the config file. It is additionally possible to configure mce to consider the battery as completely empty when capacity_level reports "Low".

[0] https://gitlab.freedesktop.org/upower/upower/-/merge_requests/259

Comment thread src/modules/battery-upower.c
Comment thread src/modules/battery-upower.c
Requires upower with a patch to expose capacity_level on sysfs [0]. The
functionality is enabled in the config file. It is additionally possible to
configure mce to consider the battery as completely empty when capacity_level
reports "Low".

[0] https://gitlab.freedesktop.org/upower/upower/-/merge_requests/259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants