Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-10-18 | daemon: Don't get in a bad state when refresh fails | Bastien Nocera | 1 | -5/+3 | |
Failure to refresh was supposed to be non-fatal, but since we started putting objects on the bus *after* refresh, we were skipping the registration if refresh failed, as is the case in the UPS test case. | |||||
2013-10-18 | daemon: Fix typos in comments | Bastien Nocera | 2 | -2/+2 | |
2013-10-18 | linux: More information in the debug output | Bastien Nocera | 1 | -1/+1 | |
As was the case in other places, we need to be able to differentiate warning messages for them to be useful. | |||||
2013-10-18 | daemon: Differentiate 2 warnings | Bastien Nocera | 1 | -2/+2 | |
No way to know which one was being called otherwise | |||||
2013-10-18 | linux: Fix tests for "OnLowBattery" | Bastien Nocera | 1 | -23/+23 | |
Replace them all with WarningLevel tests. Note we current crash when adding a UPS, in test_ups_ac. | |||||
2013-10-18 | linux: Add TODO item for the GetCriticalAction binding | Bastien Nocera | 1 | -0/+2 | |
2013-10-18 | linux: get_properties_sync() doesn't exist anymore | Bastien Nocera | 1 | -1/+0 | |
2013-10-18 | linux: Add helper to get DisplayDevice property | Bastien Nocera | 1 | -0/+8 | |
In the integration tests. | |||||
2013-10-18 | daemon: Fix WarningLevel for devices with no "time to empty" | Bastien Nocera | 1 | -1/+3 | |
As can happen with missing metadata, we might not have a time to empty, so rely on the percentage instead. | |||||
2013-10-18 | daemon: Add small doc update_warning_level | Bastien Nocera | 1 | -0/+2 | |
2013-10-18 | linux: Add new definitions | Bastien Nocera | 1 | -0/+8 | |
Proxy paths, and enumeration from the current API. | |||||
2013-10-18 | linux: Fix UMockdev typelib not being found | Bastien Nocera | 1 | -1/+1 | |
The Makefile rule was using GI_REPOSITORY_PATH instead of GI_TYPELIB_PATH meaning that if a custom typelib path was needed (jhbuild for example) it wouldn't be found. | |||||
2013-10-18 | linux: Mark devices with 100% battery as full | Bastien Nocera | 1 | -0/+5 | |
2013-10-18 | linux: Fix Bluetooth devices appearing with 0% battery | Bastien Nocera | 1 | -1/+7 | |
When switching off Bluetooth devices, and before they timeout, we won't be able to read the battery percentage, so don't overwrite the previous value with "0%", but set the state to unknown instead. https://bugs.freedesktop.org/show_bug.cgi?id=70325 | |||||
2013-10-18 | linux: Add a way to check when sysfs_get_double fails | Bastien Nocera | 2 | -0/+20 | |
2013-10-18 | linux: Use up_device_supply_get_string() | Bastien Nocera | 1 | -5/+6 | |
In up_device_supply_get_state() | |||||
2013-10-18 | linux: Add a simpler, quicker path for devices | Bastien Nocera | 1 | -1/+66 | |
When refreshing the state of device batteries, no need to get data that won't be there anyway, such as voltage, temperature, or consumption rate. This avoids warnings about voltage being unknown for devices, and cuts down on the properties churn. | |||||
2013-10-18 | linux: Split off device state retrieval | Bastien Nocera | 1 | -20/+31 | |
We're going to be reusing this elsewhere. | |||||
2013-10-18 | linux: Ignore ACs coming from devices | Bastien Nocera | 1 | -0/+7 | |
We already have enough information on the device battery. This avoids having a device for the wacom AC which we won't use. | |||||
2013-10-18 | linux: Remove incorrect statement | Bastien Nocera | 1 | -1/+0 | |
Not all "UpDeviceSupply" actually supply power to the computer. | |||||
2013-10-17 | daemon: Fix crash when device is removed | Bastien Nocera | 1 | -0/+2 | |
When the device was removed, we forgot to cancel sending out changed properties, causing illegal memory accesses. | |||||
2013-10-17 | daemon: Remove dead code from up_daemon_device_changed_cb() | Bastien Nocera | 1 | -11/+0 | |
2013-10-17 | lib: Fix possible warning when type changes | Bastien Nocera | 1 | -1/+4 | |
UpDevice on the daemon side has a "type" property, but the libupower-glib object has a "kind" type instead. Translate that. | |||||
2013-10-17 | linux: Use boolean values in sysfs_get_bool, not int | Bastien Nocera | 1 | -4/+3 | |
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. |