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

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
andrewsmith
Level 1
Level 1
Posts: 46
Joined: Thu Mar 08, 2012 10:33 pm

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

Post 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.
Digby

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

Post 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.
tothpeter

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

Post 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.
mattmint

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

Post 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.
User avatar
lannatwin
Level 3
Level 3
Posts: 129
Joined: Sat Jun 20, 2009 9:14 pm
Location: Thailand

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

Post 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.
andrewsmith
Level 1
Level 1
Posts: 46
Joined: Thu Mar 08, 2012 10:33 pm

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

Post 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.
andrewsmith
Level 1
Level 1
Posts: 46
Joined: Thu Mar 08, 2012 10:33 pm

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

Post 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.
zacktheperson

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

Post by zacktheperson »

User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

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

Post 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...
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
andrewsmith
Level 1
Level 1
Posts: 46
Joined: Thu Mar 08, 2012 10:33 pm

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

Post 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!
exiteden
Level 1
Level 1
Posts: 11
Joined: Sun Sep 07, 2014 1:22 am

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

Post 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!
bradwww

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

Post 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.
redlined

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

Post 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!
West_Training_8668
Level 2
Level 2
Posts: 71
Joined: Tue Mar 29, 2016 8:41 am

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

Post 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.
User avatar
lannatwin
Level 3
Level 3
Posts: 129
Joined: Sat Jun 20, 2009 9:14 pm
Location: Thailand

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

Post 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.
darksidebadman
Level 1
Level 1
Posts: 1
Joined: Tue Feb 02, 2021 4:26 pm

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

Post 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!
Locked

Return to “Cinnamon”