lightdm, when encountering a login loop after waking from sleep I can do Ctrl+Alt+F5 to drop into
tty5 for example. After logging in, I write
sudo service lightdm restart into the terminal, which logs out of the current session and brings me to a fresh login screen, thereby escaping the login loop.
However, when using
gdm3, I cannot exit a login loop from
sudo serivce gdm restart in this way. The screen just turns black and the whole system needs a hard restart using the power button. I understand that
gdm operates differently from
lightdm. My question is:
What commands do I need to write in a tty to escape a login loop when using gdm?