DIGImend / uclogic-tools

UC-Logic graphics tablet diagnostic tools
GNU General Public License v2.0
40 stars 11 forks source link

uclogic-probe breaks XP-pen G430S_B until replug at 0xC8 request #10

Open Sturwandan opened 4 years ago

Sturwandan commented 4 years ago

This issue is mentioned in https://github.com/DIGImend/digimend-kernel-drivers/issues/388

# ./uclogic-probe 6 41
M 55 00 47 00 54 00 41 00 42 00 4C 00 45 00 54 00
P 34 00 20 00 69 00 6E 00 63 00 68 00 20 00 50 00 65 00 6E 00 54 00 61 00 62 00 6C 00 65 00 74 00
S 64 0E 03 B0 27 C4 1D 06 00 FF 1F EC 09 00 00
S 65 04 03 00 67
S 6E 0B 03 00 30 00 03 08 01 00 00 00
S 79 10 03 20 20 20 20 20 20 20 20 20 20 20 20 20 20
S 7A 08 03 00 00 00 00 00 00
S 7B 0C 03 48 00 4B 00 20 00 4F 00 6E 00
Failed to get string descriptor 0xC8: Input/Output Error

Once uclogic-probe tries to get 0xC8 descriptor from XP-PEN G430S_B, it makes the device change USB id to 28bd:1227 and stop working. The device LED is lit up constantly after that and it doesn't send anything even when the pen is approaching.

lasersPew commented 4 weeks ago

To note: This also happens to XP-Pen CT640 but blinks when sudo uclogic-probe 3 13 | uclogic-decode is executed. Same error as above.

sudo uclogic-probe 3 13 | uclogic-decode output:

    |           Manufacturer: UGTABLET
    |                Product: 6 inch PenTablet
 64 |        Params block #1: ??????
    |                          Max X: 31998
    |                          Max Y: 19994
    |                   Max pressure: 8191
    |                     Resolution: 5080
    |
 79 |         Internal model: ???????
Failed to get string descriptor 0xC8: Input/Output Error
 7b |         Buttons status: HK On

sudo usbhid-dump -m 28bd:0931 -e stream output:

Starting dumping interrupt transfer stream
with 1 minute timeout.

003:013:000:Device was disconnected
003:013:001:Device was disconnected
003:013:002:Device was disconnected
No more interfaces to dump
003:013:002:Failed to release: No such device (it may have been disconnected)
003:013:002:Failed to attach to the kernel driver: No such device (it may have been disconnected)
003:013:001:Failed to release: No such device (it may have been disconnected)
003:013:001:Failed to attach to the kernel driver: No such device (it may have been disconnected)
003:013:000:Failed to release: No such device (it may have been disconnected)
003:013:000:Failed to attach to the kernel driver: No such device (it may have been disconnected)

lsusb output:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 1919:1919 USB Receiver USB Receiver
Bus 003 Device 003: ID 04f2:b725 Chicony Electronics Co., Ltd Integrated Camera
Bus 003 Device 005: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 003 Device 015: ID 28bd:0931 XP-Pen 6 inch PenTablet
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub