Commit Graph

5 Commits

Author SHA1 Message Date
dcoppa
d565673e24 Make upower behave like apmd (check for minutes_left to be > 0, not >= 0)
While here, reword comment a little bit.

OK ajacoutot@
2011-07-08 08:16:09 +00:00
dcoppa
35708a7e9c Update to upower-0.9.12 plus fixes.
Discussed with and OK landry@, ajacoutot@
2011-07-07 19:02:43 +00:00
landry
20ab02eecb Fix history in upower :
- don't try to fetch from dev/apm if the fd isn't available yet (to be
  discussed with upstream)
- use var/db/upower to store history files

Fixes graphs in gnome-power-statistics...
2011-06-17 15:08:36 +00:00
landry
78cde93ac6 Update to upower 0.9.11, remove patches merged upstream, add a patch
from jasper@ to fix an implicit declaration warning (pushed upstream)
2011-05-30 07:48:53 +00:00
landry
f7272cc878 Import upower 0.9.10:
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 DBUS system message bus.

OpenBSD specific backend written by yours truly with help from upstream
developer. So far, battery levels and ac status works, using either apm
or acpibat/acpiac if available.

As a sidenote, if udev, udisks and friends were designed with the same
clear separation between os-specific and generic parts, porting to
'alternative OSes' would be much simpler. UPower is a nice example of
'how to design a portable service'.

with a patch for glib version check, tweaks and ok ajacoutot@
2011-05-23 19:04:57 +00:00