Commit graph

557 commits

Author SHA1 Message Date
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
Michael Biebl
f435bf07ac Simplify udev subdirectory handling
Use the BACKEND_TYPE_LINUX automake conditional to include the rules
directory. This way we don't need to specify DIST_SUBDIRS and can get
rid of UDEV_RULES.
Less redundandcy, less chance to miss a directory in the dist tarball.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-26 11:17:55 +01: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
fedc191420 Show in ./configure summary if unit tests have been enabled or not
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-26 11:10:49 +01:00
Richard Hughes
e8414d5890 trivial: post release version bump 2010-03-03 15:09:41 +00:00
Richard Hughes
b6697415eb Released UPower 0.9.1 2010-03-03 15:08:34 +00: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
Martin Pitt
b9bb78ac2b Fix libupower-glib include dir and pkgconfig
Install libupower-glib include files into libupower-glib/ (where upower.h
expects them to be), not upower-glib. Now the library is consistently named
"libupower-glib" everywhere.

Also fix the Libs line in the pkgconfig file: link against -lupower-glib, not
-lupower.
2010-02-16 11:55:28 +01:00
Richard Hughes
72bb220a6a Don't ship an introspection file for devkit-power-gobject, it's soon to be obsolete 2010-02-09 10:45:00 +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
821ecf9125 Check PolicyKit in client's can_{suspend,hibernate} properties
Check for PK privileges in UpClient's can_{suspend,hibernate} properties, so
that clients like gnome-session or gnome-power-manager hide the related actions
if the admin or OEM disabled suspend/hibernate through a PolicyKit .pkla file
like

$ cat /etc/polkit-1/localauthority/50-local.d/disable-suspend.pkla
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultAny=no

https://bugs.freedesktop.org/show_bug.cgi?id=26473
2010-02-09 10:42:38 +00:00