Bastien Nocera
3d16414652
daemon: Emit the "Changed" signal without going through notify
...
There's no need to use the "notify" signal to capture when
the properties are changed, we're the ones sending the notify
signals in the first place.
2013-10-14 11:06:53 +02:00
Bastien Nocera
e0fb5078bd
lib: up_device_to_text() won't work for fake devices
...
For now, up_device_to_text() won't work for devices that aren't
backed by a UPower device.
2013-10-14 10:42:56 +02:00
Bastien Nocera
010ab14505
daemon: Device* signals send out object paths
...
Not strings, so correct the signal definitions to match the
XML service definition.
2013-10-14 10:42:56 +02:00
Bastien Nocera
869050d699
lib: Make it possible to create local UpDevices
...
gnome-settings-daemon creates a composite UpDevice that's not
backed by any real D-Bus object in UPower, so we shouldn't
try and poke the inexistant proxy in this case.
We'll cache the properties that the caller sets in this case,
but will not support sending back default/unset values.
2013-10-14 10:42:56 +02:00
Bastien Nocera
87709f709a
daemon: Add small hack for keyboards and mice
...
Imported from gnome-settings-daemon, itself from
gnome-power-manager.
2013-10-14 10:42:56 +02:00
Bastien Nocera
0da46209f3
tools: Update for API changes
2013-10-14 10:42:56 +02:00
Bastien Nocera
858ab85f95
lib: Update for property removal and additions
...
Remove on-low-battery and add warning-level daemon properties.
2013-10-14 10:42:56 +02:00
Bastien Nocera
bd3a57fe04
daemon: Replace "on-low-battery" property
...
With "warning-level" property.
2013-10-14 10:42:56 +02:00
Bastien Nocera
9c27c42a99
lib: Fix alignment of "online" in device dump
2013-10-14 10:42:56 +02:00
Bastien Nocera
493c2192a2
lib: Add warning-level device property
2013-10-14 10:42:56 +02:00
Bastien Nocera
de749a332b
daemon: Add WarningLevel device property
2013-10-14 10:42:56 +02:00
Bastien Nocera
68aca3a7e7
daemon: Load level policy configuration
2013-10-14 10:42:56 +02:00
Bastien Nocera
3bf0b7adaf
daemon: Add helper to get uint from config
2013-10-14 10:42:56 +02:00
Bastien Nocera
ccda7a4a17
daemon: Remove unused config file loading
...
We already have UpConfig to handle that.
2013-10-14 10:42:56 +02:00
Bastien Nocera
5423adab89
lib: Add UpDeviceLevel enum
2013-10-14 10:42:56 +02:00
Bastien Nocera
4a5d12a909
etc: Add configuration for battery levels
2013-10-14 10:42:56 +02:00
Bastien Nocera
91df125e39
daemon: Remove unneeded reset of priv struct members
...
It's already done by GObject.
2013-10-14 10:42:56 +02:00
Bastien Nocera
8c83871f10
lib: Remove dbus-glib from the dependencies
...
libupower-glib now uses GDBus.
2013-10-14 10:42:56 +02:00
Bastien Nocera
5adf4c1e20
lib: Port UpWakeUps to GDBus
...
Using the new proxy.
2013-10-14 10:42:56 +02:00
Bastien Nocera
b989cad776
lib: Port UpDevice to GDBus
...
Using the new proxy.
2013-10-14 10:42:55 +02:00
Bastien Nocera
c590354d0a
lib: No need to set private members to NULL
...
GObject already makes sure of that for us.
2013-10-14 10:42:55 +02:00
Bastien Nocera
65c84120f9
lib: Port UpClient to GDBus
...
Using the new proxy.
2013-10-14 10:42:55 +02:00
Bastien Nocera
760d294a34
lib: Build the new D-Bus glue
2013-10-14 10:42:55 +02:00
Bastien Nocera
a3627b8227
lib: Add autogenerated glue to the daemon
2013-10-14 10:42:55 +02:00
Bastien Nocera
d10cc97cbb
Remove QoS interface
...
It was added for some workloads, but ill-suited and never really
got traction. Using cgroups to manage the resources of particular
services (using systemd), or something separate like rtkit is
a better bet.
2013-10-14 10:42:55 +02:00
Bastien Nocera
c842f1a53e
Remove obsolete battery recall properties
...
The recalls for that broken batch of Sony batteries dates back from
2006. All the batteries that could have been recalled have now
been recalled, and somebody particularly interested in supporting
them can match the batteries using the old rules file, in a
user session or a separate daemon.
2013-10-14 10:42:55 +02:00
Bastien Nocera
3ed22cd32b
doc: Remove mention of suspend in example
2013-10-14 10:42:55 +02:00
Bastien Nocera
bd7af247f0
tools: Remove use of deprecated features
2013-10-14 10:42:55 +02:00
Bastien Nocera
ababfa2aaf
policy: Remove policy for removed features
2013-10-14 10:42:55 +02:00
Bastien Nocera
e981026d99
etc: Remove now unused configuration options
2013-10-14 10:42:55 +02:00
Bastien Nocera
1ee642e705
daemon: Remove obsolete features
2013-10-14 10:42:55 +02:00
Bastien Nocera
030e2c9d36
lib: Remove deprecated features
...
All this is now handled by logind.
2013-10-14 10:42:55 +02:00
Bastien Nocera
911727fbaa
build: Add missing dbus-glib-1 to private requires
2013-10-14 10:41:34 +02:00
Bastien Nocera
ad7e809d4d
lib: Simplify _new() functions
...
No need to use a temporary variable.
2013-10-14 10:37:03 +02:00
Bastien Nocera
5f26bc5caa
daemon: Simplify _new() functions
2013-10-14 10:36:34 +02:00
Bastien Nocera
7007fea309
freebsd: Remove useless finalize
...
It was just chaining up.
2013-10-14 10:36:17 +02:00
Bastien Nocera
f926ee488f
lib: Simplify _to_string() calls
2013-10-14 10:36:13 +02:00
Bastien Nocera
cb759a05c8
linux: Don't print a warning if the status sysfs attr is missing
...
This is the case for some devices like the Wacom wireless (Bluetooth)
tablets, and shouldn't produce a warning.
2013-10-14 10:26:53 +02:00
Bastien Nocera
e385c570d4
daemon: Remove unused _set_property
2013-10-14 10:26:24 +02:00
Bastien Nocera
1f991aa6e0
daemon: Avoid trying to close fd that wasn't opened
...
If we fail to open the fd for the sysfs keyboard backlight control
file, don't try to close it.
2013-10-14 10:25:47 +02:00
Bastien Nocera
fed403c167
daemon: Fix options parsing
...
If an unknown option was passed to the daemon, it might fail
to parse some of the passed options, and not take them into account.
For example: "upower -d --timed-exit" would fail to exit
Error out when an unknown option is passed.
2013-10-14 10:25:38 +02:00
Bastien Nocera
6abd4123ef
linux: Opt-out of checking Watts Up devices earlier
...
Don't wait for tty events from udev if we're not going to
use the Watts Up device anyway. Cuts down on the possible wakeups.
2013-10-14 10:18:21 +02:00
Bastien Nocera
d6bfaaf0aa
etc: Disable Watts-Up devices by default
...
They are few are far between, and users of the device can
spare the time to enable this by default.
https://bugs.freedesktop.org/show_bug.cgi?id=33846
2013-10-14 10:18:18 +02:00
Landry Breuil
b622008af3
daemon: Include config.h in up-backend.h
...
To reach ENABLE_DEPRECATED #define
https://bugs.freedesktop.org/show_bug.cgi?id=70071
2013-10-14 10:14:41 +02:00
Landry Breuil
a1b772af16
openbsd: Use g_thread_try_new()
...
Instead of deprecated g_thread_create()
https://bugs.freedesktop.org/show_bug.cgi?id=70071
2013-10-14 10:14:41 +02:00
Jasper Lievisse Adriaanse
3a9bd43450
openbsd: recognize when battery is absent or fully charged
...
https://bugs.freedesktop.org/show_bug.cgi?id=70064
2013-10-14 10:13:40 +02:00
Bastien Nocera
b61f8a72e5
website: Link to bugzilla
...
https://bugs.freedesktop.org/show_bug.cgi?id=66687
2013-10-14 10:11:20 +02:00
Bastien Nocera
f3898db4d3
linux: Don't guess discharging state for devices
...
If the device state is unknown, don't guess based on the laptop's
power supplies (battery/power line) as it might not be charging
from there.
https://bugs.freedesktop.org/show_bug.cgi?id=70321#c1
2013-10-14 10:07:21 +02:00
Bastien Nocera
66da41ceac
lib: Add missing "element-type" introspection metadata
...
https://bugs.freedesktop.org/show_bug.cgi?id=55419
2013-10-14 09:58:22 +02:00
Bastien Nocera
fc5793e742
lib: Fix crasher calling _about_to_sleep_sync()
...
https://bugs.freedesktop.org/show_bug.cgi?id=54976
2013-10-13 00:49:24 +02:00