Skip to content

Commit b553972

Browse files
zoltantamasvajdaJiri Kosina
authored andcommitted
HID: hid-input: add Surface Go battery quirk
The Elantech touchscreen/digitizer in the Surface Go mistakenly reports having a battery. This results in a low battery message every time you try to use the pen. This patch adds a quirk to ignore the non-existent battery and gets rid of the false low battery messages. Signed-off-by: Zoltan Tamas Vajda <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent f8e5388 commit b553972

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
@@ -396,6 +396,7 @@
396396
#define USB_DEVICE_ID_HP_X2_10_COVER 0x0755
397397
#define I2C_DEVICE_ID_HP_SPECTRE_X360_15 0x2817
398398
#define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN 0x2706
399+
#define I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN 0x261A
399400

400401
#define USB_VENDOR_ID_ELECOM 0x056e
401402
#define USB_DEVICE_ID_ELECOM_BM084 0x0061

drivers/hid/hid-input.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
326326
HID_BATTERY_QUIRK_IGNORE },
327327
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_15),
328328
HID_BATTERY_QUIRK_IGNORE },
329+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN),
330+
HID_BATTERY_QUIRK_IGNORE },
329331
{}
330332
};
331333

0 commit comments

Comments
 (0)