Bug 243588 - FreeBSD 12.1-RELEASE : wacom tablet CHT-670 mouse pointer does not match pen
Summary: FreeBSD 12.1-RELEASE : wacom tablet CHT-670 mouse pointer does not match pen
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-25 14:09 UTC by x11max1@unitybox.de
Modified: 2022-12-17 17:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description x11max1@unitybox.de 2020-01-25 14:09:50 UTC
Some Issues with Wacom Tablet (CTH-670)

Problem:
The problem happend after upgrading from the latest R11.3 release to R12.1 release.

Let me say, my wacom tablet (Bamboo CTH-670) is working in generally except for some applications like VLC and Virtualbox.

What does it mean does not working for VLC and Virtualbox ?

Let me explain.

Starting VLC first the wacom pen is working, i can navigate through the menu (Toolbar, Sidebar, etc).

After loading a list of files (ex. a directory, a m3u file, multiple video or audio files) navigation using the pen is no more possible. It is not possible to select a file with the pen or navigate through the toolbar, etc.

It seems that the mouse pointer does not match the wacom position of the pen.

I have a video, but it it not allowed to attached it. The video points it out. After loading a list of files the mouse pointer is 9 rows above the pen position.

If I use a mouse instead of the wacom tablet, everything is fine.
The problem seems to be related to the wacom driver.

Environment:
# uname -a
FreeBSD freebsd 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  amd64

# uname -UK
1201000 1201000

# pwd
/usr/local/etc/X11/xorg.conf.d
# cat  51-wacom.conf

Section "InputDevice"
	Identifier	"wacom stylus"
	Driver		"wacom"
	Option		"Type"			"stylus"
	Option		"Device"		"/dev/input/event6"
	Option          "AutoServerLayout"	"true"
EndSection

Section "InputDevice"
	Identifier	"wacom eraser"
	Driver		"wacom"
	Option		"Type"			"eraser"
	Option		"Device"		"/dev/input/event6"
	Option          "AutoServerLayout"	"true"
EndSection

Section "InputDevice"
	Identifier	"wacom touch"
	Driver		"wacom"
	Option		"Type"			"touch"
	Option		"Device"		"/dev/input/event5"
	Option		"Touch"			"off"
	Option          "AutoServerLayout"	"true"
EndSection

Section "InputDevice"
	Identifier	"wacom pad"
	Driver		"wacom"
	Option		"Type"			"pad"
	Option		"Device"		"/dev/input/event7"
	Option          "AutoServerLayout"	"true"
EndSection

/boot/loader.conf
# wacom tablet
cuse4bsd_load="YES"
# FreeBSD >= 11.x, part of default kernel build
#cuse_load="YES"

/etc/rc.conf
# wacom
# enabling webcamd and wacom let the bamboo tablet disappear.
devd_enable="YES"
webcamd_enable="YES"
wacom_enable="YES"
# wacom : mouse auskommentiert
#moused_enable="YES"
#moused_enable="NO"
#moused_nondefault_enable="NO"

# usbconfig list
--> ugen2.4: <Wacom Co.,Ltd. CTH-670> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (498mA)

ugen0.1: <(0x12d8) OHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen1.1: <(0x12d8) OHCI root HUB> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen4.1: <0x8086 XHCI root HUB> at usbus4, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen2.1: <(0x12d8) EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen5.1: <0x1b21 XHCI root HUB> at usbus5, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen3.1: <0x8086 XHCI root HUB> at usbus3, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen4.2: <C-Media Electronics Inc. USB Audio Device> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA)
ugen2.2: <vendor 0x05ac product 0x9127> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen2.5: <Apple Inc. Display Audio> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (2mA)
ugen2.6: <Apple Inc. FaceTime HD Camera (Display)> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen2.7: <Apple Inc. Apple Thunderbolt Display> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (2mA)
ugen4.3: <General UDisk> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA)
ugen4.4: <Broadcom Corp BCM20702A0> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA)
ugen4.5: <Logitech USB Receiver> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (98mA)
ugen4.6: <SanDisk Cruzer Micro> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (200mA)
ugen2.4: <Wacom Co.,Ltd. CTH-670> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (498mA)
ugen2.3: <Sundtek MediaTV Pro III (EU)> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
Comment 1 Jan Beich freebsd_committer freebsd_triage 2020-03-14 17:46:42 UTC
12.1 enabled evdev(4) by default (see base r340695), so webcamd may allocate /dev/input/event* in a slightly different order (which may change on reboots). This can break static InputDevice configuration in xorg.conf(5), so using hotplugging (via DEVD or UDEV) is recommended.

Alternatively, try using xf86-input-libinput instead of xf86-input-wacom:
0. Make sure libinput is built with WACOM=on (default)
1. Make sure xorg-server is built with UDEV=on (default on 12.1+)
2. Install xf86-input-libinput (in case it's not pulled as a dependency)
3. Remove xf86-input-mouse and xf86-input-keyboard
4. Remove xf86-input-wacom, xorg.conf.d/51-wacom.conf and wacom_enable from /etc/rc.conf
Comment 2 Thomas Zander freebsd_committer freebsd_triage 2021-10-09 07:33:07 UTC
Is this still a problem after the explanation in comment #1?