Do nothing on laptop close not available in Ubuntu 19.04

I'm running Ubuntu Studio, which is based on Ubuntu 19.04. I want it to do nothing when I close the laptop lid. I'm able to do this in Kubuntu 18.04 via the Power settings. But I can't get this to work in Ubuntu 19.04. I go to the XFCE Power Manager, and for laptop lid close I'm only offered three alternatives: Suspend, Switch Off Display, and Lock Screen, whether or not I'm on battery power. How can I specify Do Nothing?

1 Answer

Had the same problem and this link helped:

In file /etc/systemd/logind.conf change the line:

#HandleLidSwitch=suspend

To:

HandleLidSwitch=ignore

Either run: systemctl restart systemd-logind.service or reboot.

In my case I had to reboot before this worked.

This still works on Ubuntu 19.04

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like