Commit graph

62 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
Landry Breuil
2527d0170d upower needs -pthread
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-03-21 18:38:48 +00:00
Michael Biebl
11301ae3d6 Drop devkit and devkit-power-daemon symlinks
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-02-23 16:18:53 +00:00
Richard Hughes
17b7aef701 linux: use the number of active DRM devices to determine the system docked status
Not ideal, but better than relying on ACPI.
2011-01-04 18:05:09 +00:00
Richard Hughes
59893663fb Port from EggDebug to the GLib built-in logging framework 2010-11-01 11:28:31 +00:00
Richard Hughes
bcc0c2ced0 Ensure we enumerate devices before we start monitoring them 2010-03-26 11:29:38 +00:00
Michael Biebl
3ea96602e6 Update help and g_option_context_new to upower 2010-02-06 13:42:57 +00:00
Richard Hughes
41917bfc73 trivial: fix a compile warning 2010-02-05 10:37:32 +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
4c02c6310d Make the upower client tool use libupwer-glib, rather than devit-power-gobject 2010-02-05 09:26:10 +00:00
Michael Biebl
83c0574466 Remove EGG_* log define.
The EGG_* log defines don't seem to be used and still reference the old
DeviceKit-power name. So just remove it.
2010-02-05 08:35:11 +00:00
Richard Hughes
faeb7ffabc Rename the man pages and rename the main daemon binary name 2010-01-21 14:47:21 +00:00
Richard Hughes
adcb737767 Make the client tool be called upower, but maintain a symlink to devkit-power 2010-01-21 14:30:28 +00:00
Richard Hughes
d27c836e97 Rename the DBus service from org.freedesktop.DeviceKit.Power to org.freedesktop.UPower 2010-01-18 16:53:12 +00:00
Richard Hughes
8362088d12 trivial: rename some internal defines for the upower move 2010-01-18 14:04:24 +00:00
Richard Hughes
15ac5102c8 trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ABI changes 2010-01-18 12:26:55 +00:00
Richard Hughes
a0cac7f1ca Update some common egg code for better debugging support 2009-11-23 14:24:00 +00:00
Richard Hughes
6199e901ea When using devkit-power --monitor, print a timestamp before each message for debugging. Fixes fd#24666 2009-10-22 10:30:53 +01:00
Richard Hughes
1587fc5758 Convert the property names to be FirstLetterCaps rather than dash-dash so KDE people can use the DBus interface 2009-09-18 18:28:53 +01:00
Richard Hughes
97a7824844 Fix up a few problems spotted by clang 2009-09-11 14:39:48 +01:00
Richard Hughes
db41483230 I must learn to spell deprecated... 2009-07-03 11:05:00 +01:00
Richard Hughes
0a5149ea6a Protect the non-GObject accessors with DKP_DISABLE_DEPRECIATED and fix up the client tool 2009-07-03 10:52:24 +01:00
Richard Hughes
7bd2dfefcb Add a property lid-is-closed so that we can finally drop the HAL dep in g-p-m and x-p-m 2009-05-05 12:51:26 +01:00
Richard Hughes
67c36ceff0 Add a has-capability to the org.freedesktop.DeviceKit.Power.Wakeups interface so clients can tell if the wakeups functionality can be supported 2009-04-22 16:55:24 +01:00
Richard Hughes
90bc938bc4 trivial: print the error message from dkp-tool 2009-04-01 09:15:04 +01:00
Richard Hughes
4fb78bb9f5 trivial: add lots of GErrors to the gobject library, and avoid using egg_warning 2009-02-27 13:18:57 +00:00
Richard Hughes
d2c0ee6412 move the library directory from libdevkit-power to devkit-power-gobject 2009-02-27 12:22:06 +00:00
Richard Hughes
6f0dc6a530 trivial: fix make distcheck 2009-02-26 13:31:57 +00:00
Richard Hughes
55db60ef82 bugfix: remove use of EggObjList, which was pretty hacky, and try to make the library more sane 2009-02-26 12:15:20 +00:00
Richard Hughes
3decd60825 feature: allow showing the wakeup data in the devkit-power command line tool 2009-01-30 13:55:42 +00:00
Richard Hughes
39df99ae20 trivial: add a fixme 2009-01-23 17:14:02 +00:00
Richard Hughes
35bd038ac7 trivial cleanups of davidz patch -- no functional changes 2008-11-12 09:58:36 +00:00
David Zeuthen
c9dbc80f36 turn some methods into properties
GetOnBattery()  -> :on-battery (bool)
 GetLowBattery() -> :on-low-battery (bool)
 CanSuspend()    -> :can-suspend (bool)
 CanHibernate()  -> :can-hibernate (bool)

also add a new property for the daemon version

 :daemon-version (string)

introduce a new Changed() signal that replaces

 ::LowBatteryChanged()
 ::OnBatteryChanged()

Also fix a few bugs

 - we need to compute ::on-battery and ::on-low-battery *after*
   the actual device is updated

 - need to fire Device::Changed() before Power::DeviceChanged()
   otherwise devkit-power --monitor-detail lies

also fix up libdevkit-power and devkit-power(1) to use these changes.
2008-11-11 13:58:26 -05:00
David Zeuthen
fca5018996 nuke devkit-power-on-battery for now 2008-11-11 10:44:08 -05:00
David Zeuthen
9f4bdecd33 move object paths so things are rooted under /org/freedesktop/DeviceKit/Power 2008-11-11 10:42:53 -05:00
David Zeuthen
12eb76b8be update my email address 2008-11-11 10:13:24 -05:00
Richard Hughes
031189f151 fixed compile 2008-11-04 12:03:00 +00:00
Richard Hughes
670c3bfc7b trivial: update defines needed for egg debugging code 2008-10-23 12:48:01 +01:00
Richard Hughes
7fdcc278dc convert to using egg_ functionality like other projects 2008-08-28 15:49:19 +01:00
Richard Hughes
3a468e7521 only match on USB HID devices so we don't try to connect to every USB device on the system at startup 2008-08-13 08:08:29 +01:00
Richard Hughes
32aaf9ed93 move DkpClient and DkpClientDevice to libdevkit-power 2008-08-11 10:40:22 +01:00
Richard Hughes
80c020e709 fix the signals in DkpClient 2008-08-11 10:14:55 +01:00
Richard Hughes
c85710d905 add the signals class information to DkpClient 2008-08-11 10:11:31 +01:00
Richard Hughes
72a13ae91d the enums of of DkpDevice origin, not DkpSource 2008-08-10 18:02:48 +01:00
Richard Hughes
918c35586b refactor out DkpDevice and DkpSupply so we can add another type of device without a metric ton of copy and paste 2008-08-09 14:27:32 +01:00
Richard Hughes
4756da4b81 make some stuff non-global in devkit-power 2008-08-06 06:58:45 +01:00
Richard Hughes
b242cbd9a6 trivial: remove some un-needed defines 2008-08-05 17:29:06 +01:00
Richard Hughes
5b6bae572f abstract out the client and client device parts of the devkit-power tool 2008-08-05 17:26:35 +01:00
Richard Hughes
da8ec3f3b1 move the enumeration into it's own function ready for tidyup 2008-08-05 15:39:05 +01:00
Richard Hughes
9dca67f115 add a new ninary to get the battery power state 2008-08-04 17:31:52 +01:00