I have experienced that some famous applications that use the GPU made the computer’s screen stop and black. Input did not seem to work. At first, I thought that the OS has crashed and I reset the PC, but then I figured out that the OS itself is working, and I can press Ctlr+Alt+F1/F2 to see Gnome’s login screen or the terminal.
In Gnome’s login screen, if I type my password, it just returns to the black screen, so I gave up and tried to restart the session, but there was no such menu. The menu did not have a “log out” or “restart session”, etc, but only things like reboot or power-off.
So, I switched to the terminal, logged in. The font was very small but I managed to see that gnome-shell was using 100 in htop and I killed it. After that, re-logging in gave normal Gnome desktop again.
But this manually killing gnome-shell is not easy for a novice like myself. Maybe there could be a more user-friendly way to handle this:
- Show “log out” or “restart session” menu on that login screen invoked by Ctrl+Alt+F1.
- When gnome-shell is stuck, show a message box asking the user if he wants to wait or kill the session, just like unresponsive GUI applications.
- If 2 is technically not possible, maybe just force restart gnome-shell after a certain amount of time, like 10 seconds.