The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 2,891     Votes:  3 
Tags: 18.04   multiple-monitors   suspend   power-management   laptop  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1083730
Title: Ubuntu goes suspended after login if lid is closed
ID: /2018/10/14/Ubuntu-goes-suspended-after-login-if-lid-is-closed
Created: October 14, 2018    Edited:  October 14, 2018
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Edit the file /etc/systemd/logind.conf

change the line:

#HandleLidSwitch=suspend

to:

HandleLidSwitch=ignore

Save the file and reboot.


After changes it should match my system:

$ grep -i lid /etc/systemd/logind.conf
HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#LidSwitchIgnoreInhibited=yes

Also check your Ubuntu power settings for what to do when lid is closed. For myself I have to open lid to access power button so the settings there are irrelevant. Since you can access power button with lid closed it may be significant.

⇧ Would I install android studio with 2 GB RAM What is the meaning of the output of the command 'sensors'?  ⇩