Skip to content

Commit f69d12e

Browse files
committed
HID: uclogic: Add support for XP-PEN Deco Pro SW
The XP-PEN Deco Pro SW is a UGEE v2 device with a frame with 8 buttons, a bitmap dial and a mouse; however, the UCLOGIC_MOUSE_FRAME_QUIRK is required because it reports an incorrect frame type. Its pen has 2 buttons, supports tilt and pressure. It can be connected using a USB cable or, to use it in wireless mode, using a USB Bluetooth dongle. When it is connected in wireless mode the device battery is used to power it. All the pieces to support it are already in place. Add its ID and quirks in order to support the device. Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent dbaaf50 commit f69d12e

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
#define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO01_V2 0x0905
6262
#define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_L 0x0935
6363
#define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_S 0x0909
64+
#define USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_SW 0x0933
6465
#define USB_DEVICE_ID_UGEE_XPPEN_TABLET_STAR06 0x0078
6566
#define USB_DEVICE_ID_UGEE_TABLET_G5 0x0074
6667
#define USB_DEVICE_ID_UGEE_TABLET_EX07S 0x0071

hid-uclogic-core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,9 @@ static const struct hid_device_id uclogic_devices[] = {
555555
USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_L) },
556556
{ HID_USB_DEVICE(USB_VENDOR_ID_UGEE,
557557
USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_S) },
558+
{ HID_USB_DEVICE(USB_VENDOR_ID_UGEE,
559+
USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_SW),
560+
.driver_data = UCLOGIC_MOUSE_FRAME_QUIRK | UCLOGIC_BATTERY_QUIRK },
558561
{ HID_USB_DEVICE(USB_VENDOR_ID_UGEE,
559562
USB_DEVICE_ID_UGEE_XPPEN_TABLET_STAR06) },
560563
{ }

hid-uclogic-params.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,8 @@ int uclogic_params_init(struct uclogic_params *params,
17731773
USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_L):
17741774
case VID_PID(USB_VENDOR_ID_UGEE,
17751775
USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_S):
1776+
case VID_PID(USB_VENDOR_ID_UGEE,
1777+
USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_PRO_SW):
17761778
rc = uclogic_params_ugee_v2_init(&p, hdev);
17771779
if (rc != 0)
17781780
goto cleanup;

0 commit comments

Comments
 (0)