The Cookie Machine - Click here to drag window

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

Views: 3,049β€…    Votes:  3β€…    βœ… Solution
Tags: suspend   laptop   power-management   lock-screen  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

URL: https://askubuntu.com/q/840267
Title: Disable suspend after screen lock
ID: /2016/10/21/Disable-suspend-after-screen-lock
Created: October 21, 2016
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


You can try this. Open the terminal and type:

gksu gedit /etc/systemd/logind.conf

Set these two lines to look like this:

HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore

Save the file, reboot and test it under the two environments (docked and undocked).

If unacceptable results, change your power settings to β€œDo nothing” on the lid close event where you have it set to β€œSuspend” now. You shouldn’t have to reboot to test your two environments again.

⇧ How to find out if computer was shut down at a given time? Why is the address bar at the bottom in Nautilus?  β‡©