linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] HID: Ignore battery for Elan touchscreen on Asus TP420IA
@ 2023-01-10 14:54 marco.rodolfi
  2023-01-25 14:41 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: marco.rodolfi @ 2023-01-10 14:54 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires, Linux Input, Linux Kernel; +Cc: Marco Rodolfi


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. 
 
Signed-off-by: Marco Rodolfi <marco.rodolfi@tuta.io> 
--- 
 drivers/hid/hid-ids.h   | 1 + 
 drivers/hid/hid-input.c | 2 ++ 
 2 files changed, 3 insertions(+) 
 
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h 
index 8f58c3c1bec3..0f525b946cd1 100644 
--- a/drivers/hid/hid-ids.h 
+++ b/drivers/hid/hid-ids.h 
@@ -413,6 +413,7 @@ 
 #define I2C_DEVICE_ID_HP_ENVY_X360_15  0x2d05 
 #define I2C_DEVICE_ID_HP_ENVY_X360_15T_DR100   0x29CF 
 #define I2C_DEVICE_ID_HP_SPECTRE_X360_15       0x2817 
+#define I2C_DEVICE_ID_ASUS_TP420IA_TOUCHSCREEN 0x2BC8 
 #define USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN 0x2544 
 #define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN   0x2706 
 #define I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN   0x261A 
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c 
index 859aeb07542e..54e2d4066d9b 100644 
--- a/drivers/hid/hid-input.c 
+++ b/drivers/hid/hid-input.c 
@@ -369,6 +369,8 @@ static const struct hid_device_id hid_battery_quirks[] = { 
        { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 
                USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD), 
          HID_BATTERY_QUIRK_IGNORE }, 
+       { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_ASUS_TP420IA_TOUCHSCREEN)
, 
+         HID_BATTERY_QUIRK_IGNORE }, 
        { HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN), 
          HID_BATTERY_QUIRK_IGNORE }, 
        { HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN)
, 
--  
2.39.0 

 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] HID: Ignore battery for Elan touchscreen on Asus TP420IA
  2023-01-10 14:54 [PATCH] HID: Ignore battery for Elan touchscreen on Asus TP420IA marco.rodolfi
@ 2023-01-25 14:41 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2023-01-25 14:41 UTC (permalink / raw)
  To: Marco Rodolfi; +Cc: Benjamin Tissoires, Linux Input, Linux Kernel

On Tue, 10 Jan 2023, marco.rodolfi@tuta.io wrote:

> 
> 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. 
>  
> Signed-off-by: Marco Rodolfi <marco.rodolfi@tuta.io> 

Hi Marco,

your patch has been malformed by your mail client. I have fixed it up and 
applied, but please make sure you fix that for your further submissions.

Thanks,

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-25 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10 14:54 [PATCH] HID: Ignore battery for Elan touchscreen on Asus TP420IA marco.rodolfi
2023-01-25 14:41 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).