Ubuntu 20.04.3 desktop (Cinnamon) - SSH disconnects when user logs off the desktop!
Bo Berglund
bo.berglund at gmail.com
Wed Jan 26 17:50:29 UTC 2022
On Tue, 25 Jan 2022 17:55:52 -0500, Bijan Soleymani <bijan at psq.com> wrote:
>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.
How can I do this on a non-laptop computer?
>2. Disable suspend/hibernate temporarily systemwide and see if that
>fixes it:
>https://www.tecmint.com/disable-suspend-and-hibernation-in-linux/
I ran the verification test without first running the mask command just to see
the current state:
sudo systemctl status sleep.target suspend.target hibernate.target
hybrid-sleep.target
o sleep.target - Sleep
Loaded: loaded (/lib/systemd/system/sleep.target; static; vendor preset:
enabled)
Active: inactive (dead)
Docs: man:systemd.special(7)
o suspend.target - Suspend
Loaded: loaded (/lib/systemd/system/suspend.target; static; vendor preset:
enabled)
Active: inactive (dead)
Docs: man:systemd.special(7)
o hibernate.target - Hibernate
Loaded: loaded (/lib/systemd/system/hibernate.target; static; vendor
preset: enabled)
Active: inactive (dead)
Docs: man:systemd.special(7)
o hybrid-sleep.target - Hybrid Suspend+Hibernate
Loaded: loaded (/lib/systemd/system/hybrid-sleep.target; static; vendor
preset: enabled)
Active: inactive (dead)
Docs: man:systemd.special(7)
So it is already set to *NOT* do any of these...
>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).
I lost you here, what is the command to do this?
>
>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).
But as shown above in my 2nd comment all of the related services are shut off
(dead) so how could a config for them affect anything?
But anyway, I have a workaround by configuring the system to log me on to the
desktop at startu...
Then none of these reboots ever happen.
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list