Peppermint OS Community Forum

Support => Hardware => Topic started by: drivebee on September 26, 2018, 03:13:15 am

Title: How can I set the laptop to ignore when lid is closed? [Solved]
Post by: drivebee on September 26, 2018, 03:13:15 am
The options do not include 'do nothing' - is there another way to set it to do nothing? My Acer Aspire One has an issue with going to sleep when it shouldn't be and I want to see if this will fix it.
Title: Re: How can I set the laptop to ignore when lid is closed?
Post by: zebedeeboss on September 26, 2018, 03:56:51 am
Hi drivebee.

you could try this

Open the /etc/systemd/logind.conf file in a text editor as root, for example,

Code: [Select]
sudo xed /etc/systemd/logind.conf
Find the line that reads

Code: [Select]
#HandleLidSwitch=suspend

and make it read

Code: [Select]
HandleLidSwitch=ignore

save the file and then close it - reboot and then see what happens when you close the lid.

If this does not work - simply edit the file again and add a # to comment out the line again

Regards Zeb...
Title: Re: How can I set the laptop to ignore when lid is closed?
Post by: drivebee on September 26, 2018, 04:08:10 pm
Thanks a lot, will try this.

Just a question- how come all the lines in this file are commented out? Are they just there to be used in case of issues?
Title: Re: How can I set the laptop to ignore when lid is closed?
Post by: zebedeeboss on September 26, 2018, 04:33:46 pm
Diff people want diff things  :)

This way you get to choose

Regards Zeb...
Title: Re: How can I set the laptop to ignore when lid is closed?
Post by: drivebee on September 27, 2018, 02:37:17 am
This totally solved the problem I was having. My Acer Aspire One was going to sleep at regular intervals for no reasons and since I made this change, it's staying on. Thank you so much!
Title: Re: How can I set the laptop to ignore when lid is closed? [Solved]
Post by: zebedeeboss on September 27, 2018, 03:05:16 am
Hi

I'm just glad to hear you have the laptop running the way you want  :)  The Peppermint Way  :D

Regards Zeb...
Title: Re: How can I set the laptop to ignore when lid is closed? [Solved]
Post by: ezaitsev on November 17, 2018, 04:15:38 pm
I have a mirror problem, when I close my laptop it does nothing, but I want power off.
In /etc/systemd/login.conf
HandleLidSwitch=poweroff
HandleLidDocked=poweroff

What I did wrong?
Pepermint 8