HI
If you run some software which you know will hang X, One thing work
really well for me is to enable the telnet server. In case of problem I
connect through telnet and I can kill the proccess or restart X.
Now for the DIY people there is an Hw/Sw solution. THis solution date
back from OS/2 when it was first out (developers used it, I got it from
them). We use The serial port, in normal use all connectors are open.
Now if the console hung, with a switch you close 4-5 or 6-8. For the
software we need to run a little script every x minutes. This script
will check the RS232 Level and in case off level change you can run what
ever you like, restart X or else.
Now If the PC is hung (ex ping doesn't reply) there is nothing to do but
the reset button.
I hope that will help someone
Andre