FreeBSD touchscreen support (xf86-input-evdev and xf86-input-libinput ignoring wmt device)
Denis Polygalov
dpolyg at gmail.com
Sun Feb 9 02:58:46 UTC 2020
Hi,
I have a Panasonic CF-J10 laptop running:
$ uname -a
FreeBSD amadeus 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64
Also, I have a second LCD+touchscreen device connected to the laptop
via HDMI and USB cables.
The touchscreen is recognized by kernel as wmt(4) device:
ugen2.3: <WaveShare WaveShare Touchscreen> at usbus2
wmt0 on uhub4
wmt0: <WaveShare WaveShare Touchscreen, class 0/0, rev 2.00/2.00, addr
3> on usbus2
wmt0: 2 contacts and [P]. Report range [0:0] - [1024:600]
wmt0: 5 feature report contacts
and appear as /dev/input/event4
I can see events flowing from the touchscreen when running
'evemu-record' (pkg install evemu).
The touchscreen is also appear in output from:
$ libinput list-devices
I have installed xf86-input-evdev
(also tried xf86-input-libinput, no luck)
and use configuration file 5-ts.conf placed into:
/usr/local/etc/X11/xorg.conf.d/
with content such as:
Section "InputDevice"
Identifier "TouchScreen0"
Driver "evdev"
Option "Device" "/dev/input/event4"
EndSection
but the touchscreen never appear in the:
$ xinput --list
Digging into Xorg.0.log file shows that the file:
/usr/local/lib/xorg/modules/input/evdev_drv.so
is never loaded:
% cat /var/log/Xorg.0.log | grep .so
[ 5131.626] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 5131.626] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 5131.628] (II) Loading
/usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 5131.628] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[ 5131.659] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[ 5131.884] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 5132.328] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[ 5132.330] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
% cat /var/log/Xorg.0.log | grep XINPUT
[ 5132.328] (II) XINPUT: Adding extended input device "kbdmux" (type:
KEYBOARD, id 6)
[ 5132.330] (II) XINPUT: Adding extended input device "sysmouse" (type:
MOUSE, id 7)
Please advice how to get the touchscreen recognized by XINPUT...
Is this have something to do with following?
[ 5131.626] (II) The server relies on devd to provide the list of input
devices.
If no devices become available, reconfigure devd or disable
AutoAddDevices.
Regards,
Denis.
More information about the freebsd-x11
mailing list