Page 1 of 1

How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Sun Jul 15, 2018 1:32 pm
by andrewsmith
Hello

I had this configured to work as I wanted in Mint 18.3 but I don't remember how I did it and am having a hard time figuring it out.

What I want is to disable the feature where the screen locks when my laptop's lid is closed.

It's fine if the screen turns off but I don't want the laptop to sleep or to lock the screen, requiring me to type in a password.

I went to the screensaver settings and set the "Delay before starting screensaver" to never, which I hope means it will never start but I don't know.

I also turned off the "Lock the computer after the screensaver starts" option, though I would like the screensaver to never start.

Under "Power management" both dropdowns for "when lid is closed" are set to "do nothing".

Can someone please help me figure this out?

Thanks in advance.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Sat Jul 21, 2018 10:05 am
by Digby
I have the same problem and it is annoying. If power management is set to suspend and you open laptop no password needed so I assume this is a bug but not sure how to articulate it.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Sun Jul 22, 2018 7:48 am
by tothpeter
I have exactly the same problem. On LM 19, all updates applied (and home partition encrypted), after the lid is closed, the screen is locked. I use exactly the same settings as in LM 18.3 and the screen was not locked here.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Mon Jul 23, 2018 2:27 am
by mattmint
This is really bugging me as well. The power management option says "Do Nothing" when lid is closed. That is inaccurate. It does something when the lid is closed: it activates the lock screen.

edit - this is on version 18.2, so it's not something new in 19 as far as I can tell.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Wed Jul 25, 2018 10:35 am
by lannatwin
Same here. In 17.3 there was a setting under screensaver to "lock the computer when the screen turns off". That switch is missing in Mint 19.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Fri Jul 27, 2018 3:45 am
by andrewsmith
Has anyone found a solution yet? I'm pretty sure it's the screensaver that turns on, but I don't know how to get stop it.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Fri Jul 27, 2018 3:59 am
by andrewsmith
I can chmod 0 /usr/bin/cinnamon-screensaver and that keeps it from locking when the lid is closed, but that also prevents it from locking when the laptop is suspended.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Wed Aug 08, 2018 1:07 am
by zacktheperson

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Wed Aug 08, 2018 1:34 am
by smurphos
zacktheperson wrote: Wed Aug 08, 2018 1:07 am This helped me solve the problem: https://askubuntu.com/questions/15520/h ... laptop-lid
Good find zacktheperson.... there was one fix suggested on there that I hadn't tried and hey presto it works...

sudoedit /etc/UPower/UPower.conf

Change IgnoreLid=false to IgnoreLid=true, Ctrl-X and then Y and enter to save. Reboot.

This has a side effect of removing Lid Actions entirely from the Power Manager GUI, but also kills the bug of the screensaver kicking in despite settings on lid close. Screensaver remains operational otherwise.

Reverting the edit and rebooting restores the Options in Power manager GUI as-well as the bug...

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Wed Aug 08, 2018 2:25 pm
by andrewsmith
Thanks guys!

To clarify for others who might run into this problem, this is what I had to do:

* Edit /etc/UPower/UPower.conf and change the IgnoreLid to true:

Code: Select all

IgnoreLid=true
* Then edit /etc/systemd/logind.conf, uncomment the HandleLidSwitch and change it to ignore:

Code: Select all

HandleLidSwitch=ignore
* Then reboot.

The screen still turns black when the lid is closed (must be a hardware thing) and if I suspend the machine manually it will still resume when I open the lid. But it will not sleep or turn on the screensaver when I close the lid.

Too bad the UI for this doesn't work, but at least there is this workaround!

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Fri Aug 10, 2018 9:35 pm
by exiteden
Thanks for this post, everyone.

I've been having trouble with my system freezing and suspect it has something to do with the lock screen. I don't know if the freezing issue is fixed, but I was trying to disable the lock screen everywhere so I was going crazy when I couldn't disable lock after lid close. I appreciate the help from you all!

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Mon Aug 13, 2018 3:49 am
by bradwww
it looks like i need this fix too - can you dumb down the instructions to fix? what do you mean by edit? thanks.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Mon Oct 08, 2018 2:50 pm
by redlined
andrewsmith wrote: Wed Aug 08, 2018 2:25 pm Thanks guys!

To clarify for others who might run into this problem, this is what I had to do:

* Edit /etc/UPower/UPower.conf and change the IgnoreLid to true:

Code: Select all

IgnoreLid=true
* Then edit /etc/systemd/logind.conf, uncomment the HandleLidSwitch and change it to ignore:

Code: Select all

HandleLidSwitch=ignore
* Then reboot.

The screen still turns black when the lid is closed (must be a hardware thing) and if I suspend the machine manually it will still resume when I open the lid. But it will not sleep or turn on the screensaver when I close the lid.

Too bad the UI for this doesn't work, but at least there is this workaround!
this worked! Running LM19 cinnamon on an old laptop and main issue has been computer locks up completely every time lid is lowered too far, editing both files as @andrewsmith suggests solved it for me, thanks for both question and answer good Sir!

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Thu Nov 22, 2018 12:27 pm
by West_Training_8668
When I made the changes recommended here the screen doesn't lock but when connecting the computer to another screen and closing it I don't see the same as in the computer. Before updating to LM 19 I could close the lid and let the computer working and when I connected it to another screen and closed the lid I could see the same that I had open.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Thu Nov 22, 2018 1:25 pm
by lannatwin
I believe it is fixed now. It is working fine now for me. Nothing done on my part, other than applying all the updates.

Re: How to disable screen locking on lid closed in Cinnamon in Linux Mint 19

Posted: Tue Feb 02, 2021 4:30 pm
by darksidebadman
This worked also in Peppermint 10! Thanks!
andrewsmith wrote: Wed Aug 08, 2018 2:25 pm Thanks guys!

To clarify for others who might run into this problem, this is what I had to do:

* Edit /etc/UPower/UPower.conf and change the IgnoreLid to true:

Code: Select all

IgnoreLid=true
* Then edit /etc/systemd/logind.conf, uncomment the HandleLidSwitch and change it to ignore:

Code: Select all

HandleLidSwitch=ignore
* Then reboot.

The screen still turns black when the lid is closed (must be a hardware thing) and if I suspend the machine manually it will still resume when I open the lid. But it will not sleep or turn on the screensaver when I close the lid.

Too bad the UI for this doesn't work, but at least there is this workaround!