Skip to content

Commit

Permalink
uclogic: Add support for XP-Pen G540
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkis authored and spbnick committed Dec 28, 2016
1 parent 63a62d8 commit 3335f96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 90-hid-rebind.rules
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ SUBSYSTEM=="hid", ACTION=="add", ENV{HID_ID}=="0003:00000458:*", \
RUN+="/sbin/hid-rebind"
SUBSYSTEM=="hid", ACTION=="add", ENV{HID_ID}=="0003:00002179:00000053", \
RUN+="/sbin/hid-rebind"
SUBSYSTEM=="hid", ACTION=="add", ENV{HID_ID}=="0003:000028BD:00000075", \
RUN+="/sbin/hid-rebind"
4 changes: 4 additions & 0 deletions hid-ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@
#define USB_VENDOR_ID_UGTIZER 0x2179
#define USB_DEVICE_ID_UGTIZER_TABLET_GP0610 0x0053

/* XP-Pen Technology CO. */
#define USB_VENDOR_ID_XPPEN 0x28bd
#define USB_DEVICE_ID_XPPEN_TABLET_G540 0x0075

#endif
2 changes: 2 additions & 0 deletions hid-uclogic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ static int uclogic_probe(struct hid_device *hdev,
}
break;
case USB_DEVICE_ID_UGTIZER_TABLET_GP0610:
case USB_DEVICE_ID_XPPEN_TABLET_G540:
/* If this is the pen interface */
if (intf->cur_altsetting->desc.bInterfaceNumber == 1) {
rc = uclogic_probe_tablet(hdev);
Expand Down Expand Up @@ -1178,6 +1179,7 @@ static const struct hid_device_id uclogic_devices[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UGEE_TABLET_45) },
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_DRAWIMAGE_G3) },
{ HID_USB_DEVICE(USB_VENDOR_ID_UGTIZER, USB_DEVICE_ID_UGTIZER_TABLET_GP0610) },
{ HID_USB_DEVICE(USB_VENDOR_ID_XPPEN, USB_DEVICE_ID_XPPEN_TABLET_G540) },
{ }
};
MODULE_DEVICE_TABLE(hid, uclogic_devices);
Expand Down

0 comments on commit 3335f96

Please sign in to comment.