3

I am trying to set up a home cloud server on my old Ubuntu laptop However when i leave it running and close the lid of my laptop of course I get logged out and the process stops.

Is there a way to either completely disable the logoff when closing the lid OR a way to make sure the process keeps running even when I am logged off?

Any help is gratefully received.

/Mark

3 Answers3

2

Is there a way to ... completely disable the logoff when closing the lid ...?

Which operation system do you use exactly?
For me with ubuntu 16.04 LTS I could handle the logoff issue with following standard system settings:

  • Turn off the Lock
    system settings > Brightness & Lock > Lock: OFF (Details here)
  • Maybe in addition you need to switch on "Automatic Login" for your user:
    system settings > User Accounts > Automatic Login: On
0

On Ubuntu 20.04, and maybe even on previous versions, you can disable logoff going to Preferences -> Power Management and set to "Do nothing" on "When laptop lid is closed".

enter image description here

0

Using Tweaks how described here helped me:

  1. Open the Activities overview and start typing Tweaks.
  2. Click Tweaks to open the application.
  3. Select the General tab.
  4. Switch the Suspend when laptop lid is closed switch to off.
  5. Close the Tweaks window.