To the excellent comments from my colleagues, can you check what is the status of your memory?.
free -h
The reason is that you can expect random processes to be killed if memory is starving, but also I've seen core parts of the system going mad (or stressed) under heavy swap to disk.
I don't think is a hardware problem, as you can move the mouse, I think the x manager gets a lock and doesn't accept more commands, but we need to get some information to see clearly.
Can you also check the logs to see if the Kernel has killed any process or you have something hang?.
cat /var/log/syslog | grep -i "kill\|hang\|mem"
cat /var/log/kern.log | grep -i "kill\|hang\|mem"
Also check dmesg, is a good place to see problems with the USB devices and the swap:
dmesg -T | grep -i "USB\|swap" | less
Do you see anything extrange in:
less /var/log/Xorg.0.log
Do you use NFS or iSCSI or ZFS? Certain timeouts on network sharings are locking.
Also certain hard drive errors, which I doubt as it is happening in two different computers.
When this happens can you go to the terminal with CTRL + ALT + F1 , F2 F3 F4 F5 or F6?.
Have you observed if this happens after the screen is auto locked?. The energy saving sometimes is troublesome.
Is your USB receiver connected to the computer or to an external monitor with USB? (energy saving).
Cheers
inxi -SPARM -GCDN -v1 -xGCRS
) and the mices, and how the wireless of your mices works (usb plug ? directly on your PC ?). Also, what about wired mices ? – B. du Garay Oct 23 '20 at 17:56