Skip to content

Commit cb963b2

Browse files
RodoMa92Jiri Kosina
authored andcommitted
HID: Ignore battery for Elan touchscreen on Asus TP420IA
This device has a touchscreen thats report a battery even if it doesn't have one. Ask Linux to ignore the battery so it will not always report it as low. [[email protected]: fix whitespace damage] Signed-off-by: Marco Rodolfi <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 29f316a commit cb963b2

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_ASUS_TP420IA_TOUCHSCREEN 0x2BC8
416417
#define USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN 0x2544
417418
#define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN 0x2706
418419
#define I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN 0x261A

drivers/hid/hid-input.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
370370
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH,
371371
USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD),
372372
HID_BATTERY_QUIRK_IGNORE },
373+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_ASUS_TP420IA_TOUCHSCREEN),
374+
HID_BATTERY_QUIRK_IGNORE },
373375
{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN),
374376
HID_BATTERY_QUIRK_IGNORE },
375377
{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN),

0 commit comments

Comments
 (0)