acpibat sensor reporting the 'design capacity' of the battery. Fixes a
wrong notification about having a broken battery in KDE4.
From Fabian Raetz, thanks!
- use --enable-deprecated instead of passing -DENABLE_DEPRECATED via the
configure env, and add a comment explaining that it is about
deprecated featureset (the linux implem now uses logind APIs for
suspend/hibernate calls), nothing related to the G*DEPRECATED macros.
From ajacoutot@, also prodded by giovanni@ a while ago.
- backport upstream 7933b0e55234fca86809dad1dee53f0d8e2b96ec,
g_type_init() is deprecated with glib 2.36.
- use g_thread_try_new instead of deprecated g_thread_create (prodded by
ajacoutot@ too)
- include config.h in up-backend.h to reach ENABLE_DEPRECATED #define
The two last patches reported upstream in bug #70071
- Recognize a battery not being present (and reset various metrics accordingly)
- Recognize a fully charged battery
as discussed with and OK landry@ (MAINTAINER), aja@
Note that now by default, upowerd will run apm -C when running
on battery and apm -A when on AC, this can be disabled by setting
RunPowersaveCommand to false in etc/UPower/UPower.conf.
ok ajacoutot@
- remove history dir patches merged upstream
- fix deps wrt gettext module, update plist accordingly
- fix rate value, was wrong since last commit to acpibat.c
ok ajacoutot@
- 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...
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@