Commit graph

1141 commits

Author SHA1 Message Date
Richard Hughes
8f088fa5d7 trivial: post release version bump 2016-02-16 08:48:00 +00:00
Richard Hughes
f9b7e936ec Released UPower 0.99.4 2016-02-16 08:47:05 +00:00
Bastien Nocera
3e49e659d0 daemon: Lower the warning levels for input devices
Modern wireless input devices can last for dozens of minutes, or even
hours with a couple of percentage points of battery, so change the
warning levels to be more in line with that data.

See https://bugzilla.gnome.org/show_bug.cgi?id=756314

https://bugs.freedesktop.org/show_bug.cgi?id=92920
2015-11-12 16:38:45 +01:00
Bastien Nocera
28bd86c181 etc: Update IgnoreLid documentation
It's not used by gnome-settings-daemon any more, logind reads the
Lid status itself.

https://bugs.freedesktop.org/show_bug.cgi?id=92920
2015-11-12 16:38:42 +01:00
Bastien Nocera
db4f9b43df etc: Change the default low battery policy
It is now based on the percentage of battery left, rather than the
usually unreliable "time left". See configuration file for more details.

https://bugs.freedesktop.org/show_bug.cgi?id=92920
2015-11-12 16:37:37 +01:00
Bastien Nocera
057f1bf338 rules: Fix distcheck'ing not being able to install udev rules 2015-09-23 17:18:46 +02:00
Bastien Nocera
34caba2964 daemon: Fix self test config file location for newer automake
More sub-dirs. We should really find a better way to do that in the
future.
2015-09-23 17:08:08 +02:00
Bastien Nocera
d5ec9d4f29 daemon: Print the filename when the config file is missing 2015-09-23 17:00:00 +02:00
Bastien Nocera
c015e6b21e linux: Fix deprecation warning in integration-test 2015-09-23 16:14:40 +02:00
Bastien Nocera
ac8fb3155b build: Always ship upower.service.in
upower.service.in was only shipped if the tarball was built with systemd
support. We always need to ship it.
2015-09-23 16:11:17 +02:00
Bastien Nocera
b6dfa473f8 build: Fix missing includes
Include $(top_builddir) when building so that we can find the newly
generated D-Bus helper files. Note that, because we ship generated files
in the tarball, we'll also need to include $(top_srcdir).
2015-09-23 16:09:50 +02:00
Kalev Lember
0825c162d3 Support g_autoptr() for all libupower-glib object types
This allows using e.g. g_autoptr(UpDevice) in other programs, but does
not make upower itself use g_autoptr, or require a new enough glib to
support it.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-09-15 12:33:44 +01:00
Arnaud Quette
7371415beb Fix build regression
The removal of dbus-glib and libdbus build dependencies has introduced
a build regression on upower, which fails to link with gobject

Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-08-10 11:06:30 +01:00
Cosimo Cecchi
16537df546 daemon: remove custom marshal setup
Just use the default marshaller.
2015-07-29 13:38:13 +01:00
Cosimo Cecchi
75760c047c daemon: make UpWakeups a subclass of UpExportedWakeupsSkeleton
Simplifies some state tracking.
2015-07-29 13:38:13 +01:00
Cosimo Cecchi
003b5e201b daemon: make UpKbdBacklight a subclass of UpExportedKbdBacklightSkeleton
Simplifies some state tracking.
2015-07-29 13:38:13 +01:00
Cosimo Cecchi
ab4160cad5 daemon: make UpDaemon a subclass of UpExportedDaemon
Simplifies some state tracking.
2015-07-29 13:38:13 +01:00
Cosimo Cecchi
8ad64459be daemon: make UpDevice a subclass of UpExportedDeviceSkeleton
Removes proxying of properties from one object to the other.
2015-07-29 13:38:13 +01:00
Cosimo Cecchi
c108a8e8a4 Share generated code between daemon and library
Since we use the same GDBus code in libupower-glib and the daemon,
auto-generate a private library that can be used by both.
2015-07-29 13:38:13 +01:00
Cosimo Cecchi
da7517137e integration-test: fix typo in interface name
The display device will use the org.freedesktop.UPower.Device interface,
not org.freedesktop.UPower.
2015-07-29 13:37:11 +01:00
Cosimo Cecchi
b549d8928b build: remove dependency on dbus-glib and libdbus
Nothing depends on it any more.
2015-07-29 13:37:11 +01:00
Cosimo Cecchi
e035f23ae0 daemon: port main() to GDBus
We also change the objects to export not to fetch their own bus object.
2015-07-29 13:37:11 +01:00
Cosimo Cecchi
4e2f06d9eb daemon: port UpDevice to GDBus 2015-07-29 13:37:11 +01:00
Cosimo Cecchi
e7e9156fe9 daemon: port UpDaemon to GDBus 2015-07-29 13:37:11 +01:00
Cosimo Cecchi
da7324a840 daemon: port UpWakeups to GDBus 2015-07-29 13:37:11 +01:00
Cosimo Cecchi
6a8aeafc51 daemon: port UpKbdBacklight to GDBus 2015-07-29 13:37:11 +01:00
Cosimo Cecchi
7258c4cce0 up-backend: remove unused private member 2015-07-29 13:37:11 +01:00
Cosimo Cecchi
a037cffdee up-tool: remove unused variables 2015-07-29 13:37:11 +01:00
Arnaud Quette
fc27cbd5cb Update UPower HID rules - supported devices list
As per update on the NUT - Network UPS Tools project, this first patch
adds some more supported devices to the rules file

Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-07-29 13:21:16 +01:00
Arnaud Quette
ae9f8521c6 Fix HID rules header, as per discussions
Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-07-29 13:18:46 +01:00
Bastien Nocera
1e4f711df4 Revert "linux: Work-around broken battery on the Onda v975w"
This reverts commit 31b2b8ec78.

