xorg crashes with evdev and udev input device detection

Andreas Nilsson andrnils at gmail.com
Thu Mar 15 09:01:06 UTC 2018


Hello,

I recently spent some time trying to enable touchscreen+pen on my lenovo x1
yoga ( gen 1). I now run
FreeBSD 12.0-CURRENT #9 3fa80706a55(master)-dirty: Tue Mar 13 20:34:13 CET
2018 and config

include GENERIC-NODEBUG
ident   NOVESA
nooptions       VESA
device          evdev
options         EVDEV_SUPPORT
device          uinput

I also rebuilt xorg-server according to Bug #196678 to enable udev.

This works great, no config needed in /usr/local/etc/X11/xorg.conf.d to get
touchscreen+pen working, as well as keyboard.

However, my touchpad and trackpoint stops working. The work if I start
moused or add a config snippet explicitly pointing to /dev/psm0 as device.

However, every once in a while when have touchpad "working", xorg crashes
as I touch it:

ff 0 0 0 18 0 0 0 [ 57201.001]
[ 57201.001] 70 02 00 00 69 d1 68 03
[ 57201.002] 0c 00 00 00 0c 00 00 00
[ 57201.002] 00 00 00 00 00 00 00 00
[ 57201.005] (EE)
[ 57201.005] (EE) Backtrace:
[ 57201.007] (EE) 0: /usr/local/bin/X
(valuator_mask_fetch_unaccelerated+0xdf) [0x45712f]
[ 57201.008] (EE) 1: /usr/local/bin/X (mieqEnqueue+0x23) [0x595c53]
[ 57201.010] (EE) 2: /usr/local/bin/X (QueuePointerEvents+0x4b) [0x450d4b]
[ 57201.011] (EE) 3: /usr/local/bin/X (xf86PostMotionEvent+0x123) [0x48f063]
[ 57201.013] (EE) 4: /usr/local/lib/xorg/modules/input/mouse_drv.so
(_init+0x529d) [0x80a6bd1bd]
[ 57201.014] (EE) 5: /usr/local/lib/xorg/modules/input/mouse_drv.so
(_init+0x2561) [0x80a6b7971]
[ 57201.015] (EE) 6: /usr/local/lib/xorg/modules/input/mouse_drv.so
(_init+0x1519) [0x80a6b5af9]
[ 57201.017] (EE) 7: /usr/local/bin/X (xf86AddEnabledDevice+0x58) [0x4803b8]
[ 57201.018] (EE) 8: /usr/local/bin/X (xf86InstallSIGIOHandler+0x3a7)
[0x4a5027]
[ 57201.019] (EE) 9: /lib/libthr.so.3 (_pthread_sigmask+0x538) [0x801e70828]
[ 57201.021] (EE) 10: /lib/libthr.so.3 (pthread_getspecific+0xe61)
[0x801e705a1]
[ 57201.022] (EE) 11: ? (?+0xe61) [0x7ffffffffff4]
[ 57201.024] (EE) 12: /lib/libc.so.7 (_select+0xa) [0x802042d64]
[ 57201.026] (EE) 13: /lib/libthr.so.3 (pthread_suspend_all_np+0x1632)
[0x801e6e7b2]
[ 57201.027] (EE) 14: /usr/local/bin/X (WaitForSomething+0x295) [0x5b08e5]
[ 57201.029] (EE) 15: /usr/local/bin/X (UpdateCurrentTimeIf+0x38a)
[0x4329ea]
[ 57201.031] (EE) 16: /usr/local/bin/X (remove_fs_handlers+0x717) [0x43cda7]
[ 57201.032] (EE) 17: /usr/local/bin/X (_start+0x95) [0x425835]
[ 57201.034] (EE) 18: ? (?+0x95) [0x800847095]
[ 57201.034] (EE)
[ 57201.034] (EE)
Fatal server error:
[ 57201.034] (EE) Wrong event type 255. Aborting server
[ 57201.034] (EE)
[ 57201.034] (EE)

Has anybody seen this before?

Best regards
Andreas


More information about the freebsd-x11 mailing list