Ubuntu artful doesn't have close lid options. Help please?

Asked by Evan Tsimidis

I can't seem to find any options in the settings of Ubuntu artful that allow me to make it so that my laptop doesn't do anything when the lid is closed. What can I do to solve this?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Evan Tsimidis
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Is it set in /etc/systemd/logind.conf

?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Set:

HandleLidSwitch=ignore

Reboot to test (make a backup of the file before editting with:

sudo cp /etc/systemd/logind.conf ~/logind.conf_20171023

You can then copy back with:

cat ~/logind.conf_20171023 | sudo tee /etc/systemd/logind.conf

Revision history for this message
Evan Tsimidis (rufflikerex) said :
#3

The above did not work. My computer still enters suspend mode.

Revision history for this message
Evan Tsimidis (rufflikerex) said :
#4

I've found a working solution. Now that Ubuntu is using GNOME by default I figured out that tweaking software for GNOME would work, so I downloaded GNOME Tweaker from the Ubuntu App Store, went into the Tweaker's power settings and unchecked "Suspend on lid close". It worked and now my laptop doesn't suspend on a closed lid.