A better work-around has been found kernel-side:
https://bugzilla.kernel.org/show_bug.cgi?id=83941

We'll need to add some code to ignore the incorrect "time left" values
though.
2015-07-16 11:26:17 +02:00
muzena
305f62adf0 rules: Add support for Logitech G700s/G700 Gaming Mouse
https://bugs.freedesktop.org/show_bug.cgi?id=91270
2015-07-09 02:32:07 +02:00
Eric Koegel
77239cc447 bsd: Add critical action support for *BSD
This patch adds support for using ConsoleKit2's DBUS API to
implement the critical action for FreeBSD and OpenBSD. It does so
by creating a common backend file both can use to implement the
API calls.

https://bugs.freedesktop.org/show_bug.cgi?id=85242
2015-07-07 17:10:38 +02:00
Bastien Nocera
c9b2e17726 linux: Fix possible double-free
When reopening the lockdown daemon with upower as the client, don't
double-free if the user says "No" to trusting the laptop.

https://bugzilla.redhat.com/show_bug.cgi?id=1231763
2015-06-26 14:07:13 +02:00
Bastien Nocera
fe37183fba lib: Fix memory leak in up_client_get_devices()
When up_client_get_devices() fails to contact the D-Bus daemon, don't
leak the newly created array.
2015-06-26 11:15:32 +02:00
Richard Hughes
95e8a2a316 trivial: post release version bump 2015-05-28 10:22:05 +01:00
Richard Hughes
418bbc9d84 Released UPower 0.99.3 2015-05-28 10:20:47 +01:00
Marc Deslauriers
6c706ff033 linux: Properly detect bluetooth mice and keyboards that are HID devices
https://bugs.freedesktop.org/show_bug.cgi?id=90222
2015-05-20 14:56:27 +02:00
Bastien Nocera
31b2b8ec78 linux: Work-around broken battery on the Onda v975w
Until https://bugzilla.kernel.org/show_bug.cgi?id=83941 is fixed,
this allow to have a bit more information than "0% battery" displayed in
the UI.

https://bugs.freedesktop.org/show_bug.cgi?id=90214
2015-04-28 13:19:48 +02:00
Bastien Nocera
abaf635ce4 linux: Use CLAMP() instead of a series of ifs 2015-04-28 13:01:11 +02:00
Peter Wu
f8104a112e rules: support Logitech Unifying in Linux 3.19
Linux 3.19 changed the way in which devices get registered by
introducing a hid-logitech-hidpp module. The driver name therefore needs
to be adjusted.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
2015-04-02 16:07:44 +02:00
Bastien Nocera
aa902f41e5 build: Fix libimobiledevice msg in configure 2015-04-02 16:07:16 +02:00
Vlad Orlov
2510148b16 lib: Fix crash on uninitialized variant
Initialize the GVariant* pointers, so that they aren't uninitialized when
jumping to "out:" and unref'ing them.

https://bugs.freedesktop.org/show_bug.cgi?id=89476
https://bugs.debian.org/774546
https://bugs.launchpad.net/ubuntu-mate/+bug/1428337
2015-03-13 13:17:31 +01:00
Bastien Nocera
f3706d7a29 linux: More memory handling fixes in iDevice
We could crash if up_device_idevice_refresh() failed during
start_poll_cb().
2015-02-03 23:20:26 +01:00
Bastien Nocera
a410c26991 linux: Bail out when iDevice state is malformed
If there's no BatteryCurrentCapacity value, we've failed updating
the device.
2015-02-03 23:07:31 +01:00
Bastien Nocera
e37fcd1db1 linux: Defer getting iDevice info until ready
We're a bit too fast for usbmuxd to have noticed the USB device getting
plugged in, so defer until either the device is 1) noticed by usbmuxd
and 2) paired.

https://bugs.freedesktop.org/show_bug.cgi?id=88950
2015-02-03 23:07:31 +01:00
Richard Hughes
3bade56d1f trivial: post release version bump 2014-12-18 09:33:09 +00:00
Richard Hughes
42fd6fd490 Released UPower 0.99.2 2014-12-18 09:32:27 +00:00
Peter Wu
9639487d4e daemon: fix ulong/gulong typo
Regression in 4221835fae ("daemon:
properly disconnect signals, stop memleak").

https://bugs.freedesktop.org/show_bug.cgi?id=82659

Signed-off-by: Richard Hughes <richard@hughsie.com>
2014-12-03 17:31:59 +00:00
Peter Wu
2199a9b0b5 daemon: fix dbus proxy leak on shutdown
Fixes leaking some DBus objects on shutdown, causing noise in
gobject-list and valgrind logs.

https://bugs.freedesktop.org/show_bug.cgi?id=82659
2014-11-26 11:56:17 +00:00