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
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
Michael Biebl
37a56ea0da
Make dummy backend usable for architectures without a native backend
...
Currently, the dummy backend is mostly used to run the unit tests.
We want to make it usable though on architectures, like GNU/Hurd, which
dont't have a native backend yet.
Compile two different flavours of the dummy backend: one with the TEST
code enabled and which is used by up_self_test, and one without the TEST
code, used by upowerd when the dummy backend is selected.
Patch is based on work by Pino Toscano.
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-26 11:17:49 +01: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
197f994945
Fix up the FreeBSD backend compile
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-02-23 21:31:41 +00:00
Richard Hughes
fd94c5d485
trivial: remove two unused variables which break the build when using strict warnings
2010-02-09 10:44:37 +00:00
Martin Pitt
b93915a377
Add {Suspend,Hibernate}Allowed D-Bus methods
...
Add two D-Bus server methods to check whether the caller has the privilege to
suspend or hibernate.
This enables us to check for PK privileges in UpClient's
can_{suspend,hibernate} properties, so that clients like gnome-session or
gnome-power-manager hide the suspend/hibernate related actions if the admin or
OEM disabled suspend/hibernate through a PolicyKit .pkla file.
https://bugs.freedesktop.org/show_bug.cgi?id=26473
2010-02-09 10:42:36 +00:00
Martin Pitt
a057e36751
Add up_polkit_is_allowed() function
...
Add a new polkit helper function up_polkit_is_allowed() which checks whether
the caller has or can get a particular privilege, but without interactive
authentication.
https://bugs.freedesktop.org/show_bug.cgi?id=26473
2010-02-09 10:42:34 +00:00
Richard Hughes
02914e71ec
Add a new method and two new signals to inform userspace of the pending suspend and the resume event
...
Based on an idea from Matthew Garrett and Lennart Poettering
2010-02-08 12:18:50 +00:00
Richard Hughes
4214c6a345
trivial: do not free errors that we do not allocate in the error paths
2010-02-07 21:37:00 +00:00
Richard Hughes
b9d7b8aea9
trivial: Fix up a void marshalling type
2010-02-07 21:35:18 +00: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
4a12ee1bf7
Make sure the tests link against all necessary libraries.
2010-02-06 13:43:02 +00:00
Michael Biebl
0ff7b4fdff
Move the history files to /var/lib/upower
...
Distros should move existing files from
/var/lib/DeviceKit-power to /var/lib/upower on upgrades in their
maintainer scripts.
2010-02-05 08:35:20 +00:00
Michael Biebl
9852851db1
Use the new project name in g_option_context_new
2010-02-05 08:35:14 +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
21012c7d2e
trivial: add some more gtk-doc markup to the new objects
2010-01-26 11:59:09 +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
faeb7ffabc
Rename the man pages and rename the main daemon binary name
2010-01-21 14:47:21 +00:00
Richard Hughes
a3dd31ee57
Rename the PolicyKit rules from org.freedesktop.devicekit.power to org.freedesktop.upower
2010-01-18 17:05:25 +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
8b219b243e
trivial: DkpStatsObj -> UpStatsObj (no ABI or API break)
2010-01-18 13:50:38 +00:00
Richard Hughes
3e8e98f598
trivial: DkpWakeups -> UpWakeups (no ABI or API break)
2010-01-18 13:48:15 +00:00
Richard Hughes
777cfe18a6
trivial: DkpQos -> UpQos (no ABI or API break)
2010-01-18 13:42:00 +00:00
Richard Hughes
1e8e236798
trivial: DkpHistory -> UpHistory (no ABI or API break)
2010-01-18 13:37:15 +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
2a9dff08f6
trivial: convert freebsd private object to using upower prefix (no ABI or API changes)
2010-01-18 13:06:07 +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
6845dc144d
trivial: DkpPolkit -> UpPolkit (no ABI or API break)
2010-01-18 12:51:41 +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
cbabe54705
trivial: use g_set_error() in more places
2010-01-17 23:10:14 +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
b4bbcc88d3
trivial: be a whitespace and format nazi
2010-01-03 09:11:04 +00:00
Joe Marcus Clarke
131bc12a81
import the FreeBSD backend
...
Add a backend for FreeBSD supporting AC power lines, batteries, and
lid state.
2010-01-03 08:54:30 +00:00
Debbie Beliveau
bbb102c394
Check if swap exists before determining how much is free
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2009-12-16 16:29:29 +00:00
Richard Hughes
0348f788d9
Fix segfault in the history code. Fixes fd#25632
2009-12-14 22:19:35 +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