I traced the problem to touchpad. Turning it off solves the problem.
While digging through this, I noticed an interesting thing that I need your comments on.
I tried many ways to do this and one of them was to try the Touchpad-indicator program.
Its installation failed, but something special happened. There were a lot of different settings in that Touchpad setup.
I then did an experiment today to install a clean 23.10. Well now those settings disappeared and I can’t get them back. I tried again to install touchpad-indicator, but those settings did not return.
Does anyone know how to get them? Was it a driver that I missed?
There were some really useful settings like turn the touchpad off when the mouse is plugged in and it worked really well.
The option to disable touchpad when usb mouse is connected is a feature of the no longer maintained xf86-input-synaptics driver, looks like you were using that before and since you reinstalled the os it probably now defaults to the libinput for wayland + xf86-input-libinput for X11
I suggest adding an extra shortcut to toggle the touchpad. There is supposed to be some kind of default but I’ve turned on a laptop with no mouse and the trackpad not turning on; it was frustrating.