aboutsummaryrefslogtreecommitdiff
path: root/src/device-provider-upower.c
Commit message (Collapse)AuthorAgeFilesLines
* Ignore batt_therm devices.Marius Gripsgard2018-03-251-2/+11
| | | | | | | | | | | | | | | | Ported from UBports power indicator: commit 431114ed4f6d457822655ad57901e7e640f99bca Author: Marius Gripsgard <mariogrip@ubuntu.com> Date: Sun Aug 13 00:08:05 2017 +0200 Ignore "batt_therm" devices (fixes: https://github.com/ubports/ubports-touch/issues/94) This ignores "batt_therm" devices since they do not provide correct values. "batt_therm" is only used for temperature of the battery and seems to appear as a "battery" device in upower Ported-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* Make device with power supply has higher sorting priority. (LP: #1100546)Charles Kerr2017-05-151-1/+5
|
* more copyeditingCharles Kerr2014-09-081-35/+50
|
* copyediting.Charles Kerr2014-09-081-53/+53
|
* in device-provider-upower, use glib's G_ADD_PRIVATE() macroCharles Kerr2014-09-081-29/+35
|
* add upower 0.99 supportCharles Kerr2014-09-071-149/+239
|
* fix some compiler warnings generated by clang static analyzerCharles Kerr2014-07-131-6/+4
|
* We really only need to keep a handful of properties up-to-date for each ↵Charles Kerr2013-11-041-54/+128
|\ | | | | | | | | | | | | | | upower device. Given that upower requires us to refetch all properties with GetAll whenever it signals that it's changed, we really don't need to keep bus proxies alive for each device. Removing the autogenerated proxy code and just using a couple of the direct GDBusConnection API calls cuts out some unnecessary overhead according to health-check. See the before & after profile logs attached to the ticket. Fixes: https://bugs.launchpad.net/bugs/1221871. Approved by Lars Uebernickel, PS Jenkins bot.
| * in on_bus_ready(), use g_error_matches().Charles Kerr2013-11-031-1/+1
| |
| * in on_device_properties_ready(), improve the g_warning() text to be more useful.Charles Kerr2013-11-031-1/+3
| |
| * in on_device_properties_ready(), use g_error_matchesCharles Kerr2013-11-031-1/+1
| |
| * don't create proxies for each upower device.Charles Kerr2013-10-031-54/+126
| |
* | Listen for the 'Resuming' signal from upower. When it's received, refresh ↵Charles Kerr2013-10-011-0/+18
|/ | | | all our devices.
* adjust device-provider-upower's timer to reduce how many times we pull the ↵Charles Kerr2013-06-191-48/+86
| | | | device's properties over the bus.
* in provider-upower.c, clear its private hashtable in dispose() and destroy ↵Charles Kerr2013-06-191-1/+16
| | | | it in finalize()
* lower the interval on the upower timer to make our updates more responsiveCharles Kerr2013-06-191-1/+1
|
* in device-provider-upower's dispose(), disconnect from our proxy's signal ↵Charles Kerr2013-06-171-4/+11
| | | | before we unref the proxy
* add device-provider-upower, a UPower implementation of device-providerCharles Kerr2013-06-161-0/+364