mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 07:38:17 +02:00
read-only-mirror of https://gitlab.freedesktop.org/upower/upower
Stop trying to guess a battery state based on the AC information for a single battery. Instead, just do the guessing in the display device. This means that cases with more than one battery work fine. It also means that we still report an UNKNOWN state for the battery itself. Also get the on_battery information from the display devices discharging state, there is no need to iterate all of the batteries to figure that out. Note that we don't really have a well defined state for the display device in all cases. We'll add a test in the next step, marking those cases as TBD or ANY to show where the issues are. AFAICT we do not have a regression though, so this should be fine for now. Fixes: #146 |
||
|---|---|---|
| .ci | ||
| dbus | ||
| doc | ||
| etc | ||
| libupower-glib | ||
| po | ||
| rules | ||
| src | ||
| tools | ||
| .gitlab-ci.yml | ||
| AUTHORS | ||
| code-of-conduct.md | ||
| COMMITMENT | ||
| COPYING | ||
| HACKING | ||
| meson.build | ||
| meson_options.txt | ||
| NEWS | ||
| README | ||
| RELEASE | ||
=============== UPower =============== Requirements: glib-2.0 >= 2.34.0 gio-2.0 >= 2.16.1 gudev-1.0 >= 235 (Linux) libimobiledevice-1.0 >= 0.9.7 (optional) UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics. Any application or service on the system can access the org.freedesktop.UPower service via the system message bus.