Skip to content

Commit 50c6b97

Browse files
Philippe TroinJiri Kosina
authored andcommitted
HID: add HP 13t-aw100 & 14t-ea100 digitizer battery quirks
Similar to many other devices using the Synopsys Designware Elantech hardware, HP Spectre x360 13t-aw100 and 14t-ea100 report an empty battery devices, supposedly for the active stylus. Apply the HID_BATTERY_QUIRK_IGNORE quirk to ignore the battery reports from these devices. Note that there are multiple versions of the panel installed in the 14t-ea100. Signed-off-by: Philippe Troin <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 8ae2f2b commit 50c6b97

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@
420420
#define I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN 0x261A
421421
#define I2C_DEVICE_ID_SURFACE_GO2_TOUCHSCREEN 0x2A1C
422422
#define I2C_DEVICE_ID_LENOVO_YOGA_C630_TOUCHSCREEN 0x279F
423+
#define I2C_DEVICE_ID_HP_SPECTRE_X360_13T_AW100 0x29F5
424+
#define I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V1 0x2BED
425+
#define I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V2 0x2BEE
423426

424427
#define USB_VENDOR_ID_ELECOM 0x056e
425428
#define USB_DEVICE_ID_ELECOM_BM084 0x0061

drivers/hid/hid-input.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@ static const struct hid_device_id hid_battery_quirks[] = {
398398
HID_BATTERY_QUIRK_IGNORE },
399399
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_LENOVO_YOGA_C630_TOUCHSCREEN),
400400
HID_BATTERY_QUIRK_IGNORE },
401+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_13T_AW100),
402+
HID_BATTERY_QUIRK_IGNORE },
403+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V1),
404+
HID_BATTERY_QUIRK_IGNORE },
405+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V2),
406+
HID_BATTERY_QUIRK_IGNORE },
401407
{}
402408
};
403409

0 commit comments

Comments
 (0)