Commit graph

375 commits

Author SHA1 Message Date
Arnaud Quette
8b16bc0cdf Update list of HID UPS devices 2009-07-27 17:21:55 +01:00
Richard Hughes
8cf5c058c3 Return meaningfull errors if the user tries to suspend or hibernate without kernel support or swap setup 2009-07-22 17:05:12 +01:00
Richard Hughes
acd4dc82da trivial: post release version bump 2009-07-22 13:06:00 +01:00
Richard Hughes
d264375f52 Released DeviceKit-power 010 2009-07-22 12:59:56 +01:00
Richard Hughes
14ed2df836 trivial: correct a few function prefixes 2009-07-22 11:35:36 +01:00
Richard Hughes
8e76382029 Fix a trivial compile warning 2009-07-22 11:32:56 +01:00
Richard Hughes
f7a00c582a Only refresh all battery devices when the ac-adaptor changes 2009-07-22 08:16:27 +01:00
Richard Hughes
fbbc823a48 Refresh all battery devices after a power event, and again after a short delay. Fixes rh#512995 2009-07-21 20:35:58 +01:00
Richard Hughes
969c6a928a If we don't have enough swap available, don't advertise hibernate. Fixes rh#513015 2009-07-21 19:44:48 +01:00
Richard Hughes
9805175e6e Query the kernel to decide if we have hibernate and suspend support 2009-07-21 19:44:37 +01:00
Richard Hughes
e44e8b0b79 Use the global battery state as a metric when single battery machines are not charging or discharging 2009-07-20 15:56:35 +01:00
Richard Hughes
a9ccd95de3 Fix up compile as merging two branches missed a hunk 2009-07-15 16:00:06 +01:00
Richard Hughes
902ec925f3 Only guess the battery status if we have more than one battery in the system 2009-07-13 12:34:31 +01:00
Richard Hughes
838ea68b2d Add a private dkp_daemon_get_number_devices_of_type() function to the daemon 2009-07-13 12:34:21 +01:00
Richard Hughes
4f088d44d6 Correct a description string from one of the new enums 2009-07-13 12:34:13 +01:00
Loïc Minier
a37bfc1756 Add a notify flag to set_lid_is_closed
Add a notify flag to set_lid_is_closed and use it only on input cold
plug.

http://bugs.freedesktop.org/show_bug.cgi?id=22574
https://launchpad.net/bugs/385135
2009-07-06 17:29:00 +01:00
Richard Hughes
c0dd7493bd fix conflicts 2009-07-06 13:54:17 +01:00
Richard Hughes
618c8093aa Port to PolicyKit1 2009-07-06 13:41:48 +01:00
Richard Hughes
364c26f631 trivial: post release version bump 2009-07-06 13:24:42 +01:00
Richard Hughes
ab0dea561d Released DeviceKit-power 009 2009-07-06 13:23:29 +01:00
Richard Hughes
d653489227 Add two new state enums, pending-discharge and pending-charge 2009-07-06 12:13:14 +01:00
Richard Hughes
161d2d50c1 Fix conflicts 2009-07-06 10:13:02 +01:00
Richard Hughes
86f6278f61 Use the global state to fix the unknown battery status 2009-07-06 10:01:34 +01:00
Richard Hughes
bbd289ee81 Move a hack about the fully charged level from g-p-m 2009-07-06 09:13:49 +01:00
Richard Hughes
37767c77bb Revert "Add a backlight interface so we can control backlight brightness without HAL"
This reverts commit fec78d3fbb.
2009-07-05 09:34:55 +01:00
Richard Hughes
5994922a0a Revert "Fix a tiny bug that could cause a crash"
This reverts commit ec0023c347.
2009-07-05 09:34:54 +01:00
Richard Hughes
cda6d85a9d Revert "Make it very clear that the Backlight interface is temporary"
This reverts commit 65571eed9d.
2009-07-05 09:34:54 +01:00
Richard Hughes
65571eed9d Make it very clear that the Backlight interface is temporary 2009-07-03 16:58:00 +01:00
Richard Hughes
ec0023c347 Fix a tiny bug that could cause a crash 2009-07-03 16:56:44 +01:00
Richard Hughes
fec78d3fbb Add a backlight interface so we can control backlight brightness without HAL 2009-07-03 13:25:07 +01:00
Richard Hughes
5380720f95 Move the udev rules to thier own directory 2009-07-03 11:53:34 +01:00
Richard Hughes
db41483230 I must learn to spell deprecated... 2009-07-03 11:05:00 +01:00
Richard Hughes
a8d4b200bd We have to prefix the version macro with 0x, else it gets identified as octal... 2009-07-03 11:02:26 +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
e827a73922 Remove dkp_client_get_lid_is_present(), we want to encourage people to be using g_object_get 2009-07-03 10:43:15 +01:00
Richard Hughes
77c767edf4 Add a DKP_CHECK_VERSION macro which we can use in client tools 2009-07-03 10:41:32 +01:00
Richard Hughes
cb702d0736 Export the recall-notice, recall-vendor and recall-url properties on power devices 2009-07-03 10:06:41 +01:00
Richard Hughes
fd9beab227 Be less asserty when enum values are added in newer versions of the spec 2009-07-03 10:06:05 +01:00
Richard Hughes
ccc3643f7e Add battery recall data rules 2009-07-03 09:11:36 +01:00
Richard Hughes
56881f8eaf Add a lid-is-present property 2009-07-02 17:51:27 +01:00
Richard Hughes
936c57bf60 Use a DkpDeviceList for managed devices too 2009-07-02 16:05:55 +01:00
Richard Hughes
35dce37790 Take referenced counted objects in DkpDeviceList 2009-07-02 15:54:35 +01:00
Richard Hughes
5e2477607f Make DkpDeviceList work with GObject types, and not with specific DkpDevice types 2009-07-02 15:51:53 +01:00
Richard Hughes
64033ba35f trivial: Remove some debugging that slipped in 2009-07-02 11:29:50 +01:00
Richard Hughes
02835a786f udev rules files now live in /lib/udev/rules.d, not /etc/udev/rules.d 2009-07-02 11:12:31 +01:00
Richard Hughes
3f8141b892 Fix detecting the USB UPS devices 2009-07-02 11:04:38 +01:00
Richard Hughes
370da40cc6 The UPS can't expose empty or fully-charged, so fixup these states 2009-07-02 11:00:23 +01:00
Richard Hughes
7e98bd1c19 bugfix: set the GObject properties correctly in the DkpDeviceHid class 2009-07-02 10:58:42 +01:00
Richard Hughes
7101dbcf44 trivial: whitespace fixes 2009-07-02 10:57:29 +01:00
Richard Hughes
1520785b90 trivial: ups devices have state too 2009-07-02 10:55:53 +01:00