Choose style:

Author Topic: How can I set the laptop to ignore when lid is closed? [Solved]  (Read 433 times)

0 Members and 1 Guest are viewing this topic.

Offline drivebee

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
How can I set the laptop to ignore when lid is closed? [Solved]
« 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.
« Last Edit: September 27, 2018, 03:03:31 am by zebedeeboss »

Online zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 2845
  • Karma: 532
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 Beta / P9 Respin
Re: How can I set the laptop to ignore when lid is closed?
« Reply #1 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...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 Beta x64 Desktop - i7-6700K @ 4.00GHz - 32Gb RAM - NVIDIA GTX1070ti 8Gb - 2 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P9 Respin x64 Laptop - i7-7700HQ @ 2.80GHz - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline drivebee

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: How can I set the laptop to ignore when lid is closed?
« Reply #2 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?

Online zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 2845
  • Karma: 532
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 Beta / P9 Respin
Re: How can I set the laptop to ignore when lid is closed?
« Reply #3 on: September 26, 2018, 04:33:46 pm »
Diff people want diff things  :)

This way you get to choose

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 Beta x64 Desktop - i7-6700K @ 4.00GHz - 32Gb RAM - NVIDIA GTX1070ti 8Gb - 2 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P9 Respin x64 Laptop - i7-7700HQ @ 2.80GHz - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline drivebee

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: How can I set the laptop to ignore when lid is closed?
« Reply #4 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!

Online zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 2845
  • Karma: 532
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 Beta / P9 Respin
Re: How can I set the laptop to ignore when lid is closed? [Solved]
« Reply #5 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...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 Beta x64 Desktop - i7-6700K @ 4.00GHz - 32Gb RAM - NVIDIA GTX1070ti 8Gb - 2 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P9 Respin x64 Laptop - i7-7700HQ @ 2.80GHz - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline ezaitsev

  • nOOb
  • *
  • Posts: 1
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: How can I set the laptop to ignore when lid is closed? [Solved]
« Reply #6 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