Score:0

Unable to disable suspend after closing laptop lid

kr flag

I have two laptops running Ubuntu focal(20.04.5) and would like to keep the laptop running after closing the lid.

I have successfully done the 'tweaks' setting outlined in https://help.ubuntu.com/stable/ubuntu-help/power-closelid.html.en

But, when I close the lid, both laptops enter sleep state.

Score:1
zw flag

Gnome uses logind to control powermanagement, so the best way is to alter a file with

sudo gedit /etc/systemd/logind.conf

Go to the line with HandleLidSwitch, ensure there is no # in front of that line, otherwise remove it.

Change that line to HandleLidSwitch=ignore , save the file and reboot. Should work now.

Other settings of this this switch are described here

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.