Ubuntu 20.04.3 desktop (Cinnamon) - SSH disconnects when user logs off the desktop!

Bijan Soleymani bijan at psq.com
Tue Jan 25 22:55:52 UTC 2022


On 2022-01-25 3:26 p.m., Liam Proven wrote:
> On Mon, 24 Jan 2022 at 22:35, Colin Law <clanlaw at gmail.com> wrote:
> 
>> Bo's system is not going to sleep, it is rebooting.
> 
> Ah, yes, it is, _but_ maybe it's _trying_ to go to sleep (or drop into
> some power-saving mode) and that's failing and crashing it...?

Yes I thought something similar.

Some things he could try:
1. Try to suspend, hibernate and power off display and see if any of 
them triggers the reboot.

2. Disable suspend/hibernate temporarily systemwide and see if that 
fixes it:
https://www.tecmint.com/disable-suspend-and-hibernation-in-linux/

3. Disable lightdm/gdm startup and startup of X locally, since it is not 
needed for remote VNC and see if that fixes it. Not even necessary to 
disable it at boot, can boot normally and then /etc/init.d/lightdm stop 
or /etc/init.d/gdm stop (or whatever the current syntax is for shutting 
down a service).

4. Configure lightdm and ubuntu greeter not to suspend:
https://askubuntu.com/questions/1337649/how-to-disable-suspend-in-20-minutes-from-the-lightdm-login-screen

This last one is the most difficult because if you don't get the 
settings just right it won't have an effect. So what I would recommend 
is setting the settings down to 1 minute or less and see if that 
triggers it quicker. Otherwise it is a bit annoying to test (although 
waiting 6 minutes is not as bad as 20 minutes).

Bijan




More information about the ubuntu-users mailing list