Re: CFT: evdev-awared moused

From: Tomoaki AOKI <junchoon_at_dec.sakura.ne.jp>
Date: Thu, 31 Jul 2025 23:16:59 UTC
On Thu, 31 Jul 2025 18:57:43 -0400
Ed Maste <emaste@freebsd.org> wrote:

> On Wed, 30 Jul 2025 at 04:34, Vladimir Kondratyev <wulf@freebsd.org> wrote:
> >
> > Hi all,
> >
> > With some non-zero probability FreeBSD15 will have usbhid(4) enabled by default.
> > See e.g. https://reviews.freebsd.org/D45659. That results in USB mices stop to
> > work in virtual terminals as ums(4) replacement called hms(4) is not compatible
> > with current moused(8) due to lack of legacy protocols support.
> >
> > To fix that I reworked our old good moused(8): https://github.com/wulf7/moused
> 
> I've given it a basic smoke test on my laptop and things work fine,
> thanks for this. It's nice to have a working trackpad on the console
> now.
> 
> > - 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.
> 
> I'm interested to hear if anyone's still using mice with these interfaces.

At least TrackPoints on some of ThinkPads are recognized via PS/2
internally. (For my P52, via Elantech Touchpad interface)


In dmesg:
  atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
  atkbd0: <AT Keyboard> irq 1 on atkbdc0
  kbd0 at atkbd0
  atkbd0: [GIANT-LOCKED]
  psm0: <PS/2 Mouse> irq 12 on atkbdc0
  psm0: [GIANT-LOCKED]
  WARNING: Device "psm" is Giant locked and may be deleted before
FreeBSD 15.0.
  psm0: model Elantech Touchpad, device ID 0

In /var/log/Xorg.0.log:
  [   187.172] (II) Using input driver 'libinput' for 'Touchpad'
  [   187.172] (**) Touchpad: always reports core events
  [   187.172] (**) Option "Device" "/dev/input/event6"
  [   187.179] (II) event6  - ETPS/2 Elantech TrackPoint: is tagged by
udev as: Mouse
  [   187.185] (II) event6  - ETPS/2 Elantech TrackPoint: device is a
pointer
  [   187.189] (II) event6  - ETPS/2 Elantech TrackPoint: device
removed
  [   187.189] (II) libinput: Touchpad: Step value 0 was provided,
libinput Fallback acceleration function is used.
  [   187.189] (II) libinput: Touchpad: Step value 0 was provided,
libinput Fallback acceleration function is used.
  [   187.189] (II) libinput: Touchpad: Step value 0 was provided,
libinput Fallback acceleration function is used.
  [   187.189] (II) XINPUT: Adding extended input device "Touchpad"
(type: MOUSE, id 6)
  [   187.189] (**) Option "AccelerationScheme" "none"
  [   187.189] (**) Touchpad: (accel) selected scheme none/0
  [   187.189] (**) Touchpad: (accel) acceleration factor: 2.000
  [   187.189] (**) Touchpad: (accel) acceleration threshold: 4
  [   187.194] (II) event6  - ETPS/2 Elantech TrackPoint: is tagged by
udev as: Mouse
  [   187.201] (II) event6  - ETPS/2 Elantech TrackPoint: device is a
pointer


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>