Skip to content

Commit 7940fb0

Browse files
jwrdegoedebentiss
authored andcommitted
HID: Add Logitech Dinovo Edge battery quirk
The battery status is also being reported by the logitech-hidpp driver, so ignore the standard HID battery status to avoid reporting the same info twice. Note the logitech-hidpp battery driver provides more info, such as properly differentiating between charging and discharging. Also the standard HID battery info seems to be wrong, reporting a capacity of just 26% after fully charging the device. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent c27168a commit 7940fb0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@
750750
#define USB_VENDOR_ID_LOGITECH 0x046d
751751
#define USB_DEVICE_ID_LOGITECH_AUDIOHUB 0x0a0e
752752
#define USB_DEVICE_ID_LOGITECH_T651 0xb00c
753+
#define USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD 0xb309
753754
#define USB_DEVICE_ID_LOGITECH_C007 0xc007
754755
#define USB_DEVICE_ID_LOGITECH_C077 0xc077
755756
#define USB_DEVICE_ID_LOGITECH_RECEIVER 0xc101

drivers/hid/hid-input.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ static const struct hid_device_id hid_battery_quirks[] = {
319319
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ASUSTEK,
320320
USB_DEVICE_ID_ASUSTEK_T100CHI_KEYBOARD),
321321
HID_BATTERY_QUIRK_IGNORE },
322+
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH,
323+
USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD),
324+
HID_BATTERY_QUIRK_IGNORE },
322325
{}
323326
};
324327

0 commit comments

Comments
 (0)