<NO LONGER Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

<NO LONGER Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by Huecuva » Sat Oct 20, 2018 9:15 pm

So I'm using Mint 19 with Cinnamon 3.8.9. I have my screensaver set to activate after 15 minutes with a 30 second delay to lock after the screensaver activates. When I first installed this, I recall that it worked except when I had Kodi open in full screen. Or maybe just when I had it open at all. I figured "Okay, media program preventing screensaver. That's fine." Now I don't know if there have been updates or something that changed things, but my computer never locks anymore, even if Kodi isn't running at all. I can leave the thing alone for hours and come back, turn my monitor on and there's my desktop, completely unlocked. I honestly don't even know if the screensaver even activates. I will update this thread when I determine the answer to that question. I recall having a similar issue with Cinnamon in Mint 18 as well. Why does Cinnamon always have lockscreen issues? Does anyone know how to solve this?

Thanks.
Last edited by Huecuva on Mon Apr 15, 2019 7:48 pm, edited 2 times in total.

User avatar
smurphos
Level 10
Level 10
Posts: 3253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Mint 19 with Cinnamon doesn't lock on screensaver

Post by smurphos » Sat Oct 20, 2018 11:39 pm

There has been a recent update to Cinnamon-Screensaver. This was to fix a bug with power management setting related to closing a laptop-lid not being honoured and causing unwanted locking for some users.

Some quick troubleshooting tests.

For troubleshooting purposes temporarily set your Screensaver settings to 1 minute and lock immediately. Does that work?
Also test 1 minute and lock after 15 seconds. Does that work?

if not...

Does the keyboard shorcut Ctrl-Alt-L lock your session?

If not does

cinnamon-screensaver-command -l from the terminal lock the screen. If not does it produce any error messages.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: Mint 19 with Cinnamon doesn't lock on screensaver

Post by Huecuva » Sun Oct 21, 2018 2:59 pm

Hey smurphos, thanks for the response. To answer your questions, the screensaver does not even activate at all. Needless to say, neither does the screen lock whether I have it set to lock immediately or after 15 seconds. Ctrl-Alt-L does work, however.
Last edited by Huecuva on Sun Oct 21, 2018 3:14 pm, edited 1 time in total.

User avatar
smurphos
Level 10
Level 10
Posts: 3253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Mint 19 with Cinnamon doesn't lock on screensaver

Post by smurphos » Sun Oct 21, 2018 3:04 pm

Try the terminal command as well.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: Mint 19 with Cinnamon doesn't lock on screensaver

Post by Huecuva » Sun Oct 21, 2018 3:15 pm

The terminal command also works.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: Mint 19 with Cinnamon doesn't lock on screensaver

Post by Huecuva » Sun Oct 21, 2018 9:05 pm

You know, now that I notice it, I have my power settings set to turn the display off after 30 minutes and it doesn't do that, either.

User avatar
smurphos
Level 10
Level 10
Posts: 3253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Mint 19 with Cinnamon doesn't lock on screensaver

Post by smurphos » Sun Oct 21, 2018 10:06 pm

A few other things to try.

Any ownership issues in your home? Does find $HOME ! -user $USER return any output? If so run sudo chown -R $USER:$USER $HOME to correct. Reboot - tweak some settings for the Screensaver (and/or Power Settings) Does it make any difference?

Do the issues also occur if you try a new user account?

Do you routinely leave a menu open (application, context or panel) when leaving the computer - there is a known bug that will prevent the screensaver kicking in if there is a an open menu on the screen.

A reinstall might help - apt reinstall cinnamon-screensaver

A search through the logs may be enlightening - journalctl | grep cinnamon-screensaver

Finally - killing the screensaver and launching in debug mode might produce some useful output.

cinnamon-screensaver-command -e && cinnamon-screensaver --debug
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: Mint 19 with Cinnamon doesn't lock on screensaver

Post by Huecuva » Mon Oct 22, 2018 8:00 pm

Thank you very much, smurphos. I tried that find $HOME ! -user $USER command and it did spit out some stuff. I then used your suggested fix: sudo chown -R $USER:$USER $HOME. It did its thing and then I tried the first command again to which there was no longer any response. I rebooted and it seems to have rectified the issue. I still haven't tested to see if the display will power off after 30 minutes, but I don't see why it wouldn't, now. It seems like it would be a related issue. I'll let you know if it doesn't, though.

