I set up this Linux 'Watchdog' and now my system auto-reboots when it locks up ...
You can recover your desktop session in just a few minutes!
Within seconds, you can see which file it's waiting on or why it's stuck.