diff options
author | 2023-07-25 15:20:25 -0700 | |
---|---|---|
committer | 2023-08-14 11:43:57 +0200 | |
commit | 9ac6678b95b0dd9458a7a6869f46e51cd55a1d84 (patch) | |
tree | 56e9a7ac651b57bf8253d727dc569d53b67ef0bb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'for-linus-2023071101' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid (diff) | |
download | wireguard-linux-9ac6678b95b0dd9458a7a6869f46e51cd55a1d84.tar.xz wireguard-linux-9ac6678b95b0dd9458a7a6869f46e51cd55a1d84.zip |
HID: wacom: remove the battery when the EKR is off
Currently the EKR battery remains even after we stop getting information
from the device. This can lead to a stale battery persisting indefinitely
in userspace.
The remote sends a heartbeat every 10 seconds. Delete the battery if we
miss two heartbeats (after 21 seconds). Restore the battery once we see
a heartbeat again.
Signed-off-by: Aaron Skomra <skomra@gmail.com>
Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
Fixes: 9f1015d45f62 ("HID: wacom: EKR: attach the power_supply on first connection")
CC: stable@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions