Aaron Armstrong Skomra
d17cec60e8
HID: wacom: remove the battery when the EKR is off
...
commit 9ac6678b95b0dd9458a7a6869f46e51cd55a1d84 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-06 21:28:38 +01:00
..
2023-05-11 23:00:33 +09:00
2023-03-10 09:39:29 +01:00
2023-03-30 12:47:53 +02:00
2021-11-18 19:15:59 +01:00
2021-09-01 22:00:06 +02:00
2021-05-05 14:29:13 +02:00
2019-05-30 11:26:32 -07:00
2022-08-17 14:23:57 +02:00
2022-01-27 11:04:27 +01:00
2020-03-13 17:33:11 +01:00
2023-03-10 09:38:57 +01:00
2019-05-21 10:50:45 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2023-02-01 08:27:13 +01:00
2023-03-10 09:39:31 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2021-07-28 11:51:07 +02:00
2023-03-22 13:31:37 +01:00
2021-12-14 10:57:06 +01:00
2020-08-17 11:38:49 +02:00
2023-03-30 12:47:53 +02:00
2019-09-03 16:52:04 +02:00
2020-10-23 13:23:44 +02:00
2023-03-10 09:39:52 +01:00
2019-10-03 15:36:40 -04:00
2022-06-09 10:22:47 +02:00
2023-03-03 11:45:52 +01:00
2022-03-16 14:23:35 +01:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-22 17:11:58 +02:00
2020-03-18 13:36:21 +01:00
2023-06-09 10:32:27 +02:00
2021-05-27 15:40:34 +02:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2021-12-29 12:28:37 +01:00
2019-10-03 15:36:40 -04:00
2022-11-16 09:58:15 +01:00
2019-05-30 11:26:32 -07:00
2023-08-26 14:23:23 +02:00
2023-03-10 09:39:52 +01:00
2022-12-14 11:37:21 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-04-07 18:46:20 +02:00
2019-05-30 11:26:32 -07:00
2022-06-09 10:22:47 +02:00
2021-04-07 12:48:20 +02:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2022-12-14 11:37:21 +01:00
2021-05-05 14:39:24 +02:00
2021-12-14 10:57:06 +01:00
2019-10-03 15:36:40 -04:00
2022-04-08 14:22:46 +02:00
2023-08-26 14:23:23 +02:00
2020-08-17 11:38:49 +02:00
2022-10-29 10:12:55 +02:00
2022-12-31 13:14:46 +01:00
2020-11-25 14:30:33 +01:00
2020-09-02 12:55:46 -07:00
2019-05-30 11:26:32 -07:00
2023-03-10 09:39:28 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:30:28 +02:00
2020-09-03 16:18:55 +02:00
2021-04-07 18:46:20 +02:00
2019-06-05 17:30:28 +02:00
2020-04-01 12:26:12 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-05-30 11:26:35 -07:00
2023-01-12 11:58:46 +01:00
2023-02-06 07:59:00 +01:00
2019-06-05 17:36:37 +02:00
2021-12-14 10:57:06 +01:00
2023-08-26 14:23:23 +02:00
2019-05-30 11:26:32 -07:00
2020-10-23 16:16:31 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2022-10-26 12:35:48 +02:00
2022-11-10 18:15:34 +01:00
2021-12-14 10:57:06 +01:00
2021-05-05 14:21:08 +02:00
2022-12-31 13:14:11 +01:00
2021-05-05 14:36:18 +02:00
2019-05-30 11:26:35 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2022-09-05 10:30:06 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2022-09-05 10:30:08 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:19 -07:00
2021-12-14 10:57:05 +01:00
2022-12-21 17:36:38 +01:00
2022-01-27 11:03:55 +01:00
2021-04-07 18:46:20 +02:00
2020-07-20 12:24:41 +02:00
2022-03-16 14:23:35 +01:00
2019-05-30 11:26:32 -07:00
2021-01-07 10:14:58 +01:00
2019-05-30 11:26:32 -07:00
2020-06-19 14:17:22 +02:00
2020-06-19 14:17:22 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2022-09-05 10:30:07 +02:00
2021-12-14 10:57:05 +01:00
2021-08-20 14:53:54 +02:00
2023-03-22 13:31:37 +01:00
2023-09-06 21:28:38 +01:00
2023-09-06 21:28:38 +01:00
2023-09-06 21:28:38 +01:00
2023-09-06 21:28:38 +01:00