mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-01 10:18:17 +02:00
read-only-mirror of https://gitlab.freedesktop.org/upower/upower
Currently, if a power supplies' power_now sysfs file reports discharge rates < 0.01 W, the code will try to calculate the discharge rate from the legacy sysfs files. On new kernels where those don't exist, this produces wrong results. For example, on a dual-battery Thinkpad T450s, while the external battery is discharging, the internal battery reports power_now = 0, but the corresponding upower energy-rate field incorrectly reads about 2.3 W. This patch fixes the issue by falling back to the legacy code only if the legacy current_now sysfs file exists. Closes: #7, #44 |
||
|---|---|---|
| .ci | ||
| dbus | ||
| doc | ||
| etc | ||
| libupower-glib | ||
| m4 | ||
| po | ||
| rules | ||
| src | ||
| tools | ||
| .gitlab-ci.yml | ||
| AUTHORS | ||
| autogen.sh | ||
| code-of-conduct.md | ||
| COMMITMENT | ||
| configure.ac | ||
| COPYING | ||
| git.mk | ||
| HACKING | ||
| Makefile.am | ||
| NEWS | ||
| README | ||
| RELEASE | ||
| upower-glib.pc.in | ||
=============== UPower =============== Requirements: glib-2.0 >= 2.34.0 gio-2.0 >= 2.16.1 gudev-1.0 >= 147 (Linux) libusb-1.0 >= 1.0.0 (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.