Skip to content

Commit 3a47fa7

Browse files
0x011011110Jiri Kosina
authored andcommitted
HID: add Lenovo Yoga C630 battery quirk
Similar to the Surface Go devices, the Elantech touchscreen/digitizer in the Lenovo Yoga C630 mistakenly reports the battery of the stylus, and always reports an empty battery. Apply the HID_BATTERY_QUIRK_IGNORE quirk to ignore this battery and prevent the erroneous low battery warnings. Signed-off-by: Steev Klimaszewski <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent adada3f commit 3a47fa7

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
@@ -414,6 +414,7 @@
414414
#define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN 0x2706
415415
#define I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN 0x261A
416416
#define I2C_DEVICE_ID_SURFACE_GO2_TOUCHSCREEN 0x2A1C
417+
#define I2C_DEVICE_ID_LENOVO_YOGA_C630_TOUCHSCREEN 0x279F
417418

418419
#define USB_VENDOR_ID_ELECOM 0x056e
419420
#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
@@ -383,6 +383,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
383383
HID_BATTERY_QUIRK_IGNORE },
384384
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO2_TOUCHSCREEN),
385385
HID_BATTERY_QUIRK_IGNORE },
386+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_LENOVO_YOGA_C630_TOUCHSCREEN),
387+
HID_BATTERY_QUIRK_IGNORE },
386388
{}
387389
};
388390

0 commit comments

Comments
 (0)