Commit Graph

4 Commits

Author SHA1 Message Date
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
ajacoutot
f982995f2b Add a consistent header that substitutes FULLPKGNAME for the READMEs.
ok jasper@ sthen@
2011-06-02 13:41:36 +00:00
ajacoutot
86e446d37c Add obvious as it may seem, do notify that apmd(8) needs to be running
to access the full set of uPower functionnalities.

ok landry@ (maintainer) jasper@ (on a former diff)
2011-05-24 16:02:39 +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