Solved mouse is not working with FreeBSD 15

I installed FreeBSD 15 from scratch though I copied my existing configuration. When I run startx, my i3 session starts normally, but the mouse does not work. I've not used moused in the past except for laptops, but even after starting that, it still does not work.

This is the relevant bits in the /var/log/Xorg.0.log:

Code:
[  4556.282] (II) config/udev: Adding input device System mouse (/dev/input/event1)
[  4556.282] (**) System mouse: Applying InputClass "libinput pointer catchall"
[  4556.282] (II) Using input driver 'libinput' for 'System mouse'
[  4556.282] (**) System mouse: always reports core events
[  4556.282] (**) Option "Device" "/dev/input/event1"
[  4556.292] (II) event1  - System mouse: is tagged by udev as: Mouse
[  4556.292] (II) event1  - System mouse: device is a pointer
[  4556.292] (II) event1  - System mouse: device removed
[  4556.292] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  4556.292] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  4556.292] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  4556.292] (**) Option "config_info" "udev:/dev/input/event1"
[  4556.292] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 7)
[  4556.292] (**) Option "AccelerationScheme" "none"
[  4556.292] (**) System mouse: (accel) selected scheme none/0
[  4556.292] (**) System mouse: (accel) acceleration factor: 2.000
[  4556.292] (**) System mouse: (accel) acceleration threshold: 4
[  4556.292] (II) event1  - System mouse: is tagged by udev as: Mouse
[  4556.292] (II) event1  - System mouse: device is a pointer
 
"System mouse" is ignored by Xorg by default for about 5 years.

Could you run sudo libinput debug-event than find your device in list and check if it produces any events while moving or on button press?
 
/dev/input/event1 is inactive by default for about 5 years. Do not try it unless kern.evdev.rcpt_mask sysctl was tweaked (almost never needed)

please remove --device parameter
 
P.S.: If you really want enable system mouse, run sudo sysctl kern.evdev.rcpt_mask=3 and after than /dev/input/event1 will be active again if moused is run and correctly configured.
Default configuration does not require moused to be run.
 
libinput debug-events reveals this:
event10 - Apple Inc. Apple Internal Keyboard / Trackpad Touchpad: libinput bug: kernel fuzz of 40 but LIBINPUT_FUZZ_35 is missing
event10 - Apple Inc. Apple Internal Keyboard / Trackpad Touchpad: libinput bug: kernel fuzz of 27 but LIBINPUT_FUZZ_36 is missing

