Find a file
Benjamin Berg 13f7cc7bb5 daemon: Update aggregate state matching and handle UNKNOWN state
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
2022-06-07 15:35:03 +02:00
.ci ci: Permit XML to be invalid to avoid issues with colored logs 2022-05-10 11:06:18 +02:00
dbus device: Only handle Refresh() method if in debug mode 2022-04-19 15:27:36 +02:00
doc meson: Bump meson version and fix deprecations 2022-05-10 15:39:24 +02:00
etc etc: Document Time* unit 2021-09-07 09:27:20 +00:00
libupower-glib device: Only handle Refresh() method if in debug mode 2022-04-19 15:27:36 +02:00
po po: Update translation files 2022-05-17 10:54:28 +02:00
rules rules: Update hwdb from upstream NUT 2022-05-16 14:00:52 +02:00
src daemon: Update aggregate state matching and handle UNKNOWN state 2022-06-07 15:35:03 +02:00
tools Remove Wakeups API 2022-03-24 17:02:27 +01:00
.gitlab-ci.yml ci: Compile all backends in the CI 2022-04-01 18:36:50 +02:00
AUTHORS trivial: add my copyright 2008-09-06 11:12:24 +01:00
code-of-conduct.md Add code of conduct document 2019-07-25 12:08:15 +02:00
COMMITMENT Add COMMITMENT file as part of GPL Common Cure Rights Commitment 2018-06-18 16:11:43 +01:00
COPYING trivial: Rename a few 'DeviceKit-power' strings we missed 2010-05-28 15:00:07 +01:00
HACKING HACKING: Mention "make check" in the file 2017-09-08 17:40:18 +02:00
meson.build Release 0.99.18 2022-05-17 10:54:28 +02:00
meson_options.txt rules: Update udev rules and migrate to use hwdb 2022-04-01 11:47:17 +02:00
NEWS Release 0.99.18 2022-05-17 10:54:28 +02:00
README README: Update dependencies 2021-09-02 17:39:30 +02:00
RELEASE RELEASE: Update notes on how to do releases 2022-02-09 17:53:54 +01:00

===============
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.