36 Commits

Author SHA1 Message Date
jca
d3d2adf032 Unbreak on gcc archs
up-device.c:277: error: #pragma GCC diagnostic not allowed inside functions

ok landry@ (maintainer)
2017-11-04 23:32:03 +00:00
landry
d59d71a674 Update to upower 0.99.6.
See
https://lists.freedesktop.org/archives/devkit-devel/2017-July/001792.html
&
https://lists.freedesktop.org/archives/devkit-devel/2017-September/001793.html
2017-10-28 16:31:28 +00:00
landry
2b44435f7e Add proper error and cancellable handling to UpClient constructor
Backport https://cgit.freedesktop.org/upower/patch/?id=932a6a39e35754be571e1274aec4730fd42dba13
from https://bugs.freedesktop.org/show_bug.cgi?id=95350

First part of a larger fix for xfsettingsd crashes when systemwide dbus
isn't running.

ok/testing edd@
2016-09-01 10:11:47 +00:00
jasper
a00f3ab0cd add link to upstream bz 2016-08-29 08:40:38 +00:00
jasper
1560e48f17 Remove pointless upperbound, SENSOR_MAX_TYPES has no meaning here and we
break from the loop anyway when needed (when ENOENT is returned). This makes
it in line with other sensor walkers.

ok landry@ (MAINTAINER)
2016-05-04 11:11:55 +00:00
landry
e65a3f6048 Updqte to upower 0.99.4
https://lists.freedesktop.org/archives/devkit-devel/2016-February/001751.html

ok ajacoutot@
2016-04-26 12:37:43 +00:00
ajacoutot
7dc0772564 Update to upower-0.99.3.
ok landry@ (maintainer)
2015-05-30 07:26:09 +00:00
landry
e6fff4da4b Add a patch to improve error handling when the systemwide dbus is not
running. Applications using libupower-glib should "gracefully" handle that
situation now...
2015-04-03 12:08:10 +00:00
ajacoutot
6f0354f67f Fix crash on uninitialized variant with new GLib. 2015-03-27 16:03:33 +00:00
landry
50cc7917e3 Update to upower 0.99.1.
Remove patch merged upstream, and now useless dep on polkit.
ok ajacoutot@
2014-09-02 19:23:33 +00:00
landry
e5f93f12b7 Add EnergyFullDesign and Capacity properties, getting them via the new
acpibat sensor reporting the 'design capacity' of the battery. Fixes a
wrong notification about having a broken battery in KDE4.

From Fabian Raetz, thanks!
2014-05-23 19:21:06 +00:00
jasper
1ab83c3f46 committed upstream 2014-04-23 09:55:18 +00:00
jasper
67685dc7e1 submitted upstream 2014-04-20 18:20:43 +00:00
jasper
9b52f0eddd add a way to recognize the lid (wether it's present, open/closed). thanks to
landry for finding the "right" spot to hook it up.

ok landry@ (MAINTAINER)
2014-04-20 18:03:23 +00:00
landry
0fdccd8ce6 Straightforward update to upower 0.9.23, mostly integrating our patches
before giving us the middle finger with the next release relying on
logind for hibernate/suspend code, thus deliberately breaking perfectly
working portable code, see
http://lists.freedesktop.org/archives/devkit-devel/2013-October/001519.html
2013-10-18 16:43:50 +00:00
ajacoutot
9af689ecc8 Update to upower-0.9.22.
ok landry@ (maintainer)
2013-10-12 08:10:13 +00:00
landry
97d1e9945a Assorted fixes on top of jasper's:
- 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
2013-10-03 13:42:16 +00:00
jasper
af1c7f2649 add link to upstream bz 2013-10-03 11:03:41 +00:00
jasper
dff9873332 Two fixes for the OpenBSD-backend:
- Recognize a battery not being present (and reset various metrics accordingly)
- Recognize a fully charged battery

as discussed with and OK landry@ (MAINTAINER), aja@
2013-10-03 10:52:59 +00:00
ajacoutot
6126547b01 Drop uneeded patches. 2013-06-01 19:19:16 +00:00
ajacoutot
dab4fa84a4 Update to upower-0.9.20.
ok landry@ (maintainer)
2013-03-29 12:41:26 +00:00
ajacoutot
7504dd69fa g_thread_init is deprecated and will be removed in the next glib2 version
which I am currently working on.
While here, regen WANTLIB and merge PLISTs.

ok landry@ (maintainer)
2013-03-27 07:23:45 +00:00
ajacoutot
d564010b05 Sync comment; no pkg change. 2012-09-10 08:08:49 +00:00
ajacoutot
af213defe9 Remove --as-needed and -pthread patches.
ok landry@ (maintainer)
2012-09-04 09:06:12 +00:00
ajacoutot
d6c732de39 Update to upower-0.9.18.
ok landry@ (maintainer)
2012-08-21 17:27:13 +00:00
landry
1fc510c2f5 Update to upower 0.9.17
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@
2012-06-27 06:39:50 +00:00
landry
65af6840c5 Update to upower 0.9.15 :
- 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@
2012-01-03 21:50:06 +00:00
ajacoutot
8ca4dae4c2 Don't pass --as-needed to unbreak upower(1). 2012-01-02 15:13:19 +00:00
ajacoutot
1c5a3c5c35 Minor update to upower-0.9.14. 2011-10-16 06:29:30 +00:00
ajacoutot
a5e3542d11 Set DATADIRNAME in a consistent way now that glib-gettext.m4 has been
fixed.
2011-10-03 06:42:45 +00:00
ajacoutot
1a7e50f497 Bugfix update to upower-0.9.13.
ok landry@ (maintainer)
2011-09-08 17:57:40 +00:00
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