Setting HUION H610 Pro Pen Tablet in leap 15

I have been using this tablet in 42.3 (I write a script here to select mode).
But after installing Leap 15, the script does not work.


fernando@andromeda:~> tablet-props.sh right
unable to find device HUION PenTablet Pen stylus

The error comes from there:


fernando@andromeda:~> xinput set-prop "HUION PenTablet Pen stylus" --type=float "Coordinate Transformation Matrix"  1 0 0 0 1 0 0 0 1 
unable to find device HUION PenTablet Pen stylus
fernando@andromeda:~> 

I have gone to https://software.opensuse.org/package/kcm_tablet and installed the packet


andromeda:/mnt/etc # rpm -qa |grep wacom
libwacom2-0.23-lp150.1.9.x86_64
xf86-input-wacom-0.34.2-lp150.1.10.x86_64
libwacom-data-0.23-lp150.1.9.x86_64
andromeda:/mnt/etc #

But the error continues. I have tested and I can use the tables as a mouse with the pen, but in kde-system settings-input devices-graphic tablets there is no device detected and I can get it detecting my tablet.
So I have search /var/log/messages and


019-02-11T00:06:24.440545+01:00 andromeda kernel: [46006.234603] usb 8-2.1: new full-speed USB device number 9 using xhci_hcd
2019-02-11T00:06:24.559675+01:00 andromeda kernel: [46006.351401] usb 8-2.1: New USB device found, idVendor=256c, idProduct=006e
2019-02-11T00:06:24.559696+01:00 andromeda kernel: [46006.351409] usb 8-2.1: New USB device strings: Mfr=5, Product=6, SerialNumber=0
2019-02-11T00:06:24.559698+01:00 andromeda kernel: [46006.351413] usb 8-2.1: Product: PenTablet
2019-02-11T00:06:24.559698+01:00 andromeda kernel: [46006.351417] usb 8-2.1: Manufacturer: HUION
2019-02-11T00:06:24.567681+01:00 andromeda kernel: [46006.360773] input: HUION PenTablet Pen as /devices/pci0000:00/0000:00:07.0/0000:02:00.0/usb8/8-2/8-2.1/8-2.1:1.0/0003:256C:006E.0017/input/input64
2019-02-11T00:06:24.567702+01:00 andromeda kernel: [46006.360995] input: HUION PenTablet Pad as /devices/pci0000:00/0000:00:07.0/0000:02:00.0/usb8/8-2/8-2.1/8-2.1:1.0/0003:256C:006E.0017/input/input65
2019-02-11T00:06:24.567703+01:00 andromeda kernel: [46006.361071] uclogic 0003:256C:006E.0017: input,hidraw4: USB HID v1.11 Keypad [HUION PenTablet] on usb-0000:02:00.0-2.1/input0
2019-02-11T00:06:24.571681+01:00 andromeda kernel: [46006.363528] input: HUION PenTablet Mouse as /devices/pci0000:00/0000:00:07.0/0000:02:00.0/usb8/8-2/8-2.1/8-2.1:1.1/0003:256C:006E.0018/input/input66
2019-02-11T00:06:24.571700+01:00 andromeda kernel: [46006.363714] uclogic 0003:256C:006E.0018: input,hiddev97,hidraw5: USB HID v1.11 Mouse [HUION PenTablet] on usb-0000:02:00.0-2.1/input1
2019-02-11T00:06:24.571701+01:00 andromeda kernel: [46006.365585] input: HUION PenTablet Keyboard as /devices/pci0000:00/0000:00:07.0/0000:02:00.0/usb8/8-2/8-2.1/8-2.1:1.2/0003:256C:006E.0019/input/input68
2019-02-11T00:06:24.631730+01:00 andromeda kernel: [46006.423013] input: HUION PenTablet Consumer Control as /devices/pci0000:00/0000:00:07.0/0000:02:00.0/usb8/8-2/8-2.1/8-2.1:1.2/0003:256C:006E.0019/input/input69
2019-02-11T00:06:24.631766+01:00 andromeda kernel: [46006.423331] input: HUION PenTablet System Control as /devices/pci0000:00/0000:00:07.0/0000:02:00.0/usb8/8-2/8-2.1/8-2.1:1.2/0003:256C:006E.0019/input/input70
2019-02-11T00:06:24.631772+01:00 andromeda kernel: [46006.423594] uclogic 0003:256C:006E.0019: input,hidraw6: USB HID v1.11 Keyboard [HUION PenTablet] on usb-0000:02:00.0-2.1/input2
2019-02-11T00:06:24.650374+01:00 andromeda mtp-probe: checking bus 8, device 9: "/sys/devices/pci0000:00/0000:00:07.0/0000:02:00.0/usb8/8-2/8-2.1"
2019-02-11T00:06:24.651376+01:00 andromeda mtp-probe: bus: 8, device: 9 was not an MTP device
2019-02-11T00:06:24.670273+01:00 andromeda baloo_file[2521]: QObject::connect: invalid null parameter
2019-02-11T00:06:24.671367+01:00 andromeda kdeinit5[2475]: QObject::connect: invalid null parameter
2019-02-11T00:06:24.687312+01:00 andromeda kdeinit5[2475]: message repeated 3 times:  QObject::connect: invalid null parameter]
2019-02-11T00:06:24.688123+01:00 andromeda baloo_file[2521]: QObject::connect: invalid null parameter
2019-02-11T00:06:24.689562+01:00 andromeda baloo_file[2521]: message repeated 2 times:  QObject::connect: invalid null parameter]
2019-02-11T00:06:24.725572+01:00 andromeda systemd-logind[1294]: Watching system buttons on /dev/input/event23 (HUION PenTablet Consumer Control)
2019-02-11T00:06:24.735120+01:00 andromeda baloo_file[2521]: QObject::connect: invalid null parameter
2019-02-11T00:06:24.738288+01:00 andromeda kdeinit5[2475]: QObject::connect: invalid null parameter
2019-02-11T00:06:24.738534+01:00 andromeda systemd-logind[1294]: Watching system buttons on /dev/input/event22 (HUION PenTablet Keyboard)
2019-02-11T00:06:24.738674+01:00 andromeda systemd-logind[1294]: Watching system buttons on /dev/input/event24 (HUION PenTablet System Control)
2019-02-11T00:06:24.738965+01:00 andromeda kdeinit5[2475]: QObject::connect: invalid null parameter
2019-02-11T00:06:24.739698+01:00 andromeda baloo_file[2521]: QObject::connect: invalid null parameter
2019-02-11T00:06:24.743818+01:00 andromeda kdeinit5[2475]: kde_wacom: "X11 device with id '13' added."
2019-02-11T00:06:24.825499+01:00 andromeda kdeinit5[2475]: kde_wacom: "X11 device with id '14' added."
2019-02-11T00:06:24.830356+01:00 andromeda baloo_file[2521]: QObject::connect: invalid null parameter
2019-02-11T00:06:24.847438+01:00 andromeda baloo_file[2521]: message repeated 2 times:  QObject::connect: invalid null parameter]
2019-02-11T00:06:25.211977+01:00 andromeda kdeinit5[2475]: kde_wacom: "X11 device with id '15' added."
2019-02-11T00:06:25.259910+01:00 andromeda kdeinit5[2475]: kde_wacom: "X11 device with id '16' added."
2019-02-11T00:06:25.261059+01:00 andromeda kdeinit5[2475]: QObject::connect: invalid null parameter
2019-02-11T00:06:25.263742+01:00 andromeda kdeinit5[2475]: message repeated 2 times:  QObject::connect: invalid null parameter]
2019-02-11T00:06:25.505024+01:00 andromeda kcminit[19396]: Initializing  "kcm_input" :  "kcminit_mouse"
2019-02-11T00:06:25.505784+01:00 andromeda kcminit[19396]: kcm_input: Using X11 backend
2019-02-11T00:06:25.512709+01:00 andromeda kcminit[19391]: Initializing  "kcm_input" :  "kcminit_mouse"
2019-02-11T00:06:25.513421+01:00 andromeda kcminit[19391]: kcm_input: Using X11 backend
2019-02-11T00:06:25.576099+01:00 andromeda kwin_x11[2517]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 42742, resource id: 119537668, major code: 18 (ChangeProperty), minor code: 0
2019-02-11T00:06:25.634862+01:00 andromeda kwin_x11[2517]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 42957, resource id: 115343364, major code: 18 (ChangeProperty), minor code: 0


