Find a file
Peter Wu 347b8b0b93 hidpp: try harder not to report 0% battery
(1) If the K800 keyboard is charging via the USB cable, it will report
     itself as Charging, but with a discharge level of 0 (which means
     "unknown". In this case, the previous known value (before
     connecting the cable) is always a better approximation than using
     zero.
 (2) When the K800 has fully charged (but with the cable still plugged
     in), it will still report 0 as discharge level. "Full" is 100% by
     definition, so let's fallback to that value.

Signed-off-by: Peter Wu <lekensteyn@gmail.com>
Signed-off-by: Martin Pitt <martinpitt@gnome.org>
2013-09-04 07:12:37 +02:00
doc Update the upower man page with all the current options 2013-05-07 14:01:28 +01:00
etc Add boolean RunPowersaveCommand to UPower.conf 2012-01-06 16:40:09 +00:00
libupower-glib Make GetHistory() array order consistent 2013-08-29 10:44:26 +02:00
m4 Use PIE to better secure installed tools and also use full RELRO in the daemon 2013-05-07 14:07:31 +01:00
po Port from EggDebug to the GLib built-in logging framework 2010-11-01 11:28:31 +00:00
policy Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
rules build: detect udev rules dir 2013-05-07 14:15:26 +01:00
src hidpp: try harder not to report 0% battery 2013-09-04 07:12:37 +02:00
tools trivial: Stop calling deprecated g_type_init() 2013-08-29 11:10:15 +02:00
AUTHORS trivial: add my copyright 2008-09-06 11:12:24 +01:00
autogen.sh Use upstream gettext instead the glib one 2011-07-19 12:16:30 +01:00
configure.ac trivial: post release version bump 2013-07-26 15:53:41 +01:00
COPYING trivial: Rename a few 'DeviceKit-power' strings we missed 2010-05-28 15:00:07 +01:00
git.mk Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
HACKING Fix links to git repository in HACKING 2010-12-27 10:26:18 +01:00
Makefile.am trivial: Fix the gitignore files 2013-05-07 14:13:08 +01:00
NEWS Released UPower 0.9.21 2013-07-26 15:52:42 +01:00
README trivial: another DeviceKit-power to UPower rename 2010-03-26 11:29:38 +00:00
RELEASE trivial: post release version bump 2013-07-26 15:53:41 +01: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.