Commit graph

34 commits

Author SHA1 Message Date
Richard Hughes
b19fca9637 Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
Richard Hughes
0fd304c3f3 Add new NotifySleep() and NotifyResume() signals that include the sleep type
This allows session power managers to do different actions depending on whether the user
is suspending or hibernating. This allows the session policy agent to poke other things
(for instance, the screensaver) even if another process initiated the sleep.

This is based on a patch from Phillip Susi <psusi@cfl.rr.com>, many thanks.
2011-05-04 17:57:13 +01:00
Richard Hughes
b31de44eee Add a LidForceSleep property to ensure that we don't melt any laptops
We still need to add the DMI quirks, but I'm waiting for the
community to supply them now.
2011-02-02 13:44:09 +00:00
Richard Hughes
c507b516d4 Add an IsDocked binary property to the main interface 2011-01-04 17:01:59 +00:00
Richard Hughes
e1e796e584 trivial: fix make distcheck 2010-11-01 12:44:10 +00:00
Richard Hughes
ed34986e08 libupower-glib: Reject invalid object paths to avoid asserting libdbus 2010-11-01 09:52:07 +00:00
Richard Hughes
f74dae440b Do not dist the UPowerGlib-1.0.gir file to fix building on F14 2010-10-12 19:14:23 +01:00
Richard Hughes
58f3d9fbdf Fix up all the warnings when building with new versions of gobject-introspection 2010-10-05 11:13:09 +01:00
Edward Sheldrake
cfd3641501 Fix building with gobject-introspection 0.9.10 2010-10-05 11:03:42 +01:00
Richard Hughes
116ed04599 Fix the build with new versions of gobject-introspection 2010-10-04 15:53:51 +01:00
Richard Hughes
23a1694d69 Ensure the new device types get valid descriptions in upower --dump 2010-07-26 15:28:12 +01:00
Richard Hughes
34add0cfe2 Add UP_DEVICE_KIND_COMPUTER as we'll need UP_DEVICE_KIND_TABLET for wacom tablets 2010-06-01 14:25:10 +01:00
Richard Hughes
0ece8dea46 Add media-player and tablet device kinds 2010-05-28 11:45:44 +01:00
Richard Hughes
67202b5eae Sanity check the device is not already in the list before adding 2010-04-30 14:04:44 +01:00
Richard Hughes
2d2e69254d Add a missing accessor: up_client_get_lid_is_present() 2010-03-30 14:30:05 +01:00
Richard Hughes
2c94682f14 Do not allow client programs to enumerate the device list more than once 2010-03-30 14:26:54 +01:00
Richard Hughes
6d607a406c Convert the daemon to using objects from libupower-glib, not devkit-power-gobject 2010-03-26 12:49:01 +00:00
Martin Pitt
b9bb78ac2b Fix libupower-glib include dir and pkgconfig
Install libupower-glib include files into libupower-glib/ (where upower.h
expects them to be), not upower-glib. Now the library is consistently named
"libupower-glib" everywhere.

Also fix the Libs line in the pkgconfig file: link against -lupower-glib, not
-lupower.
2010-02-16 11:55:28 +01:00
Martin Pitt
821ecf9125 Check PolicyKit in client's can_{suspend,hibernate} properties
Check for PK privileges in UpClient's can_{suspend,hibernate} properties, so
that clients like gnome-session or gnome-power-manager hide the related actions
if the admin or OEM disabled suspend/hibernate through a PolicyKit .pkla file
like

$ cat /etc/polkit-1/localauthority/50-local.d/disable-suspend.pkla
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultAny=no

https://bugs.freedesktop.org/show_bug.cgi?id=26473
2010-02-09 10:42:38 +00:00
Richard Hughes
1738ac30b7 Install the introspection data to the correct location 2010-02-09 09:15:38 +00:00
Richard Hughes
02914e71ec Add a new method and two new signals to inform userspace of the pending suspend and the resume event
Based on an idea from Matthew Garrett and Lennart Poettering
2010-02-08 12:18:50 +00:00
Richard Hughes
29d4de79e1 Use GCancellable in libupower-glib so we can eventually get to GIO async methods without breaking future API 2010-02-05 09:41:06 +00:00
Richard Hughes
0bbdab0464 trivial: fix up UpWakeups to actually compile 2010-02-05 09:25:40 +00:00
Richard Hughes
4aa5d780ce Ensure we return all lines of the UpDevice when we call up_device_to_string() 2010-02-05 09:25:08 +00:00
Richard Hughes
bfa3b82ee9 trivial: Port the DkpWakeups object to UpWakeups 2010-02-05 09:02:20 +00:00
Richard Hughes
acfe9c3089 Update the Free Software Foundation address 2010-01-27 16:27:15 +00:00
Richard Hughes
ada609a6e5 trivial: add some more gtk-doc markup to the new objects 2010-01-26 12:15:15 +00:00
Richard Hughes
4885f802d1 trivial: add two more functions to DkpDevice for getting the stats and history 2010-01-26 12:09:26 +00:00
Richard Hughes
21012c7d2e trivial: add some more gtk-doc markup to the new objects 2010-01-26 11:59:09 +00:00
Richard Hughes
af56b08795 trivial: Add some useful GObjects for client and server use 2010-01-26 11:39:14 +00:00
Richard Hughes
5e8ba54573 trivial: rename the new libupower 'type' to 'kind' to avoid clashing with GObject generated names 2010-01-26 10:53:04 +00:00
Richard Hughes
27fada20be trivial: add some gtk-doc markup into libupower-glib and hook it up to the build system 2010-01-25 16:54:17 +00:00
Richard Hughes
69c06340a8 trivial: add missing file 2010-01-25 15:29:20 +00:00
Richard Hughes
0a2b06f298 Add libupower so applications can switch away from devkit-power-gobject 2010-01-25 15:20:09 +00:00