It does not appear as “HUION PenTablet Pen stylus” so I try with “HUION PenTablet Pen”


fernando@andromeda:~> xinput set-prop "HUION PenTablet Pen" --type=float "Coordinate Transformation Matrix"  1 0 0 0 1 0 0 0 1 
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Serial number of failed request:  19
  Current serial number in output stream:  20
fernando@andromeda:~> 

What is wrong with this?

regards

Working on it


fernando@andromeda:~/bin> xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ MOSART Semi. 2.4G Keyboard Mouse          id=11   [slave  pointer  (2)]
⎜   ↳ HUION PenTablet Consumer Control          id=13   [slave  pointer  (2)]
⎜   ↳ HUION PenTablet Pad                       id=15   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳   USB Keyboard                            id=8    [slave  keyboard (3)]
    ↳   USB Keyboard                            id=9    [slave  keyboard (3)]
    ↳ MOSART Semi. 2.4G Keyboard Mouse          id=10   [slave  keyboard (3)]
    ↳ MOSART Semi. 2.4G Keyboard Mouse          id=12   [slave  keyboard (3)]
    ↳ HUION PenTablet Consumer Control          id=14   [slave  keyboard (3)]
    ↳ HUION PenTablet Pen                       id=16   [slave  keyboard (3)]
fernando@andromeda:~/bin>

