Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-10-17 | linux: Remove unused sysfs utils functions | Bastien Nocera | 2 | -110/+0 | |
2013-10-17 | NEWS: Explain better the *Changed removals | Bastien Nocera | 1 | -1/+2 | |
2013-10-17 | NEWS: Update for future release | Bastien Nocera | 1 | -0/+22 | |
2013-10-17 | lib: Fix compile-time warning | Bastien Nocera | 1 | -1/+1 | |
2013-10-17 | linux: Remove debug | Bastien Nocera | 1 | -1/+0 | |
2013-10-17 | tools: Update for lib API changes | Bastien Nocera | 1 | -18/+2 | |
2013-10-17 | lib: Remove up_client_enumerate_devices_sync() | Bastien Nocera | 2 | -95/+41 | |
And make device-removed send an object path, not a UpDevice. This means that we don't keep all the remote devices as local UpDevices object, getting woken up any time any of them have a property changed, without anybody listening. This should greatly cut down on the wakeups on the client side, especially for applications that only use a small portion of the API like the "on-battery" or "warning-level" properties. | |||||
2013-10-17 | all: Remove *changed signals | Bastien Nocera | 8 | -172/+2 | |
Now that we send out PropertiesChanged signals (on the daemon side) and "notify" signals (on the client side), there's no need for the all encompassing DeviceChanged and Changed signals. They would have woken up any client, even if they were not interested in receiving the signals. | |||||
2013-10-17 | tools: Use notify signals instead of *changed ones | Bastien Nocera | 1 | -4/+20 | |
2013-10-17 | lib: Proxy notify changes from UpDevice glue | Bastien Nocera | 1 | -2/+3 | |
2013-10-17 | lib: Simplify proxying glue properties in UpClient | Bastien Nocera | 1 | -14/+2 | |
2013-10-17 | power: Work-around batteries that are slow to notice charge | Bastien Nocera | 1 | -0/+5 | |
This is a hack that was in gnome-settings-daemon's power plugin. We would check whether we were on AC before saying for certain that batteries had a low-level, and raising the warning-level. | |||||
2013-10-17 | all: Add GetCriticalAction daemon method | Bastien Nocera | 11 | -20/+145 | |
This allows desktop front-ends to get which action will actually be taken when we hit critical battery. This is not a property as availability of actions might change over the course of the run of the system, and we didn't want to make unnecessary D-Bus calls on startup. | |||||
2013-10-17 | linux: Fix incorrect check for logind sleep methods | Bastien Nocera | 1 | -1/+1 | |
A simple reversed check... | |||||
2013-10-17 | build: And bump soname | Bastien Nocera | 1 | -2/+2 | |
2013-10-17 | build: Bump version to 0.99.0 | Bastien Nocera | 1 | -2/+2 | |
2013-10-17 | daemon: Make warning-level UpDevice property writable | Bastien Nocera | 1 | -1/+4 | |
So we can update the display device warning level. | |||||
2013-10-17 | all: Remove WarningLevel from the daemon properties | Bastien Nocera | 5 | -61/+1 | |
The WarningLevel property just replicated the warning level on the display device, or at least should have. So we fix the latter to remove the former. | |||||
2013-10-17 | tools: Print the display device when using -d | Bastien Nocera | 1 | -0/+10 | |
2013-10-17 | lib: Trim properties when printing the display device | Bastien Nocera | 1 | -7/+14 | |
2013-10-17 | daemon: Indentation in UpDaemon struct | Bastien Nocera | 1 | -9/+9 | |
2013-10-17 | lib: Add up_client_get_display_device() | Bastien Nocera | 2 | -0/+25 | |
Add a helper to get to the display device. | |||||
2013-10-17 | lib: Remove unneeded up_client_get_properties_sync() | Bastien Nocera | 2 | -25/+0 | |
It doesn't do anything, and we already broke the ABI by removing some functions, so remove this as well. | |||||
2013-10-16 | daemon: Add documentation for computed properties | Bastien Nocera | 1 | -0/+6 | |
Those are also part of the display device properties that we will update. | |||||
2013-10-16 | daemon: Mention hard-coded display device object path | Bastien Nocera | 1 | -1/+3 | |
/org/freedesktop/UPower/devices/DisplayDevice is a stable object path. | |||||
2013-10-16 | daemon: Minimise WarningLevel signals | Bastien Nocera | 1 | -0/+4 | |
When it doesn't actually change, don't send out signals. | |||||
2013-10-16 | daemon: Fix sending device's PropertiesChanged signal | Bastien Nocera | 1 | -1/+1 | |
The interface name was missing ".Device" at the end, so wasn't getting registered by clients. | |||||
2013-10-16 | daemon: Emit PropertiesChanged for computed properties too | Bastien Nocera | 1 | -2/+10 | |
The IconName and WarningLevel properties were not sent out through PropertiesChanged when they changed for devices. | |||||
2013-10-16 | daemon: Only modify display device when it changes | Bastien Nocera | 1 | -1/+11 | |
When none of the properties of the display device change, do not modify it. | |||||
2013-10-16 | daemon: Add GetDisplayDevice method | Bastien Nocera | 5 | -0/+99 | |
And export a DisplayDevice object which can be used by desktop shells to show/hide the status icon. | |||||
2013-10-16 | daemon: Set the display device type when on battery | Bastien Nocera | 1 | -0/+1 | |
When on battery only, we weren't setting the display device type properly. | |||||
2013-10-16 | daemon: Use constant for the devices object paths | Bastien Nocera | 1 | -1/+3 | |
2013-10-16 | daemon: Remove spurious linefeed | Bastien Nocera | 1 | -1/+0 | |
2013-10-16 | daemon: Remove 2 undefined functions from headers | Bastien Nocera | 1 | -4/+0 | |
up_daemon_get_on_battery() and up_daemon_get_warning_level() weren't defined or used anywhere. | |||||
2013-10-15 | daemon: Remove left-over debug | Bastien Nocera | 1 | -2/+0 | |
2013-10-15 | daemon: Make UpDevice emit PropertiesChanged signals | Bastien Nocera | 1 | -1/+64 | |
That will make libupower-glib UpDevice work again, as the proxy was not receiving property changes, and we kept reading old cached values. | |||||
2013-10-15 | daemon: Add support for more types for PropertiesChanged | Bastien Nocera | 1 | -0/+16 | |
Add code to transform strings, doubles, uint64s, and int64s. | |||||
2013-10-15 | daemon: Coalesce PropertiesChanged signals together | Bastien Nocera | 2 | -41/+102 | |
Instead of sending one changed signal at a time, coalesce them together to reduce wakeups. We also export up_daemon_emit_properties_changed() for UpDevice to use. | |||||
2013-10-15 | lib: Fix compilation | Bastien Nocera | 1 | -2/+2 | |
2013-10-15 | lib: Use slices to allocate cached properties | Bastien Nocera | 1 | -2/+2 | |
Saves on memory fragmentation. | |||||
2013-10-15 | lib: Print property name when cached property doesn't exist | Bastien Nocera | 1 | -1/+1 | |
2013-10-15 | lib: Cache property values correctly | Bastien Nocera | 1 | -1/+2 | |
This is cleaner. | |||||
2013-10-15 | daemon: Calculate global WarningLevel correctly | Bastien Nocera | 1 | -17/+137 | |
By using the state of all the combined batteries, rather than each one (eg. 2 batteries of the same type at 15% shouldn't trigger the "low" warning level). This introduces code to calculate the state of a "display" device, which is either a UPS, or a combination of all batteries. | |||||
2013-10-15 | daemon: Fix possible crasher in UpDevice self-test | Bastien Nocera | 1 | -0/+4 | |
2013-10-15 | daemon: Remove unimplemented up_device_test() | Bastien Nocera | 1 | -1/+0 | |
2013-10-15 | daemon: Remove unused internal D-Bus proxy | Bastien Nocera | 1 | -10/+1 | |
In UpDevice. | |||||
2013-10-15 | daemon: Register on the Bus after coldplug | Bastien Nocera | 2 | -66/+44 | |
Both for the daemon and devices, so as to avoid D-Bus changes storms on startup. | |||||
2013-10-14 | daemon: Don't emit changed signal in coldplug | Bastien Nocera | 1 | -5/+7 | |
We weren't emitting GObject signals in coldplug, no need to send out D-Bus signals either. | |||||
2013-10-14 | daemon: Sort the UpDaemon struct member | Bastien Nocera | 1 | -4/+7 | |
2013-10-14 | daemon: Add new WarningLevel "Discharging" | Bastien Nocera | 4 | -5/+16 | |
When UPSes are discharging, we should have a warning already, as it means that mains power has been lost to the UPS (though not to the computer). |