Skip to content

Commit 5e95a29

Browse files
committed
Handle tablets with UC-Logic vendor ID
Add handling of Huion tablets with UC-Logic vendor ID, but the same product ID. A Huion H580 is seen using it (see issue #4).
1 parent 07a7114 commit 5e95a29

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

hid-huion.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
/* #include "hid-ids.h" */
2626
#define USB_VENDOR_ID_HUION 0x256c
27+
#define USB_VENDOR_ID_UCLOGIC 0x5543
2728
#define USB_DEVICE_ID_HUION_TABLET 0x006e
2829

2930
/* Report descriptor template placeholder head */
@@ -251,6 +252,7 @@ static int huion_raw_event(struct hid_device *hdev, struct hid_report *report,
251252

252253
static const struct hid_device_id huion_devices[] = {
253254
{ HID_USB_DEVICE(USB_VENDOR_ID_HUION, USB_DEVICE_ID_HUION_TABLET) },
255+
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_HUION_TABLET) },
254256
{ }
255257
};
256258
MODULE_DEVICE_TABLE(hid, huion_devices);

hid-rebind.rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
SUBSYSTEM=="hid", ACTION=="add", ENV{HID_ID}=="0003:0000256C:0000006E", \
22
RUN+="/sbin/hid-rebind"
3+
SUBSYSTEM=="hid", ACTION=="add", ENV{HID_ID}=="0003:00005543:0000006E", \
4+
RUN+="/sbin/hid-rebind"

0 commit comments

Comments
 (0)