Skip to content
Commit c6838eee authored by dmitry.torokhov@gmail.com's avatar dmitry.torokhov@gmail.com Committed by Jiri Kosina
Browse files

HID: hid-input: occasionally report stylus battery even if not changed



There are styluses that only report their battery status when they are
touching the touchscreen; additionally we currently suppress battery
reports if capacity has not changed. To help userspace recognize how long
ago the device reported battery status, let's send the change event through
if either capacity has changed, or at least 30 seconds have passed since
last report we've let through.

Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent bf36c6b9
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