In attempt to workaround the issue outlined here: Random screen freezes but can still use mouse/shortcuts - #15 by _dunce, I was wondering if there is a straightforward way to just restart X11/all graphical related things?
Again, I have full access to the command line when the freeze happens, and often I can navigate around the place (blind) to save my work etc. before doing a standard reboot. Needless to say, that is incredibly annoying. But presumably there is something I could do to get out of this state without needing to restart at all. I have also noticed that the issue only occurs when I have a dual monitor attached which I always setup by running first:
xrandr --output eDP1 --primary --mode 2560x1440 --pos 0x1080 --rotate normal --output DP-1 --off --output HDMI1 --mode 1920x1080 --pos 320x0 --rotate normal --output DP-2 --off --output HDMI-2 --off
xrandr --output eDP1 --scale 1x1 --pos 160x1620; xrandr --output HDMI1 --scale 1.5x1.5 --mode 1920x1080 --fb 3840x4200 --pos 0x0.