Page MenuHomeFreeBSD

moused(8): Add support for evdev protocol
ClosedPublic

Authored by wulf on Aug 26 2025, 12:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 10:40 AM
Unknown Object (File)
Sun, Oct 12, 12:19 AM
Unknown Object (File)
Sat, Oct 11, 2:27 AM
Unknown Object (File)
Fri, Oct 10, 5:10 PM
Unknown Object (File)
Fri, Oct 10, 5:10 PM
Unknown Object (File)
Fri, Oct 10, 11:53 AM
Unknown Object (File)
Fri, Oct 10, 11:53 AM
Unknown Object (File)
Fri, Oct 10, 11:53 AM

Details

Summary

The new daemon have following properties as compared with previous
incarnation:

  • evdev protocol support for mices and touchpads. Additionally to relative PS/2 and USB devices it enables console support for I2C/USB touchpads and bluetooth mices.
  • Other aged protocols like COM, raw PS/2 and X10 are dropped with only exception of sysmouse. For those who still use them there is an utility called msconvd(8).
  • single daemon per system where hotplug is processed via devd socket. Per device mode still supported too.
  • Configuration and quirks files in libinput-compatible format. Actually, the new moused config parser is taken from libinput.

The moused(8) can work in 2 modes:

  1. Evdev support mode. It enables all previously mentioned devices. It is enabled by deault.
  2. Sysmouse support mode. All should work as before. No new devices supported. To enabled it add following lines to /etc/rc.conf: moused_port="/dev/psm0" moused_nondefault_enable="YES" One may add hw.usb.usbhid.enable=0 to /boot/loader.conf to enable ums(4) driver which supports sysmouse protocol.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wulf requested review of this revision.Aug 26 2025, 12:38 PM

Is this the one Yusuf and I have been testing from your GitHub?

I know about a dozen of persons who tested it.

Is this the one Yusuf and I have been testing from your GitHub?

Yes, it is the one you and Yusuf have been testing

Fix paths in msconvd rc script

libexec/rc/rc.d/msconvd
23–24

We should resolve these questions

usr.sbin/moused/moused/moused.8
216–221

In general new sentences should start on a new line in manpages

usr.sbin/moused/moused/moused.c
1680

This is a future enhancement for this moused?

This revision was not accepted when it landed; it landed in state Needs Review.Sep 4 2025, 9:13 PM
This revision was automatically updated to reflect the committed changes.

I will try to address comments on weekend