From time to time my Ubuntu desktop freezes. When this happens my usb keyboard and mouse stop responding so I can't get out to tty1 ([ctrl][alt][f1]) or do anything else from my input devices - also the lights on the kb & mouse go out suggesting that they're completely gone.
Setting aside the question of what could be causing this, I'd like to be able to restart the desktop without resetting the computer.
If I understand Wikipedia correctly, the xserver effectively takes over management of the keyboard and mouse so if the server crashes badly I lose usage of the input devices. Ideally I'd like to be able to run X with the input devices somehow being passed through the system (kernel?) instead.
<edit> Connecting over SSH is sometimes an option with a laptop being nearby but this is not always the case </edit>
I've done some googling but it seems I'm too ignorant to come up with suitable search terms ;-(
So what I'd like to know is:
is there a way to configure X such that the input devices are system managed rather than managed by the xserver itself?
Alternately am barking up completely the wrong tree?