Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 2020 17:06:54 +0200
From:      Michael Gmelin <freebsd@grem.de>
To:        "freebsd-x11@freebsd.org" <freebsd-x11@freebsd.org>
Subject:   Xorg serial mouse support after r360637
Message-ID:  <20200619170654.2dde5cf1@bsd64.grem.de>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200619170654.2dde5cf1>