HID: Ignore battery for Elan touchscreen on HP Envy X360 15t-dr100
authorKarl Kurbjun <kkurbjun@gmail.com>
Mon, 10 Jan 2022 03:49:35 +0000 (20:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:02:46 +0000 (11:02 +0100)
commit47b5c189d6a481d22dea24ab99eee439245ebf2e
tree12959e61fd1bf63ba07e24158f566667e10272cd
parent91b7cbea9efc99328752f414e61cfd0d77e99b79
HID: Ignore battery for Elan touchscreen on HP Envy X360 15t-dr100

commit f3193ea1b6779023334faa72b214ece457e02656 upstream.

Battery status on Elan tablet driver is reported for the HP ENVY x360
15t-dr100. There is no separate battery for the Elan controller resulting in a
battery level report of 0% or 1% depending on whether a stylus has interacted
with the screen. These low battery level reports causes a variety of bad
behavior in desktop environments. This patch adds the appropriate quirk to
indicate that the batery status is unused for this target.

Cc: stable@vger.kernel.org
Signed-off-by: Karl Kurbjun <kkurbjun@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c