diff options
author | Benjamin Berg <bberg@redhat.com> | 2022-07-15 18:58:17 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2022-07-21 11:06:49 +0200 |
commit | c2d77ae251b477d47093ff220697d37b0b14db7f (patch) | |
tree | 5cefcb6aac19c24cdd1dfa088a0d8444cd03695d /meson.build | |
parent | 1ab1b70d4adbc3962852a76d0fe859d64261d366 (diff) |
battery: User power/current reading from battery
This switches to always use the power/current reading if we had a
sensible reading at some point in the past.
In contrast to the older UPower code, will will however ignore the
reading for 10 seconds after a discontinuity (power plug/unplug or
resume) unless we read an explicit zero value after the event happened.
We do this under the assumption that the readings may be wildly off, and
it is better to not show an estimate rather than one that is wildly
incorrect.
Note that this commit also normalises negative power readings while
discharging to be positive.
Closes: #199
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions