diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-05-07 12:58:44 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-05-07 11:44:22 +0000 |
commit | 057238a04dd407f24bc78724ed18a68a8d36e57b (patch) | |
tree | a65d5d7fe7bf2a60e319daaa4d42fa077f239951 /rules | |
parent | c7104a19b3fe4fe8cf3735f1a0e1e8d06908e0ae (diff) | |
download | upower-057238a04dd407f24bc78724ed18a68a8d36e57b.tar.gz |
linux: Don't treat device batteries like laptop batteries
Use the correct refresh function for device batteries which aren't of a
known type. This fixes battery information not getting updated on many
Logitech wireless devices.
Reproducer:
- Unplug Logitech receiver
- Replug Logitech receiver
- Press button on Logitech keyboard
- Move mouse/touchpad
The touchpad battery would be stuck in "unknown" and with a "type" of
battery. This commit forces the correct refresh function to be used, one
that reads the capacity_level on those devices, and will update the
overall battery level.
Closes: #72
Diffstat (limited to 'rules')
0 files changed, 0 insertions, 0 deletions