summaryrefslogtreecommitdiff
path: root/src/up-config.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2011-04-20 00:03:45 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2011-04-26 11:50:36 +0200
commit5cb1f4a9a33d3afac1d2c0d49e0def486f9c3557 (patch)
tree2c5f371e3b69b9710ecdca339bd5d059681958e1 /src/up-config.c
parenta786d2fd16b8ea474674a99acecc1e5e026ac609 (diff)
downloadupower-5cb1f4a9a33d3afac1d2c0d49e0def486f9c3557.tar.gz
Consider a discharging UPS as "on battery"
Implement get_{on,low}_battery() methods on HID devices for Linux. This will treat discharging UPSes like batteries and set the "on-battery" and "on-low-battery" properties accordingly. This also fixes the test_ups_ac() case in the Linux integration tests.
Diffstat (limited to 'src/up-config.c')
0 files changed, 0 insertions, 0 deletions