jlam55555 / veikk-linux-driver

Linux driver for VEIKK-brand digitizers
139 stars 33 forks source link

VEIKK VK640 recognized as keyboard and emit tilt/pressure event, but not working as mouse #69

Closed apit closed 2 years ago

apit commented 3 years ago

pop!OS 21.04, 5.11.0-7620-generic

syslog output:

Aug 14 19:21:30 localhost kernel: [   53.588066] usb 1-3: new full-speed USB device number 12 using xhci_hcd
Aug 14 19:21:31 localhost kernel: [   53.737101] usb 1-3: New USB device found, idVendor=2feb, idProduct=0005, bcdDevice= 0.00
Aug 14 19:21:31 localhost kernel: [   53.737105] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 14 19:21:31 localhost kernel: [   53.737107] usb 1-3: Product: VK640
Aug 14 19:21:31 localhost kernel: [   53.737108] usb 1-3: Manufacturer: VEIKK.INC
Aug 14 19:21:31 localhost kernel: [   53.737109] usb 1-3: SerialNumber: 0000001
Aug 14 19:21:31 localhost kernel: [   53.739909] input: VEIKK.INC VK640 Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:2FEB:0005.0009/input/input35
Aug 14 19:21:31 localhost kernel: [   53.800404] input: VEIKK.INC VK640 Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:2FEB:0005.0009/input/input36
Aug 14 19:21:31 localhost kernel: [   53.800765] hid-generic 0003:2FEB:0005.0009: input,hidraw0: USB HID v1.00 Mouse [VEIKK.INC VK640] on usb-0000:00:14.0-3/input0
Aug 14 19:21:31 localhost kernel: [   53.802448] input: VEIKK.INC VK640 as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:2FEB:0005.000A/input/input37
Aug 14 19:21:31 localhost kernel: [   53.802897] hid-generic 0003:2FEB:0005.000A: input,hidraw1: USB HID v1.00 Device [VEIKK.INC VK640] on usb-0000:00:14.0-3/input1
Aug 14 19:21:31 localhost kernel: [   53.804415] hid-generic 0003:2FEB:0005.000B: hiddev0,hidraw2: USB HID v1.00 Device [VEIKK.INC VK640] on usb-0000:00:14.0-3/input2
Aug 14 19:21:31 localhost mtp-probe: checking bus 1, device 12: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3"
Aug 14 19:21:31 localhost mtp-probe: bus: 1, device: 12 was not an MTP device
Aug 14 19:21:31 localhost systemd-udevd[13276]: mouse0: Process '/usr/bin/touchpad-state --off' failed with exit code 1.
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) config/udev: Adding input device VEIKK.INC VK640 Mouse (/dev/input/mouse0)
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) No input driver specified, ignoring this device.
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) This device may have been added with another device file.
Aug 14 19:21:31 localhost systemd-udevd[13274]: mouse1: Process '/usr/bin/touchpad-state --off' failed with exit code 1.
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) config/udev: Adding input device VEIKK.INC VK640 (/dev/input/mouse1)
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) No input driver specified, ignoring this device.
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) This device may have been added with another device file.
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) config/udev: Adding input device VEIKK.INC VK640 Keyboard (/dev/input/event5)
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640 Keyboard: Applying InputClass "libinput keyboard catchall"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) Using input driver 'libinput' for 'VEIKK.INC VK640 Keyboard'
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 70 paused 0
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640 Keyboard: always reports core events
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "Device" "/dev/input/event5"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "_source" "server/udev"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event5  - VEIKK.INC VK640 Keyboard: is tagged by udev as: Keyboard
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event5  - VEIKK.INC VK640 Keyboard: device is a keyboard
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event5  - VEIKK.INC VK640 Keyboard: device removed
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:2FEB:0005.0009/input/input36/event5"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) XINPUT: Adding extended input device "VEIKK.INC VK640 Keyboard" (type: KEYBOARD, id 9)
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "xkb_model" "pc105"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "xkb_layout" "us"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (WW) Option "xkb_variant" requires a string value
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (WW) Option "xkb_options" requires a string value
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event5  - VEIKK.INC VK640 Keyboard: is tagged by udev as: Keyboard
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event5  - VEIKK.INC VK640 Keyboard: device is a keyboard
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) config/udev: Adding input device VEIKK.INC VK640 Mouse (/dev/input/event4)
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640 Mouse: Applying InputClass "libinput pointer catchall"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) Using input driver 'libinput' for 'VEIKK.INC VK640 Mouse'
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 73 paused 0
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640 Mouse: always reports core events
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "Device" "/dev/input/event4"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "_source" "server/udev"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event4  - VEIKK.INC VK640 Mouse: is tagged by udev as: Mouse
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event4  - VEIKK.INC VK640 Mouse: device is a pointer
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event4  - VEIKK.INC VK640 Mouse: device removed
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:2FEB:0005.0009/input/input35/event4"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) XINPUT: Adding extended input device "VEIKK.INC VK640 Mouse" (type: MOUSE, id 10)
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "AccelerationScheme" "none"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640 Mouse: (accel) selected scheme none/0
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640 Mouse: (accel) acceleration factor: 2.000
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640 Mouse: (accel) acceleration threshold: 4
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event4  - VEIKK.INC VK640 Mouse: is tagged by udev as: Mouse
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event4  - VEIKK.INC VK640 Mouse: device is a pointer
Aug 14 19:21:31 localhost gnome-shell[7927]: Window manager warning: Overwriting existing binding of keysym 71 with keysym 71 (keycode 18).
Aug 14 19:21:31 localhost gnome-shell[7927]: Window manager warning: Overwriting existing binding of keysym ff99 with keysym ffb2 (keycode 58).
Aug 14 19:21:31 localhost gnome-shell[7927]: Window manager warning: Overwriting existing binding of keysym ff97 with keysym ffb8 (keycode 50).
Aug 14 19:21:31 localhost gnome-shell[7927]: Window manager warning: Overwriting existing binding of keysym ff98 with keysym ffb6 (keycode 55).
Aug 14 19:21:31 localhost gnome-shell[7927]: Window manager warning: Overwriting existing binding of keysym ff96 with keysym ffb4 (keycode 53).
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) config/udev: Adding input device VEIKK.INC VK640 (/dev/input/event6)
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640: Applying InputClass "libinput tablet catchall"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) Using input driver 'libinput' for 'VEIKK.INC VK640'
Aug 14 19:21:31 localhost mtp-probe: checking bus 1, device 12: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3"
Aug 14 19:21:31 localhost mtp-probe: bus: 1, device: 12 was not an MTP device
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 77 paused 0
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) VEIKK.INC VK640: always reports core events
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "Device" "/dev/input/event6"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (**) Option "_source" "server/udev"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event6  - VEIKK.INC VK640: is tagged by udev as: Tablet
Aug 14 19:21:31 localhost touchegg[921]: libinput error: event6  - VEIKK.INC VK640: libinput bug: missing tablet capabilities: resolution. Ignoring this device.
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (EE) event6  - VEIKK.INC VK640: libinput bug: missing tablet capabilities: resolution. Ignoring this device.
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event6  - VEIKK.INC VK640: device is a tablet
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) event6  - failed to create input device '/dev/input/event6'.
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (EE) libinput: VEIKK.INC VK640: Failed to create a device for /dev/input/event6
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (EE) PreInit returned 2 for "VEIKK.INC VK640"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) UnloadModule: "libinput"
Aug 14 19:21:31 localhost /usr/libexec/gdm-x-session[5283]: (II) systemd-logind: releasing fd for 13:70

loaded dkms input-veikk/git seems no different than without it loaded?

evtest

/dev/input/event4:  VEIKK.INC VK640 Mouse -> NO event emitted
/dev/input/event5:  VEIKK.INC VK640 Keyboard -> event emitted
/dev/input/event6:  VEIKK.INC VK640 -> event emitted (pressure, etc)

is this problem with X/gdm?

apit commented 2 years ago

see https://github.com/jlam55555/veikk-linux-driver/issues/71