When #Apple does not anymore update Macs I usually install some Linux (Ubuntu Linux usually) on them. With Ubuntu 24.04 LTS I have had to fight my way through the problems 22.04 did not have with my 2015 Macbook Pro and one of them was now that while I was trying to get WPA2/3 Enterprise Wi-Fi working, my touchpad seemed to start malfunctioning.
I finally got it working by blacklisting usbmouse by adding line
blacklist usbmouse
in /etc/modprobe.d/blacklist-usbmouse.conf and rebooting the device. I have also similarly tried fixing this by blacklisting psmouse and evbug in the same way.
Now my xinput looks like this and touchpad works again:
# xinput list
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:15 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:15 id=7 [slave pointer (2)]
⎜ ↳ xwayland-pointer-gestures:15 id=8 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:15 id=9 [slave keyboard (3)]