Richard Hughes
6118ac82ec
Get the powersave command from the backend rather than hardcoding Linux specifics
2010-07-07 10:07:37 +01:00
Mariusz Ceier
ac8fa9d5be
up-device-supply.c: Fix #27902 Bug - Daemon Segmentation Fault
...
In linux backend, g_object_set was called with wrong
argument types for time-to-empty,time-to-full and percentage
properties. This patch uses explicit casts in the same way as freebsd
backend.
Signed-off-by: Mariusz Ceier <mceier@gmail.com>
2010-07-02 14:04:42 +01:00
Victor Lowther
6770e8cb34
Use pm-is-supported to test if various sleep modes are supported.
...
pm-is-supported does all the work upower was duplicating, and it handles more
use cases than the old upower code did. No point in duplicating functionality.
Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-06-14 08:59:40 +01:00
Victor Lowther
da3a51d2e8
Cast cnt to int to stop gcc from complaining.
...
GCC was complaining about int and ssize_t being differnt types.
Make it quit doing that.
2010-06-14 08:56:27 +01:00
Richard Hughes
6ba86292e9
Port to GTest
2010-06-05 17:00:34 +01:00
Richard Hughes
82a6a882d0
Assign names to our idle sources when using new versions of glib2
...
This makes it possible to profile more accurately using systemtap
2010-06-05 15:55:29 +01:00
Joseph Stockman
2aba7d4cfb
Update the list of supported TrippLite HID Power Devices
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-06-02 19:19:02 +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
Steven Walter
6bb6602c06
When calculating used swap space, only use anonymous pages
...
up_daemon_check_swap_space uses the Active: line from /proc/meminfo to
determine the amount of swap the system needs to be able to suspend. However,
because Active: includes both anonymous and file-backed pages, this greatly
overestimates the amount of swap needed. File-backed pages can be written back
to disk and so do not consume swap.
Instead, up_daemon_check_swap_space should use Active(anon): from /proc/meminfo
because only anonymous pages need to be written out to swap during a suspend.
Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-05-29 13:12:57 +01:00
Richard Hughes
37504601f3
trivial: print the specific error from libusb1
2010-05-28 15:15:11 +01:00
Richard Hughes
758ad538ce
trivial: Get rid of some over-verbose debugging
2010-05-28 15:13:28 +01:00
Richard Hughes
181f673908
trivial: Rename a few 'DeviceKit-power' strings we missed
2010-05-28 15:00:07 +01:00
Bastien Nocera
18c8d26b02
Fix compilation of the idevice device
...
My fault :(
2010-05-28 14:39:16 +01:00
Bastien Nocera
5cec5b180f
Fix up a few leaks Richard introduced...
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-05-28 14:11:04 +01:00
Richard Hughes
36bf9c5cde
trivial: fix a tiny warning reported by clang with the capacity code intial value
2010-05-28 14:10:22 +01:00
Richard Hughes
5c17b5a147
Fix up a potential crasher in the CSR device code
2010-05-28 14:03:56 +01:00
Bastien Nocera
7019d214f8
Add battery query support for iDevices
...
https://bugs.freedesktop.org/show_bug.cgi?id=28286
Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-05-28 13:49:56 +01:00
Richard Hughes
0ece8dea46
Add media-player and tablet device kinds
2010-05-28 11:45:44 +01:00
Richard Hughes
8077052c3f
Remove the artifically high autoconf build requirement
2010-05-19 21:22:26 +01:00
Richard Hughes
2b826a3169
Port UPower to libusb1 to avoid crappy unfixable crashes
2010-05-18 09:37:17 +01:00
Richard Hughes
39c2c0c52c
trivial: post release version bump
2010-05-12 15:10:43 +01:00
Richard Hughes
0ff48cb295
Released UPower 0.9.4
2010-05-12 15:09:44 +01:00
Kyle McMartin
5881e7435f
Detect when the kernel changes the reported charge units. Fixes rh#587112
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-05-11 15:53:48 +01:00
Richard Hughes
5e644fd2e0
trivial: correct some debugging statements that made things more confusing
2010-05-10 22:47:50 +01:00
Richard Hughes
3952c6d98a
Ensure we sent ::notify signals when UpDaemon properties change
2010-05-10 22:40:17 +01:00
Richard Hughes
ab1bc59e56
Ensure we send ::Sleeping() if clients do not call AboutToSleep()
2010-05-07 20:52:00 +01:00
Richard Hughes
43fd837e00
Only emit ::Sleeping() after we've checked AboutToSleep()
2010-05-07 20:38:46 +01:00
Richard Hughes
07a404840e
trivial: post release version bump
2010-05-06 10:30:34 +01:00
Richard Hughes
4a0f5ac0d6
Released UPower 0.9.3
2010-05-06 10:29:37 +01:00
Sascha Silbe
4baf27ae15
fix recognition of lithium iron phosphate (LiFePO4) batteries
...
The linux kernel returns "LiFe" for lithium iron phosphate batteries,
not LiFo.
2010-05-03 15:18: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
3dee7b22f8
Provide UpDaemon with C setters rather than relying on GObject properties
2010-04-19 17:05:59 +01:00
Richard Hughes
5f1e64709b
Add a config file with SleepTimeout and AllowHibernateEncryptedSwap entries
2010-04-14 10:08:57 +01:00
Michael Biebl
42f0715637
Fix c&p typo in documentation
2010-04-14 08:26:57 +01:00
Richard Hughes
d52229333a
The gettext package should probably match the tarball name
2010-04-07 09:02:04 +01:00
Richard Hughes
75d0a4a6b2
trivial: post release version bump
2010-04-06 16:05:48 +01:00
Richard Hughes
1ef0b33c41
Released UPower 0.9.2
2010-04-06 16:02:22 +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
Michael Biebl
3d62778377
trivial: Add stubs to dummy backend to make it compile again.
2010-03-30 08:39:17 +01:00
Richard Hughes
d1bd4d42fd
Get the suspend and hibernate commands from the backend, rather than hardcoding Linux specifics
2010-03-29 16:42:35 +01:00
Richard Hughes
4b5dc883e6
Get the swap size from the backend, rather than hardcoding Linux specifics
2010-03-29 14:21:51 +01:00
Richard Hughes
0198498350
Get the encrypted swap status from the backend, rather than hardcoding Linux specifics
2010-03-29 14:18:42 +01:00
Richard Hughes
4620a9d122
Get the kernel sleep capabilities from the backend, rather than hardcoding Linux specifics
2010-03-29 14:16:11 +01:00
Richard Hughes
edffa8830d
Change the tarball name to be all lower case to match udisks and udev
2010-03-26 13:04:28 +00: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
Richard Hughes
daa2d5f3b7
Do not warn what we are correcting energy-full when there is no data to copy
2010-03-26 11:29:38 +00:00
Richard Hughes
c30d15d9b9
trivial: another DeviceKit-power to UPower rename
2010-03-26 11:29:38 +00:00
Richard Hughes
bcc0c2ced0
Ensure we enumerate devices before we start monitoring them
2010-03-26 11:29:38 +00:00
Michael Biebl
42ecfd7bdc
Fixes to the autogen.sh script
...
- Proper formatting and indenting
- Tell aclocal that we use m4/ as macro directory and the final dist
tarball actually contains the m4/ directory.
- Run intltoolize before aclocal, so aclocal does not append intltool.m4
to aclocal.m4
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-26 11:17:59 +01:00