HID: Ignore battery for all ELAN I2C-HID devices
authorHans de Goede <hdegoede@redhat.com>
Mon, 5 Aug 2024 14:51:47 +0000 (16:51 +0200)
committerJiri Kosina <jkosina@suse.com>
Tue, 6 Aug 2024 06:42:53 +0000 (08:42 +0200)
commitbcc31692a1d1e21f0d06c5f727c03ee299d2264e
tree1d45efdd8ee6de35d0b450daaf2494c6831a993b
parent6b5faec9f564ea627c66064a4a6a5904fe5a07dd
HID: Ignore battery for all ELAN I2C-HID devices

Before this change there were 16 vid:pid based quirks to ignore the battery
reported by Elan I2C-HID touchscreens on various Asus and HP laptops.

And a report has been received that the 04F3:2A00 I2C touchscreen on
the HP ProBook x360 11 G5 EE/86CF also reports a non present battery.

Since I2C-HID devices are always builtin to laptops they are not battery
owered so it should be safe to just ignore the battery on all Elan I2C-HID
devices, rather then adding a 17th quirk for the 04F3:2A00 touchscreen.

As reported in the changelog of commit a3a5a37efba1 ("HID: Ignore battery
for ELAN touchscreens 2F2C and 4116"), which added 2 new Elan touchscreen
quirks about a month ago, the HID reported battery seems to be related
to a stylus being used. But even when a stylus is in use it does not
properly report the charge of the stylus battery, instead the reported
battery charge jumps from 0% to 1%. So it is best to just ignore the
HID battery.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2302776
Cc: Louis Dalibard <ontake@ontake.dev>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c