Getting PS2 and Wireless mouse to work in fresh install of FreeBSD 15.0

Hi,

I am new to FreeBSD. I made a fresh installation of FreeBSD 15 on a desktop, installed Xorg and xfce. One of my problems is that both mouse that I have are not working. My preferred mouse is an old ps2 mouse Logitech model M-SBF83 with a scroll wheel that works a middle button as well. The mouse is working in the UEFI screen, but not in xfce.
The second mouse is a wireless mouse Portronics Toad Ergo with 6 buttons including the wheel which was confirmed as working in another computer.

I read that atkbdc and psm drivers are needed for ps2 mouse and that atkbdc is included in the generic kernel. However, I couldn't find it in the information provided by kldstat.
kldstat


Code:
Id Refs Address                Size Name
 1   75 0xffffffff80200000  1f4daa0 kernel
 2    1 0xffffffff8214e000   620c10 zfs.ko
 3    1 0xffffffff83400000   210318 i915kms.ko
 4    2 0xffffffff83310000    8a190 drm.ko
 5    1 0xffffffff8339b000     22b8 iic.ko
 6    2 0xffffffff8339e000     4120 linuxkpi_video.ko
 7    3 0xffffffff833a3000     7358 dmabuf.ko
 8    3 0xffffffff833ab000     3378 lindebugfs.ko
 9    1 0xffffffff833af000     b480 ttm.ko
10    1 0xffffffff833bb000     3390 acpi_wmi.ko
11    1 0xffffffff833bf000     21e8 hcons.ko
12    3 0xffffffff833c2000     30a8 hidmap.ko
13    1 0xffffffff833c6000     21e8 hms.ko
14    1 0xffffffff833c9000     21e8 hsctrl.ko
15    1 0xffffffff833cc000     4250 ichsmb.ko
16    1 0xffffffff833d1000     2178 smbus.ko
17    1 0xffffffff833d4000     6210 ig4.ko
18    1 0xffffffff833db000     2a80 mac_ntpd.ko

Neither could I load it with
kldload atkbdc
which returned
kldload: can't load atkbdc: No such file or directory.

My attempt to install it using
pkg install atkdbc
also failed with the message pkg: No packages available to install matching 'atkdbc' have been found in the repositories


Regarding the wireless mouse, it is shown in the dmesg.

dmesg | egrep -i 'mouse'



hms0: <YICHIP Wireless Device Mouse> on hidbus1
hms1: <CX 2.4G Receiver Mouse> on hidbus3

The YICHIP Wireless Device Mouse is a borrowed mouse (and I need to return it). It works in XFCE with the mouse set to System mouse. In the drop down list for devices YICHIP Wireless Device Mouse is seen but not CX 2.4G Receiver Mouse. I swapped the wireless receiver's USB ports to check if it was due to some issue with the port. But, the problem persists.

My
rc.conf
contains the following

Code:
dumpdev="AUTO"
zfs_enable="YES"
kld_list="i915kms"
hald_enable="YES"
dbus_enable="YES"
lightdm_enable="YES"

How do I get at least one of my mouse working?

Thanks for your help
 
HAL has been deprecated a really long time ago. sysrc -x hald_enable

For PS/2 mice you need to enable moused(8) (USB mice load this dynamically): sysrc moused_enable="YES"
 
HAL has been deprecated a really long time ago. sysrc -x hald_enable

For PS/2 mice you need to enable moused(8) (USB mice load this dynamically): sysrc moused_enable="YES"
Thank you for the reply. I ran the two commands and the PS2 mouse is still not detected. moused is for enabling mouse support in the console, isn't it? My query is regarding enabling it for the GUI.
 
But, even with that the ps2 mouse is not working.
Make sure it's connected when you turn on the machine. Most PS/2 ports on modern systems are disabled if nothing's connected to it when the system is powered up.
 
In my /etc/sysctl.conf, I changed the value of kern.evdev.rcpt_mask to 3 from 6 and the wireless mouse is now working though it doesn't show in the device list of xfce. Is it ok to keep it that way?
 
In my /etc/sysctl.conf, I changed the value of kern.evdev.rcpt_mask to 3 from 6 and the wireless mouse is now working though it doesn't show in the device list of xfce. Is it ok to keep it that way?
Sure, you can keep it that way.

Many 3rd party packages have a post-install messages. The specific configuration with PS2 mice is explained in the post-install message of x11-servers/xorg-server (which you may have found yourself).

Rich (BB code):
xorg-server-21.1.20,1:
On install:
Xorg-server has been installed.

If your kernel is compiled with the EVDEV_SUPPORT option enabled
(default starting from FreeBSD 12.1) it is recommended to enable evdev mode in
pointer device drivers like ums(4) and psm(4). This will give improvements like
better tilt wheel support for mice and centralized gesture support via
xf86-input-synaptics or libinput drivers for touchpads.

This is also needed for PS/2 devices to be properly detected by Xorg when
moused service is disabled in /etc/rc.conf and kernel is compiled with
EVDEV_SUPPORT.

To enable evdev in such a device, run the following:

# sysctl kern.evdev.rcpt_mask=6

To make it persistent across reboots, add the following to /etc/sysctl.conf:

kern.evdev.rcpt_mask=6

In case you're using a serial mouse or any other mouse that *only* works over
sysmouse(4) and moused(8) on an evdev enabled kernel, please run this:

# sysctl kern.evdev.rcpt_mask=3

To make it persistent across reboots, add to this /etc/sysctl.conf:

kern.evdev.rcpt_mask=3

To read all post-install messages of all installed packages: pkg info -aD | less
 
Sure, you can keep it that way.

Many 3rd party packages have a post-install messages. The specific configuration with PS2 mice is explained in the post-install message of x11-servers/xorg-server (which you may have found yourself).

Rich (BB code):
xorg-server-21.1.20,1:
On install:
Xorg-server has been installed.

If your kernel is compiled with the EVDEV_SUPPORT option enabled
(default starting from FreeBSD 12.1) it is recommended to enable evdev mode in
pointer device drivers like ums(4) and psm(4). This will give improvements like
better tilt wheel support for mice and centralized gesture support via
xf86-input-synaptics or libinput drivers for touchpads.

This is also needed for PS/2 devices to be properly detected by Xorg when
moused service is disabled in /etc/rc.conf and kernel is compiled with
EVDEV_SUPPORT.

To enable evdev in such a device, run the following:

# sysctl kern.evdev.rcpt_mask=6

To make it persistent across reboots, add the following to /etc/sysctl.conf:

kern.evdev.rcpt_mask=6

In case you're using a serial mouse or any other mouse that *only* works over
sysmouse(4) and moused(8) on an evdev enabled kernel, please run this:

# sysctl kern.evdev.rcpt_mask=3

To make it persistent across reboots, add to this /etc/sysctl.conf:

kern.evdev.rcpt_mask=3

To read all post-install messages of all installed packages: pkg info -aD | less
I had read that. The value 3 was suggested for ps2 mouse. But it did not help for the ps2 mouse. I tried it again for the wireless mouse and it helped.
 
Back
Top