Find a file
Martin Pitt a786d2fd16 Fix "unknown" battery status guessing to not be recursive
Stop querying the global "on-battery" property when trying to guess the status
of a battery which reports as "unknown", as "on-battery" is itself defined in
terms of the states of the individual batteries. Instead, guess the state based
on whether we have any AC available; if so, we can reasonably assume
charging/discharging based on whether any AC is online. If no AC is present,
assume discharging (as we did before), but only if we have only one battery.

Stop guessing for the case where we don't have any AC device, "unknown" battery
state, and multiple batteries, as then we can't know which battery is currently
discharging.

https://bugs.freedesktop.org/show_bug.cgi?id=24371
2011-04-26 11:50:36 +02:00
doc Add support for controlling leds keyboard backlights 2010-10-11 11:03:06 +01:00
etc Add a config option 'IgnoreLid' so users with broken / inverted lid switches don't suspend at session start 2011-03-28 16:41:02 +01:00
libupower-glib Add a LidForceSleep property to ensure that we don't melt any laptops 2011-02-02 13:44:09 +00:00
m4 trivial: add the m4 directory so fresh checkouts work correctly 2010-01-18 11:45:51 +00:00
po Port from EggDebug to the GLib built-in logging framework 2010-11-01 11:28:31 +00:00
policy trivial: Rename a few 'DeviceKit-power' strings we missed 2010-05-28 15:00:07 +01:00
rules Update the list of HID UPS devices 2010-12-01 10:41:28 +00:00
src Fix "unknown" battery status guessing to not be recursive 2011-04-26 11:50:36 +02:00
tools upower needs -pthread 2011-03-21 18:38:48 +00:00
.gitignore trivial: ignore libupshared too 2011-03-21 18:40:05 +00:00
AUTHORS trivial: add my copyright 2008-09-06 11:12:24 +01:00
autogen.sh Do not overwrite aclocal flags in autogen, fixes b.fd.o #35261 2011-03-31 19:45:24 +01:00
configure.ac -Wuninitialized needs -O 2011-03-21 18:40:00 +00:00
COPYING trivial: Rename a few 'DeviceKit-power' strings we missed 2010-05-28 15:00:07 +01:00
HACKING Fix links to git repository in HACKING 2010-12-27 10:26:18 +01:00
Makefile.am Honour ACLOCAL_FLAGS in Makefile.am 2011-03-14 10:10:40 +00:00
NEWS Released UPower 0.9.9 2011-03-21 10:11:17 +00:00
README trivial: another DeviceKit-power to UPower rename 2010-03-26 11:29:38 +00:00
RELEASE trivial: post release version bump 2011-03-21 10:14:59 +00:00
upower-glib.pc.in Fix libupower-glib include dir and pkgconfig 2010-02-16 11:55:28 +01:00

===============
UPower
===============

Requirements:

   glib-2.0         >= 2.6.0
   gio-2.0          >= 2.16.1
   dbus-1           >= 1.0
   dbus-glib-1      >= 0.76
   gudev-1.0        >= 001
   polkit-gobject-1 >= 0.91
   libusb

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.