Skip to content

Commit cec827d

Browse files
JoseExpositoJiri Kosina
authored andcommitted
HID: Ignore HP Envy x360 eu0009nv stylus battery
Battery status is reported for the HP Envy x360 eu0009nv stylus even though it does not have battery. Prevent it from always reporting the battery as low (1%). Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/823 Reported-by: Ioannis Iliopoulos <[email protected]> Tested-by: Ioannis Iliopoulos <[email protected]> Signed-off-by: José Expósito <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 1db1f39 commit cec827d

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
@@ -412,6 +412,7 @@
412412
#define USB_DEVICE_ID_HP_X2_10_COVER 0x0755
413413
#define I2C_DEVICE_ID_HP_ENVY_X360_15 0x2d05
414414
#define I2C_DEVICE_ID_HP_ENVY_X360_15T_DR100 0x29CF
415+
#define I2C_DEVICE_ID_HP_ENVY_X360_EU0009NV 0x2CF9
415416
#define I2C_DEVICE_ID_HP_SPECTRE_X360_15 0x2817
416417
#define USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN 0x2544
417418
#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
@@ -380,6 +380,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
380380
HID_BATTERY_QUIRK_IGNORE },
381381
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_ENVY_X360_15T_DR100),
382382
HID_BATTERY_QUIRK_IGNORE },
383+
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_ENVY_X360_EU0009NV),
384+
HID_BATTERY_QUIRK_IGNORE },
383385
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_15),
384386
HID_BATTERY_QUIRK_IGNORE },
385387
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN),

0 commit comments

Comments
 (0)