How to fix this? Touchpad on this old macbookpro9,2 (2012) stopped working in 15.... I tried both wsp and atp drivers. Other events shown by above command:
-event0 DEVICE_ADDED System keyboard multiplexer seat0 default group1 cap:k
-event1 DEVICE_ADDED System mouse seat0 default group2 cap:p left scroll-nat scroll-button
-event10 DEVICE_ADDED Apple Inc. Apple Internal Keyboard / Trackpad Touchpad seat0 default group3 cap:pg size 106x76mm tap (dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwtp-on
-event2 DEVICE_ADDED Control Method Lid Switch seat0 default group4 cap:S
-event3 DEVICE_ADDED Power Button seat0 default group5 cap:k
-event4 DEVICE_ADDED Sleep Button seat0 default group6 cap:k
-event6 DEVICE_ADDED Apple Inc. Apple Internal Keyboard / Trackpad seat0 default group7 cap:k
-event7 DEVICE_ADDED ACPI video extension seat0 default group8 cap:k
-event9 DEVICE_ADDED Apple Inc. Apple Internal Keyboard / Trackpad Consumer Control seat0 default group9 cap:k
 
Hmm, so this has to be on me, the mouse works when I boot to the USB thumb drive in the console. The strange thing is that this is the 'exact' same configuration I used with 14.2, but that is beside the point.

I am running a custom kernel mainly so I have traffic shaping support. I will see if I can revert to a stock kernel and then try to sort out the differences from there.

dmesg does show the mouse is picked up.

regarding libinput debug-events - that does pick up keyboard events, but nothing for the mouse.

Oh, I'm not sure if it mattered, but my /dev/input/event* nodes were 600, root:wheel, I changed that to 660 root:operator, but that didn't make any difference.

A quick diff of my custom kernel conf and the GENERIC one, I still have usbhid and other USB drivers, so I *think* it should work.
 
libinput debug-events reveals this:


How to fix this? Touchpad on this old macbookpro9,2 (2012) stopped working in 15.... I tried both wsp and atp drivers. Other events shown by above command:
Thanks, even though I don't know how to fix it, it is somewhat reassuring that someone else is having a similar issue. Hopefully we can sort it out.
 
Hmm, I haven't used a standard kernel in quite some time. I am running ZFS on top of GELI - I thought I just needed:

/boot/loader.conf
aesni_load="YES"
cryptodev_load="YES"
zfs_load="YES"

I will pull the install USB and see what I'm missing.

Yeah, I think that is everything:

Hmm, when the system boots, I am prompted for a GELI passphrase, at that point, it should be unlocking the volume, is cryptodev / geom_eli_load relevant and more importantly, those configuration files are inside the ZFS root volume in the pool. The only thing in my EFI partition is the loader.
 
In my case, after rebuilding the kernel with GENERIC + all of my other options / devices enabled, it still isn't working. I will boot up to the USB installer and try to see what sysctls, rc.conf, or loader.conf options are set.

I think I am missing hms / hidmap in my modules.
 
Brilliant, that worked:

/etc/make.conf
MODULES_OVERRIDE=acpi hid/hms hid/hidmap i2c/controllers/ichsmb i2c/smbus mac_ntpd linux linux_common if_epair linux64 linuxkpi_hdmi linuxkpi_video lindebugfs linprocfs linsysfs vmm cpuctl

Hmm, I am confused because this was working on 14.2-RELEASE, at least so I think.
 
In my case, after rebuilding the kernel with GENERIC + all of my other options / devices enabled, it still isn't working. I will boot up to the USB installer and try to see what sysctls, rc.conf, or loader.conf options are set.

I think I am missing hms / hidmap in my modules

In beta1 my USB mouse was being set to psm0, so I did the following and after a reboot it was automatically configured as hms0:
Code:
sudo sysrc moused_port="auto"
sudo sysrc moused_enable="YES"
 
I forgot to mark this as solved, for me, I had to rebuild with modules listed above. Separately, I want hotplug to work so that if I run my desktop inside a jail and use a KVM switch that I can get back to it without losing connectivity.
 
libinput debug-events reveals this:


How to fix this? Touchpad on this old macbookpro9,2 (2012) stopped working in 15.... I tried both wsp and atp drivers. Other events shown by above command:
I'm so eager to learn if you ever managed to fix this. I have an early 2013 MBP and the trackpad works with the ums driver — but that just gives me point and click, there's no tap and no two finger scrolling. If I ever manage to create /dev/wsp* or /dev/atp* then it won't work at all, and libinput debug-events gives me the same error messages as you get about LIBINPUT_FUZZ_**. I made a post about it here Thread freebsd15-0-macbook-trackpad-works-but-not-very-well.101649 but nobody's replied :-(
 
Yes, I marked the issue as "Solved".

For me, I had a custom kernel and inadvertently excluded necessary modules:
MODULES_OVERRIDE=acpi hid/hms hid/hidmap i2c/controllers/ichsmb i2c/smbus mac_ntpd linux linux_common if_epair linux64 linuxkpi_hdmi linuxkpi_video lindebugfs linprocfs linsysfs vmm cpuctl
 
I'm so eager to learn if you ever managed to fix this. I have an early 2013 MBP and the trackpad works with the ums driver — but that just gives me point and click, there's no tap and no two finger scrolling. If I ever manage to create /dev/wsp* or /dev/atp* then it won't work at all, and libinput debug-events gives me the same error messages as you get about LIBINPUT_FUZZ_**. I made a post about it here Thread freebsd15-0-macbook-trackpad-works-but-not-very-well.101649 but nobody's replied :-(
I haven't solved this problem. And now it is worse as the kernel freezes once in a while and I have to boot into an older snapshot.... I did notice that sometihng crashes as per /var/log/Xorg.0.log:
[ 631.076] (**) Option "Device" "/dev/wsp0"
[ 631.076] (EE) Segmentation fault at address 0x0
I haven't tracked this down due to reboot unreliability.
 
Back
Top