Commit graph

298 commits

Author SHA1 Message Date
Richard Hughes
70a5fce8a4 Fix up the return statuses from coldplug and refresh, as different modules are doing different things 2009-05-27 15:47:06 +01:00
Richard Hughes
0ff31760f9 Don't poll on unknown forever. Based on a patch from Matthew Garrett, many thanks 2009-05-26 14:26:39 +01:00
Richard Hughes
1c78b10041 Setup different polls based on the battery state. Based on a patch from Matthew Garrett, many thanks 2009-05-26 14:11:44 +01:00
Richard Hughes
cf9692f1e9 Don't return history data relative to the earliest point, only within the time period given 2009-05-26 13:52:37 +01:00
Matthew Garrett
a65e5761d9 Allow the daemon to get the global online state for all devices
Signed-off-by: Richard Hughes <richard@hughsie.com>
2009-05-26 11:51:49 +01:00
Ronald
7cba688292 Remove the 0x prefix from some rule matches
Signed-off-by: Richard Hughes <richard@hughsie.com>
2009-05-26 09:53:13 +01:00
Richard Hughes
821b930371 Never overwrite ID_PRODUCT or ID_VENDOR 2009-05-26 09:51:58 +01:00
Richard Hughes
af2e76cacd Trivially fix a compile error 2009-05-26 09:51:29 +01:00
Richard Hughes
04747b2b5a Trivially remove some unused code 2009-05-26 09:40:05 +01:00
Richard Hughes
d7d6367eff Correct a debugging statement 2009-05-14 11:07:43 +01:00
Richard Hughes
296a09988b A better fix for rh#495493 2009-05-13 19:45:52 +01:00
Richard Hughes
648ca71034 Continue to poll when power supply device is marked unknown. Might fix rh#495493 2009-05-13 17:46:58 +01:00
Richard Hughes
d0977d1112 Decrease the poll timeout to 2 seconds 2009-05-12 15:18:47 +01:00
Richard Hughes
2f020ff005 Only get the device state for the poll after the refresh 2009-05-12 15:17:44 +01:00
Richard Hughes
4cd78cfaf0 Don't overwrite energy-full-design with zero after coldplug 2009-05-11 20:13:23 +01:00
Ali Abdallah
b762899c60 Fix up some issues in DkpClient, and expose GObject properties
Signed-off-by: Richard Hughes <richard@hughsie.com>
2009-05-06 17:12:28 +01:00
Richard Hughes
0b269ba6e8 Add two missing files to the last commit 2009-05-05 12:51:48 +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
dccd5fc898 Ignore method timeouts when we suspend and hibernate 2009-04-25 11:07:30 +01:00
Richard Hughes
6b197ebd5e Make the suspend and hibernate scripts execute synchronously. Fixes rh#497563 2009-04-25 11:06:52 +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
c97698adf9 Ensure we get properties on devices correctly that have not yet been changed 2009-04-22 16:44:31 +01:00
Richard Hughes
bb615c2269 bugfix: optimise the udev rules to skip non-usb devices 2009-04-20 12:44:08 +01:00
Richard Hughes
5ad255c790 bugfix: only reset the update-time if the read was successful 2009-04-20 12:43:32 +01:00
Richard Hughes
36dc57fa64 trivial: add make snapshot 2009-04-01 09:19:24 +01:00
Richard Hughes
11d8be8c12 bugfix: allow all DBus properties to be read with the new DBus 2009-04-01 09:16:14 +01:00
Richard Hughes
90bc938bc4 trivial: print the error message from dkp-tool 2009-04-01 09:15:04 +01:00
Richard Hughes
1faf14cdcc trivial: fix up the last patch to strip the newline before the compare 2009-04-01 09:14:45 +01:00
Richard Hughes
91b5de93c4 trivial: fix a build issue with a buggy compiler 2009-03-30 14:39:08 +01:00
Richard Hughes
478f2f693e trivial: fix a logic thinko with sysfs_get_bool() 2009-03-30 14:06:41 +01:00
Richard Hughes
c41303557e trivial: post release version bump 2009-03-30 12:13:09 +01:00
Richard Hughes
0620316957 Released DeviceKit-power 007 2009-03-30 12:12:16 +01:00
Frederic Crozat
876f407c4b bugfix: Fix g-p-m and DeviceKit-power when running with a permissive dbus. Fixes fd#20882 2009-03-26 16:28:18 +00:00
Richard Hughes
880ab7b101 trivial: fix devkit-power-gobject when linking from external programs 2009-03-24 15:18:14 +00:00
Richard Hughes
5f84775d63 trivial: make pc file the same format at DeviceKit 2009-03-24 14:15:28 +00:00
Richard Hughes
ed13111668 bugfix: fix compile error in dkp-power. Fixes #20749 2009-03-19 11:51:50 +00:00
Richard Hughes
23d3397b5b trivial: correct the percentage change calculation with the new code 2009-03-09 09:32:45 +00:00
Richard Hughes
57e849f64b require I_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE 2009-03-04 13:27:38 +00:00
Richard Hughes
57c13c7494 trivial: fix conflicts 2009-03-04 13:12:10 +00:00
Richard Hughes
546ca4456d trivial: update version thinko 2009-03-02 15:44:53 +00:00
Richard Hughes
e23f93790d trivial: compile fix, new file doesn't exist 2009-03-02 15:41:56 +00:00
Richard Hughes
73b5259b85 trivial: fix up copying a GPtrArray 2009-03-02 15:37:38 +00:00
Richard Hughes
9ae0b5c573 trivial: remove extra file from include directory 2009-02-27 13:45:24 +00: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
665523726a trivial: remove egg-string 2009-02-27 12:50:05 +00:00
Richard Hughes
842842c479 Ship a shared library. There are now two external projects using copies of this, which is rediculous 2009-02-27 12:32:55 +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
5259367a6b feature: get rid of DkpObject and instead use the GObject property system correctly 2009-02-27 11:59:27 +00:00
Richard Hughes
6f0dc6a530 trivial: fix make distcheck 2009-02-26 13:31:57 +00:00
Richard Hughes
9fc77bc0d0 trivial: compile failure 2009-02-26 12:17:17 +00:00