Skip to content

Commit a7234cf

Browse files
committed
Add Signotec VID:PID pair for ViewSonic PD1011
1 parent 19e9fe3 commit a7234cf

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

90-hid-rebind.rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ SUBSYSTEM=="hid", ACTION=="add", ENV{HID_ID}=="0003:000028BD:*", \
1212
RUN+="/sbin/hid-rebind"
1313
SUBSYSTEM=="hid", ACTION=="add", ENV{HID_ID}=="0003:00000543:0000E621", \
1414
RUN+="/sbin/hid-rebind"
15+
SUBSYSTEM=="hid", ACTION=="add", ENV{HID_ID}=="0003:00002133:00000018", \
16+
RUN+="/sbin/hid-rebind"

hid-ids.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,8 @@
5555
#define USB_VENDOR_ID_VIEWSONIC 0x0543
5656
#define USB_DEVICE_ID_VIEWSONIC_PD1011 0xe621
5757

58+
/* Signotec GmbH */
59+
#define USB_VENDOR_ID_SIGNOTEC 0x2133
60+
#define USB_DEVICE_ID_SIGNOTEC_VIEWSONIC_PD1011 0x0018
61+
5862
#endif

hid-viewsonic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ static __u8 *viewsonic_report_fixup(struct hid_device *hdev, __u8 *rdesc,
7474
{
7575
switch (hdev->product) {
7676
case USB_DEVICE_ID_VIEWSONIC_PD1011:
77+
case USB_DEVICE_ID_SIGNOTEC_VIEWSONIC_PD1011:
7778
if (*rsize == PD1011_RDESC_ORIG_SIZE) {
7879
rdesc = pd1011_rdesc_fixed;
7980
*rsize = sizeof(pd1011_rdesc_fixed);
@@ -109,6 +110,8 @@ static int viewsonic_probe(struct hid_device *hdev,
109110
static const struct hid_device_id viewsonic_devices[] = {
110111
{ HID_USB_DEVICE(USB_VENDOR_ID_VIEWSONIC,
111112
USB_DEVICE_ID_VIEWSONIC_PD1011) },
113+
{ HID_USB_DEVICE(USB_VENDOR_ID_SIGNOTEC,
114+
USB_DEVICE_ID_SIGNOTEC_VIEWSONIC_PD1011) },
112115
{ }
113116
};
114117
MODULE_DEVICE_TABLE(hid, viewsonic_devices);

0 commit comments

Comments
 (0)