Verify That X Is Running
Hello,
I need some smart script that can run under linux that can:
* Test/verify that x is working.
* If it is not working it should “killall X” and then restart x “xwin”.
An idea i had was to popup some window (really small) top left corner 1px widht 1px height. Then check if window did popup sucessfully. If not then X has crashed.
I have a touchscreen driver that is acting strange and randomly crashes X. Sometimes X can run smoothly for days – and then sometimes it can crash within hours.
THe touchscreen is a model “zytronic”.
Thanks for help,
Best regards,
Johan