Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2020 11:58:33 +0900
From:      Denis Polygalov <dpolyg@gmail.com>
To:        FreeBSD X11 mailing list <freebsd-x11@freebsd.org>
Subject:   FreeBSD touchscreen support (xf86-input-evdev and xf86-input-libinput ignoring wmt device)
Message-ID:  <de553702-eed7-3127-9f04-720104097ff0@gmail.com>

index | next in thread | raw e-mail

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.




help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?de553702-eed7-3127-9f04-720104097ff0>