Commit graph

139 commits

Author SHA1 Message Date
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
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
Michael Biebl
9f26b3f866 Remove libdevkit-power-gobject dependency from backends
The backends [linux/freebsd/dummy] no longer require
libdevkit-power-gobject, so
- remove -I$(top_srcdir)/devkit-power-gobject from the include path
- don't link the backends against libdevkit-power-gobject but upowerd
  (which unfortunately still needs it).

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-26 11:15:26 +01:00
Michael Biebl
8e3791afe4 devkit-power-gobject/up-enum.h be gone
Port from devkit-power-gobject/up-enum.h to libupower-glib/up-types.h
2010-02-06 13:46:03 +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
acfe9c3089 Update the Free Software Foundation address 2010-01-27 16:27:15 +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
8362088d12 trivial: rename some internal defines for the upower move 2010-01-18 14:04:24 +00:00
Richard Hughes
bc928f7ae8 trivial: switch to using the new udev attribute names (no ABI or API break) 2010-01-18 13:20:36 +00:00
Richard Hughes
c8cec18f06 trivial: DkpInput -> UpInput (no ABI or API break) 2010-01-18 13:15:47 +00:00
Richard Hughes
e04b5a9e00 trivial: DkpNative -> UpNative (no ABI or API break) 2010-01-18 13:12:37 +00:00
Richard Hughes
ad282a532c trivial: switch to using the new internal library name (no ABI or API break) 2010-01-18 13:10:00 +00:00
Richard Hughes
13f7addd62 trivial: switch to using the new marshal names internally (no ABI or API break) 2010-01-18 13:08:31 +00:00
Richard Hughes
8d4ec58206 trivial: switch to using the new enum names internally (no ABI or API break) 2010-01-18 12:57:50 +00:00
Richard Hughes
25e51c9613 trivial: DkpDevice -> UpDevice (no ABI or API break) 2010-01-18 12:49:30 +00:00
Richard Hughes
d2550b4c78 trivial: DkpDaemon -> UpDaemon (no ABI or API break) 2010-01-18 12:35:47 +00:00
Richard Hughes
2562bc6aa6 trivial: DkpBackend -> UpBackend (no ABI or API break) 2010-01-18 12:32:06 +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
e93895a257 Use a fallback for the capability bit when checking the lid status. Fixes #25041 2010-01-11 15:56:53 +00:00
Richard Hughes
99e9925654 Make some small cleanups in prep for the release 2009-12-01 08:55:04 +00:00
Byron Clark
1dbe1c87c5 Use a gdouble for percentage.
The percentage field of the device object is a gdouble.  Low battery
calculations should read this field as a gdouble instead of a guint to
get the correct value.   This fixes the case where clients see
on-low-battery possibly changing with every percentage of battery
discharge.

Signed-off-by: Byron Clark <byron@theclarkfamily.name>
2009-11-25 21:13:15 +00:00
Richard Hughes
7482af780b Some batteries give out massive rate values when nearly empty 2009-11-23 14:04:45 +00:00
Richard Hughes
a1783bbf2d When the internal battery is in the unknown state, we can't make a decision whether the system is on battery power 2009-11-22 15:59:58 +00:00
Richard Hughes
99ab6b00c0 Some vendors fill the NVRAM full of junk. Don't crash the daemon if the battery is broken. Fixes rh#533654 2009-11-17 13:30:25 +00:00
Richard Hughes
9f4fae9ccc Avoid going from discharging to pending-discharge when the expansion battery is very low 2009-11-17 09:45:20 +00:00
Richard Hughes
cd74873cbd Don't emit changed events from the DkpBackend layer, instead push then through DkpDevice 2009-10-16 15:09:51 +01:00
Richard Hughes
b69e31ef05 Ensure we only reset the update-time property when we have done the refresh, not before
This should fix the timed callback when the AC changes and and a delayed
refresh is triggered.
2009-10-14 10:34:10 +01:00
Richard Hughes
bf9758fabf Use voltage_now as a fallback to the design voltage, and return 10.0V if no value could be found 2009-10-01 09:16:54 +01:00
Richard Hughes
8952ac901b Use the sysfs file 'type' to work out the battery type as the presence of 'online' in unreliable 2009-09-30 16:59:55 +01:00
Richard Hughes
97a7824844 Fix up a few problems spotted by clang 2009-09-11 14:39:48 +01:00
Richard Hughes
a09005a0a3 Be more militant with refcount checking to prevent crashes 2009-09-11 14:08:08 +01:00
Richard Hughes
8cb468ce64 Fix up some more memory leaks 2009-09-11 12:34:25 +01:00
Richard Hughes
ca604fe92b bugfix: make the remove logic much cleaner to try to fix bugs where removing the mouse kills the session 2009-09-11 12:05:16 +01:00
Richard Hughes
ce955ea09f Fix a crash with the Linux backend 2009-09-11 09:58:46 +01:00
Richard Hughes
2afa769c5f Fix compile for Linux backend 2009-09-11 09:52:32 +01:00
Richard Hughes
de7c4bcc37 Fix conflicts in the merge 2009-09-11 09:45:41 +01:00
Richard Hughes
40e554865d Merge branch 'master' into not-just-gudev2 2009-08-06 11:18:10 +01:00
Richard Hughes
90501fc1ea Actually make compile with the linux backend 2009-07-27 17:15:27 +01:00
Richard Hughes
0c8d29a90f Initial split to make DeviceKit-power compile without GUdev for non-linux platforms 2009-07-27 16:40:11 +01:00