Re: [PATCH] Ignore faulty battery on specific touchscreen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry for screwing up the thread first and foremost.

Can anyone comment on this patch or at least give a reason for not applying it?

This fixes an annoying low battery popup on a device that seemingly has a faulty battery reporting. I've tested 2 styluses and both do the same (reports 1% battery
at all times.) Thanks.


diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 5146ee029db4..ee4bbc8bf672 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -374,6 +374,7 @@
 #define USB_DEVICE_ID_TOSHIBA_CLICK_L9W    0x0401
 #define USB_DEVICE_ID_HP_X2        0x074d
 #define USB_DEVICE_ID_HP_X2_10_COVER    0x0755
+#define USB_DEVICE_ID_DELL_5379        0x2361

 #define USB_VENDOR_ID_ELECOM        0x056e
 #define USB_DEVICE_ID_ELECOM_BM084    0x0061
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index a481eaf39e88..b3236850210f 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -325,6 +325,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
     { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM,
         USB_DEVICE_ID_ELECOM_BM084),
       HID_BATTERY_QUIRK_IGNORE },
+    { HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_DELL_5379),
+      HID_BATTERY_QUIRK_IGNORE },
     {}
 };




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux