Skip to content
Commit fd2a9b29 authored by Tatsunosuke Tobita's avatar Tatsunosuke Tobita Committed by Benjamin Tissoires
Browse files

HID: wacom: Remove AES power_supply after extended inactivity



Even if a user does not use their AES pen for an extended period,
the battery power supply attributes continue to exist.
This results in the desktop showing battery status for a pen
that is no longer in use and which may in fact be in a different
state (e.g. the user may be charging the pen).
To avoid confusion and ensure userspace has an accurate view
of the battery state, this patch automatically removes
the power_supply after 30 minutes of inactivity.

Signed-off-by: default avatarTatsunosuke Tobita <tatsunosuke.tobita@wacom.com>
Reviewed-by: default avatarJason Gerecke <Jason.Gerecke@wacom.com>
Reviewed-by: default avatarAaron Skomra <aaron.skomra@wacom.com>
Reviewed-by: default avatarJosh Dickens <joshua.dickens@wacom.com>
Link: https://lore.kernel.org/r/20231114235729.6867-1-tatsunosuke.wacom@gmail.com


Signed-off-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
parent 1f342790
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment