diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2011-04-20 00:03:45 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2011-04-26 11:50:36 +0200 |
commit | 5cb1f4a9a33d3afac1d2c0d49e0def486f9c3557 (patch) | |
tree | 2c5f371e3b69b9710ecdca339bd5d059681958e1 /src/up-config.c | |
parent | a786d2fd16b8ea474674a99acecc1e5e026ac609 (diff) | |
download | upower-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