Skip to content

Commit ebebf05

Browse files
TheSmolBoibentiss
authored andcommitted
HID: Ignore battery for ELAN touchscreen 29DF on HP
The touchscreen reports a battery status of 0% and jumps to 1% when a stylus is used. The device ID was added and the battery ignore quirk was enabled for it. Signed-off-by: Luka Guzenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 7bcfdab commit ebebf05

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@
413413
#define I2C_DEVICE_ID_HP_ENVY_X360_15T_DR100 0x29CF
414414
#define I2C_DEVICE_ID_HP_ENVY_X360_EU0009NV 0x2CF9
415415
#define I2C_DEVICE_ID_HP_SPECTRE_X360_15 0x2817
416+
#define I2C_DEVICE_ID_HP_SPECTRE_X360_13_AW0020NG 0x29DF
416417
#define I2C_DEVICE_ID_ASUS_TP420IA_TOUCHSCREEN 0x2BC8
417418
#define USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN 0x2544
418419
#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
@@ -386,6 +386,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
386386
HID_BATTERY_QUIRK_IGNORE },
387387
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_15),
388388
HID_BATTERY_QUIRK_IGNORE },
389+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_13_AW0020NG),
390+
HID_BATTERY_QUIRK_IGNORE },
389391
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN),
390392
HID_BATTERY_QUIRK_IGNORE },
391393
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO2_TOUCHSCREEN),

0 commit comments

Comments
 (0)