Xorg serial mouse support after r360637
Michael Gmelin
freebsd at grem.de
Fri Jun 19 15:07:31 UTC 2020
Hi,
I'm leaving this here to give affected users a chance to google a
solution.
The default value of kern.evdev.rcpt_mask used to be 3, but this got
changed to 12 in r360637:
https://svnweb.freebsd.org/base?view=revision&revision=360637
As a result, users of serial mice (connected via RS-232) or any other
device that only works over sysmouse(4) + moused(8) will lose their
pointer if they're running an evdev enabled kernel.
This can be fixed temporarily by running:
# sysctl kern.evdev.rcpt_mask=3
and made persistent across reboots by altering sysctl.conf:
# echo kern.evdev.rcpt_mask=3 >>/etc/sysctl.conf
Cheers,
Michael
p.s.
# sysctl -d kern.evdev.rcpt_mask
kern.evdev.rcpt_mask: Who is receiving events:
bit0 - sysmouse,
bit1 - kbdmux,
bit2 - mouse hardware,
bit3 - keyboard hardware
Therefore:
3 ~ sysmouse + kbdmux
6 ~ mouse hardware + kbdmux
9 ~ sysmouse + keyboard hardware
12 ~ mouse hardware + keyboard hardware
So setting kern.evdev.rcpt_mask=9 would also work to fix the serial
mouse problem, as it combines sysmouse and keyboard hardware.
(re-sent from subscribed address)
--
Michael Gmelin
More information about the freebsd-x11
mailing list