Skip to content

use upower in battery module#4339

Open
devsnek wants to merge 1 commit into
Alexays:masterfrom
devsnek:use-upower-in-battery
Open

use upower in battery module#4339
devsnek wants to merge 1 commit into
Alexays:masterfrom
devsnek:use-upower-in-battery

Conversation

@devsnek

@devsnek devsnek commented Aug 2, 2025

Copy link
Copy Markdown

The battery module currently uses inotify to watch for changes to the uevent file in a power supply device. This does nothing, because inotify does not work on some pseudo-filesystems.

There is also a upower module, which is much simpler than the battery module, but also seems to serve a slightly different purpose (for example, monitoring bluetooth headphone battery level).

Due to this, I thought it might be best to just move the upower logic itself into a separate backend, and reuse it in both modules.

Fixes: #2662

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.

Battery Module updates only after clicking it

1 participant