A "Do nothing" option when you close the laptop lid

Write suggestions and new ideas in here
More ideas here http://community.linuxmint.com/idea/welcome
Forum rules
  • Only post ideas here that are specifically about the Linux Mint distribution or its websites.
  • So that developers and users from any distribution can discuss ideas in one place, post ideas about improving software to the collaboration website for that software instead.
Post Reply
Nocturn Adrift
Level 1
Level 1
Posts: 1
Joined: Sun May 27, 2018 4:27 pm

A "Do nothing" option when you close the laptop lid

Post by Nocturn Adrift » Tue Aug 14, 2018 2:57 am

Within the power manager, please, add a "do nothing" option. It severely helps people when they are making a compact workstation involving an external monitor. I went into the config profiles to take it out, it was a massive pain that would be extremely easy (from my perspective) to be implemented. Thank you in advance.

User avatar
Pierre
Level 17
Level 17
Posts: 7569
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: A "Do nothing" option when you close the laptop lid

Post by Pierre » Tue Aug 14, 2018 3:37 am

But there is that option - from the Control Center - Hardware:
- "when Laptop Lid is Closed " "do nothing".
that option in Power Management - in available in both:
- On AC Power
- On Battery Power
under the Actions area.

you don't see that ? what desktop version of LinuxMint are you using ?.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

getaway
Level 2
Level 2
Posts: 71
Joined: Tue Jul 15, 2014 3:11 am
Location: Bretagne, France

Re: A "Do nothing" option when you close the laptop lid

Post by getaway » Sat Aug 18, 2018 10:19 am

Hello there

I am using LinuxMint cinnamon Tara and neverthless the option "do nothing" is checked for AC power and for battery power, I cannot avoid my screen to be locked when I close the lid of the laptop.
Thank you for any idea to avoid that???
Linuxmint Cinnamon Tara 19 64 bits
Asus X200MA and UX430U

gm10
Level 12
Level 12
Posts: 4148
Joined: Thu Jun 21, 2018 5:11 pm

Re: A "Do nothing" option when you close the laptop lid

Post by gm10 » Sat Aug 18, 2018 10:50 am

getaway wrote:
Sat Aug 18, 2018 10:19 am
Hello there

I am using LinuxMint cinnamon Tara and neverthless the option "do nothing" is checked for AC power and for battery power, I cannot avoid my screen to be locked when I close the lid of the laptop.
Thank you for any idea to avoid that???
Try this:

Code: Select all

sudo sed -i '/IgnoreLid=/{s/false/true/}' /etc/UPower/UPower.conf 
sudo sed -i '/HandleLidSwitch/{s/#//;s/suspend/ignore/}' /etc/systemd/logind.conf
sudo systemctl restart systemd-logind
Might have to reboot for the first change to take effect, I'm not actually sure.

getaway
Level 2
Level 2
Posts: 71
Joined: Tue Jul 15, 2014 3:11 am
Location: Bretagne, France

Re: A "Do nothing" option when you close the laptop lid

Post by getaway » Sat Aug 18, 2018 11:28 am

Hello gm10

Thanks a lot for your answer.
Your suggestion works fine after rebooting the system.
I actually do appreciate. Many thanks.

But I do support too the first suggestion of "Nocturn Adrift" for a simple option which would suspend all actions except turning off the light of the screen when we close the lid of a laptop.
Your suggestion needs badly a lot of Linux knowledge not everybody have. Neither me...
:D :D :D
Linuxmint Cinnamon Tara 19 64 bits
Asus X200MA and UX430U

gm10
Level 12
Level 12
Posts: 4148
Joined: Thu Jun 21, 2018 5:11 pm

Re: A "Do nothing" option when you close the laptop lid

Post by gm10 » Sat Aug 18, 2018 11:37 am

getaway wrote:
Sat Aug 18, 2018 11:28 am
But I do support too the first suggestion of "Nocturn Adrift" for a simple option which would suspend all actions except turning off the light of the screen when we close the lid of a laptop.
Your suggestion needs badly a lot of Linux knowledge not everybody have. Neither me...
:D :D :D
For most users including myself the power management options work fine the way @Pierre posted above. It's just in some cases that this fails either due to misconfiguration or misbehaving hardware/drivers, so what I gave you was the override basically.

getaway
Level 2
Level 2
Posts: 71
Joined: Tue Jul 15, 2014 3:11 am
Location: Bretagne, France

Re: A "Do nothing" option when you close the laptop lid

Post by getaway » Sat Aug 18, 2018 12:23 pm

Thank you anyway. It works now...
Should I mark the problem fixed on the first post of this thread (I'm not the author)?
Linuxmint Cinnamon Tara 19 64 bits
Asus X200MA and UX430U

gm10
Level 12
Level 12
Posts: 4148
Joined: Thu Jun 21, 2018 5:11 pm

Re: A "Do nothing" option when you close the laptop lid

Post by gm10 » Sat Aug 18, 2018 1:07 pm

getaway wrote:
Sat Aug 18, 2018 12:23 pm
Should I mark the problem fixed on the first post of this thread (I'm not the author)?
You can only do that for your own threads. We don't know if OP's problem ever got solved since he never replied again - in case of doubt I would have suggested the same to him though. ;)

Post Reply

Return to “Suggestions & New Ideas”