Skip to content

Commit f3193ea

Browse files
kkurbjunJiri Kosina
authored andcommitted
HID: Ignore battery for Elan touchscreen on HP Envy X360 15t-dr100
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>
1 parent 26b88fb commit f3193ea

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@
400400
#define USB_DEVICE_ID_HP_X2 0x074d
401401
#define USB_DEVICE_ID_HP_X2_10_COVER 0x0755
402402
#define I2C_DEVICE_ID_HP_ENVY_X360_15 0x2d05
403+
#define I2C_DEVICE_ID_HP_ENVY_X360_15T_DR100 0x29CF
403404
#define I2C_DEVICE_ID_HP_SPECTRE_X360_15 0x2817
404405
#define USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN 0x2544
405406
#define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN 0x2706

drivers/hid/hid-input.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
330330
HID_BATTERY_QUIRK_IGNORE },
331331
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_ENVY_X360_15),
332332
HID_BATTERY_QUIRK_IGNORE },
333+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_ENVY_X360_15T_DR100),
334+
HID_BATTERY_QUIRK_IGNORE },
333335
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_15),
334336
HID_BATTERY_QUIRK_IGNORE },
335337
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN),

0 commit comments

Comments
 (0)