summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-10-17linux: Remove unused sysfs utils functionsBastien Nocera2-110/+0
2013-10-17NEWS: Explain better the *Changed removalsBastien Nocera1-1/+2
2013-10-17NEWS: Update for future releaseBastien Nocera1-0/+22
2013-10-17lib: Fix compile-time warningBastien Nocera1-1/+1
2013-10-17linux: Remove debugBastien Nocera1-1/+0
2013-10-17tools: Update for lib API changesBastien Nocera1-18/+2
2013-10-17lib: Remove up_client_enumerate_devices_sync()Bastien Nocera2-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-17all: Remove *changed signalsBastien Nocera8-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-17tools: Use notify signals instead of *changed onesBastien Nocera1-4/+20
2013-10-17lib: Proxy notify changes from UpDevice glueBastien Nocera1-2/+3
2013-10-17lib: Simplify proxying glue properties in UpClientBastien Nocera1-14/+2
2013-10-17power: Work-around batteries that are slow to notice chargeBastien Nocera1-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-17all: Add GetCriticalAction daemon methodBastien Nocera11-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-17linux: Fix incorrect check for logind sleep methodsBastien Nocera1-1/+1
A simple reversed check...
2013-10-17build: And bump sonameBastien Nocera1-2/+2
2013-10-17build: Bump version to 0.99.0Bastien Nocera1-2/+2
2013-10-17daemon: Make warning-level UpDevice property writableBastien Nocera1-1/+4
So we can update the display device warning level.
2013-10-17all: Remove WarningLevel from the daemon propertiesBastien Nocera5-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-17tools: Print the display device when using -dBastien Nocera1-0/+10
2013-10-17lib: Trim properties when printing the display deviceBastien Nocera1-7/+14
2013-10-17daemon: Indentation in UpDaemon structBastien Nocera1-9/+9
2013-10-17lib: Add up_client_get_display_device()Bastien Nocera2-0/+25
Add a helper to get to the display device.
2013-10-17lib: Remove unneeded up_client_get_properties_sync()Bastien Nocera2-25/+0
It doesn't do anything, and we already broke the ABI by removing some functions, so remove this as well.
2013-10-16daemon: Add documentation for computed propertiesBastien Nocera1-0/+6
Those are also part of the display device properties that we will update.
2013-10-16daemon: Mention hard-coded display device object pathBastien Nocera1-1/+3
/org/freedesktop/UPower/devices/DisplayDevice is a stable object path.
2013-10-16daemon: Minimise WarningLevel signalsBastien Nocera1-0/+4
When it doesn't actually change, don't send out signals.
2013-10-16daemon: Fix sending device's PropertiesChanged signalBastien Nocera1-1/+1
The interface name was missing ".Device" at the end, so wasn't getting registered by clients.
2013-10-16daemon: Emit PropertiesChanged for computed properties tooBastien Nocera1-2/+10
The IconName and WarningLevel properties were not sent out through PropertiesChanged when they changed for devices.
2013-10-16daemon: Only modify display device when it changesBastien Nocera1-1/+11
When none of the properties of the display device change, do not modify it.
2013-10-16daemon: Add GetDisplayDevice methodBastien Nocera5-0/+99
And export a DisplayDevice object which can be used by desktop shells to show/hide the status icon.
2013-10-16daemon: Set the display device type when on batteryBastien Nocera1-0/+1
When on battery only, we weren't setting the display device type properly.
2013-10-16daemon: Use constant for the devices object pathsBastien Nocera1-1/+3
2013-10-16daemon: Remove spurious linefeedBastien Nocera1-1/+0
2013-10-16daemon: Remove 2 undefined functions from headersBastien Nocera1-4/+0
up_daemon_get_on_battery() and up_daemon_get_warning_level() weren't defined or used anywhere.
2013-10-15daemon: Remove left-over debugBastien Nocera1-2/+0
2013-10-15daemon: Make UpDevice emit PropertiesChanged signalsBastien Nocera1-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-15daemon: Add support for more types for PropertiesChangedBastien Nocera1-0/+16
Add code to transform strings, doubles, uint64s, and int64s.
2013-10-15daemon: Coalesce PropertiesChanged signals togetherBastien Nocera2-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-15lib: Fix compilationBastien Nocera1-2/+2
2013-10-15lib: Use slices to allocate cached propertiesBastien Nocera1-2/+2
Saves on memory fragmentation.
2013-10-15lib: Print property name when cached property doesn't existBastien Nocera1-1/+1
2013-10-15lib: Cache property values correctlyBastien Nocera1-1/+2
This is cleaner.
2013-10-15daemon: Calculate global WarningLevel correctlyBastien Nocera1-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-15daemon: Fix possible crasher in UpDevice self-testBastien Nocera1-0/+4
2013-10-15daemon: Remove unimplemented up_device_test()Bastien Nocera1-1/+0
2013-10-15daemon: Remove unused internal D-Bus proxyBastien Nocera1-10/+1
In UpDevice.
2013-10-15daemon: Register on the Bus after coldplugBastien Nocera2-66/+44
Both for the daemon and devices, so as to avoid D-Bus changes storms on startup.
2013-10-14daemon: Don't emit changed signal in coldplugBastien Nocera1-5/+7
We weren't emitting GObject signals in coldplug, no need to send out D-Bus signals either.
2013-10-14daemon: Sort the UpDaemon struct memberBastien Nocera1-4/+7
2013-10-14daemon: Add new WarningLevel "Discharging"Bastien Nocera4-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).