The relevant device should be the number 16


fernando@andromeda:~/bin> xinput list-props "HUION PenTablet Pen"
Device 'HUION PenTablet Pen':
        Device Enabled (143):   1
        Coordinate Transformation Matrix (145): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Node (267):      "/dev/input/event19"
        Device Product ID (268):        9580, 110

Well, there is a property called “Coordinate Transformation Matrix” so


fernando@andromeda:~/bin> xinput set-prop "HUION PenTablet Pen" --type=float "Coordinate Transformation Matrix"  0.5 0 0.5 0 1 0 0 0 1
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Serial number of failed request:  19
  Current serial number in output stream:  20
fernando@andromeda:~/bin> 


Why can’t I change it?

It seems that it wasn’t device 16 the relevant one but…


fernando@andromeda:~/bin> xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ MOSART Semi. 2.4G Keyboard Mouse          id=11   [slave  pointer  (2)]
⎜   ↳ HUION PenTablet Consumer Control          id=13   [slave  pointer  (2)]
⎜   ↳ HUION PenTablet Pad                       id=16   [slave  pointer  (2)]
⎜   ↳ HUION PenTablet Pen Pen (0)               id=17   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳   USB Keyboard                            id=8    [slave  keyboard (3)]
    ↳   USB Keyboard                            id=9    [slave  keyboard (3)]
    ↳ MOSART Semi. 2.4G Keyboard Mouse          id=10   [slave  keyboard (3)]
    ↳ MOSART Semi. 2.4G Keyboard Mouse          id=12   [slave  keyboard (3)]
    ↳ HUION PenTablet Consumer Control          id=14   [slave  keyboard (3)]
    ↳ HUION PenTablet Pen                       id=15   [slave  keyboard (3)]


… device 17: HUION PenTablet Pen Pen (0) … but it wans’t there before and I don’t know why it has suddenly appeared, but


fernando@andromeda:~/bin>  xinput set-prop "HUION PenTablet Pen Pen (0)" --type=float "Coordinate  Transformation Matrix"  0.5 0 0.5 0 1 0 0 0 1
fernando@andromeda:~/bin>

worked

I have discovered why.
All other devices related to the tablet appears when I plug in the tablet, but device 17 does not appear until I click with the pen over the tablet