mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-04-05 17:10:40 +02:00
read-only-mirror of https://gitlab.freedesktop.org/upower/upower
The battery levels might have changed drastically compared to before sleep. Since we poll batteries at set intervals, it can take quite some time for the new level to be picked up by the polling code. Listen to the "PrepareForSleep" signal emitted by logind, that gets emitted on suspend and wake up. Pause polling globally on suspend, and refresh all devices manually and resume polling when waking up. https://bugs.freedesktop.org/show_bug.cgi?id=99763 |
||
|---|---|---|
| dbus | ||
| doc | ||
| etc | ||
| libupower-glib | ||
| m4 | ||
| po | ||
| rules | ||
| src | ||
| tools | ||
| AUTHORS | ||
| autogen.sh | ||
| 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.