User avatar
smurphos
Level 10
Level 10
Posts: 3253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: <Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by smurphos » Tue Oct 23, 2018 12:28 am

No worries you are welcome - it might have been ~/.config/dconf/user under wrong ownership - its the backend settings database.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: <Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by Huecuva » Mon Oct 29, 2018 8:49 pm

I see. Interesting. Well, the monitor seems to be getting turned off when it should be. Everything's working as it should, now. Thanks again, mate.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: <Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by Huecuva » Mon Apr 15, 2019 7:48 pm

I didn't want to start a new thread for this so I dragged up this old one. I've altered the title.

This issue is persisting. The chown command suggested by smurphos still fixes this issue, but it doesn't last. Within days, Cinnamon stops locking when left alone. Even though the find command yields no results, I decided to try the chown command anyway. The lock screen started working properly but just a few days later it was no longer locking. It's kind of annoying to have to keep running that chown command. Does anyone know why this might keep recurring and why it's happening if the find command doesn't find anything and why the chown command is temporarily fixing it?

Thanks.

User avatar
smurphos
Level 10
Level 10
Posts: 3253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: <NO LONGER Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by smurphos » Tue Apr 16, 2019 1:40 am

Next time it happens try this variation of the chown command. It should report back anything it's actually changed. If it fixes the issue albeit temporarily but doesn't report back anything that would be very odd. If it does report something please paste that back to your next reply. That should give a clue as to what is causing the issue for your machine.

Code: Select all

sudo chown -Rc $USER:$USER $HOME
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: <NO LONGER Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by Huecuva » Tue Apr 16, 2019 7:32 pm

I ran the chown command last night and it didn't seem to actually fix the issue even temporarily, as it wasn't locked today when I got home from work.

I just ran that -Rc variation on the chown command and it sure did spit out some feedback. Way too much to post in any form. I think it changed the owner of everything in the user home folder (including everything on a mounted NTFS storage drive) from user:root to user:user. I'm not sure why that was necessary as the chown command I ran last night should have already done that. Does something keep changing the group ownership of my home folder to root? Why would it do that?

Actually on closer examination it seems the only thing it changed the ownership of was the contents of the mounted NTFS storage drive.

User avatar
smurphos
Level 10
Level 10
Posts: 3253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: <NO LONGER Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by smurphos » Wed Apr 17, 2019 12:07 am

Huecuva wrote:
Tue Apr 16, 2019 7:32 pm
I ran the chown command last night and it didn't seem to actually fix the issue even temporarily, as it wasn't locked today when I got home from work.

I just ran that -Rc variation on the chown command and it sure did spit out some feedback. Way too much to post in any form. I think it changed the owner of everything in the user home folder (including everything on a mounted NTFS storage drive) from user:root to user:user. I'm not sure why that was necessary as the chown command I ran last night should have already done that. Does something keep changing the group ownership of my home folder to root? Why would it do that?

Actually on closer examination it seems the only thing it changed the ownership of was the contents of the mounted NTFS storage drive.
I don't think the NTFS partition ownership would be a factor but you might want to review how you mount it to avoid the issue of it being mounted with root ownership in the first place - viewtopic.php?f=50&t=289465
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: <NO LONGER Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by Huecuva » Wed Apr 17, 2019 8:16 pm

I don't think the NTFS drive should be a factor, either. And it is mounted and assigned under the ownership with UID=myusername in the fstab at startup. Should I also add gid? is that a thing or is it something else? Also, the computer hasn't been rebooted since the last time I ran the chown command.

However, that seems to be irrelevant as it still was not locked when I got home from work today. There must be something else preventing the machine from locking. I have Kodi open, but it is not full screen. I'm pretty sure I've tried closing it and it still doesn't lock properly, but I will try it again.

EDIT: Apparently GID is a thing.

Huecuva
Level 2
Level 2
Posts: 69
Joined: Sun May 08, 2016 2:14 pm

Re: <NO LONGER Solved> Mint 19 with Cinnamon doesn't lock on screensaver,

Post by Huecuva » Thu Apr 18, 2019 11:18 pm

Well, now it seems to be locking. That's weird. I'll post if anything changes.

Post Reply

Return to “Cinnamon”