Views:
3,736β
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:
September 15, 2024
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.