linuxmint / cinnamon-screensaver

The Cinnamon screen locker and screensaver program
GNU General Public License v2.0
151 stars 86 forks source link

Issue with lockscreen on resuming from suspend #342

Open jdtanner opened 4 years ago

jdtanner commented 4 years ago
 * Cinnamon-Screensaver version (cinnamon-screensaver --version): 4.6.0
 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...): Mint 20
 * Graphics hardware *and* driver used:

Graphics:  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Xiaomi driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:1916 
           Device-2: NVIDIA GM108M [GeForce 940MX] vendor: Xiaomi driver: nvidia v: 440.100 
           bus ID: 01:00.0 chip ID: 10de:134b 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia 
           unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.0.8 
           direct render: Yes 

 * 32 or 64 bit: 64 bit

Issue Taken from: https://forums.linuxmint.com/viewtopic.php?p=1842818#p1842818

I've found that Linux Mint 20, after i suspend the laptop by closing the lid and i have actived the screensaver (and lock screen) after suspend, the screensaver isn't showed, nor the box for introduce user/pass, the cinnamon desktop is showed and i can move the mouse, but i cann't do anything more... nothing is running after suspend with screensaver activated (lock screen) after suspend.

To add to the above, blindly typing your password and pressing enter will present you with a functional desktop. There are multiple other reports of similar behaviour on the forums, but nobody appears to have posted a bug report.

Steps to reproduce

Expected behaviour

Upon waking from suspend, interactive lockscreen should be presented.

Other information

System logs seem to be catching the following error from cinnamon-screensaver (screenshot below):

pam_ecryptfs: seteuid error

Screenshot from 2020-07-09 21-08-18

Mintulix commented 4 years ago

It's here again... #288 #289

leigh123linux commented 4 years ago

Duplicate.

jdtanner commented 4 years ago

I'm a little confused...what is it a duplicate of? 288 and 289 are both closed?

Mintulix commented 4 years ago

Hi @leigh123linux, you misunderstood my comment. This is not duplicate. It's an ancient error that was fixed a long time ago and now reappeared in LM20. At least it seems to be the same error. Please reopen it. Log in is invisible when suspend was started by closing the notebook lid.

leigh123linux commented 4 years ago

Try removing ecryptfs-utils, it breaks almost all screensavers

https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/1085706

mtwebster commented 4 years ago

The setuid error is old and unrelated to this current issue.

Can you run:

dconf dump /org/cinnamon/ > some_filename

and pastebin the file? Redact any personal info if you'd like. I mainly want to look at power and screensaver settings.

The screensaver has had pretty much no changes from 4.4->4.6, other than build-related things, but I'll have a look at that as well, just in case. On the other hand, the entire package base has changed underneath us, so who knows what surprises may await.

mtwebster commented 4 years ago

Can you guys also let me know how you got to Mint 20 - upgrade or fresh install. Thanks

jdtanner commented 4 years ago

Hi there,

dconf output attached

Fresh install of Mint 20. I am running the latest mainline kernel, but the same issue happens with the current Mint kernel.

dconf.txt

Mintulix commented 4 years ago

@leigh123linux I removed ecryptfs-utils, restarted notebook, closed lid, opend it up again after a few seconds - and both errors were gone:

@jdtanner please check this also to be sure.

@mtwebster It was an upgrade from LM 19.3 with Clem's tutorial. If ecryptfs-utils is the culprit, you could install it yourself and see what's happening.

I don't know if I installed ecryptfs-utils by myself or if it's in the normal install. I used to encrypt a single folder in /home with ecryptfs but switched to gocryptfs a while ago...

mtwebster commented 4 years ago

It is installed, but I can't reproduce this.

Mintulix commented 4 years ago

Hmmm, I reinstalled ecryptfs-utils to countercheck:

mtwebster commented 4 years ago

Is your home encrypted?

Mintulix commented 4 years ago

/home is not encrypted, just a single folder in /home/... with gocryptfs

jdtanner commented 4 years ago

No encryption here...standard install only.

Mintulix commented 4 years ago

I didn't had the invisible login error since 2 days. Could it have been fixed by cinnamon-desktop 4.6.3? Perhaps I didn't restart my notebook after the update immediately, so I saw the effect one day later... Whatever the reason is - for me this seems to be gone on both notebooks.

davidgfnet commented 4 years ago

Hey there! Just wanted to report that this happens to me as well, using Fedora 32, so I suspect is not a Mint specific issue. I do not have any weird things installed so far, it happened pretty much since the fresh install. My cinnamon version is 4.6.5 and I have a Dell XPS9350.

alsar commented 4 years ago

It seems that this is not happening anymore on Cinnamon 4.6.6.

davidgfnet commented 4 years ago

I updated to 4.6.6 a couple days ago IIRC. Still happening. In Fedora cinnamon-screensaver is at 4.6.0-1 version, which seems the latest version in this repo (there's only 2 commits after that tag).

areographe commented 4 years ago

I'm using Cinnamon 4.6.6 on Manjaro and the same problem has just started occurring for me.

Cinnamon-screensaver version: 4.6.0
Distribution: Manjaro Cinnamon

Graphics:  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Lenovo driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:1916 
           Display: x11 server: X.Org 1.20.8 driver: intel unloaded: modesetting 
           alternate: fbdev,vesa resolution: 1920x1080~60Hz, 2560x1440~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.1.3 
           direct render: Yes 

switching to tty2 and then back 'solves' it, but it happens every time my screen locks, either as part of the screensaver or if I manually lock it.

silocoder commented 4 years ago

cinnamon-screensaver-pam-helper: pam_ecryptfs: seteuid error

I reproduce the same error by just doing tail -f /var/log/syslog and in another terminal cinnamon-screensaver-command -a and log back in.

Though I don't have any issues with functionality.

davidgfnet commented 4 years ago

Just noting here that I doi not use any type of ecryptfs or similar software.

tkhyn commented 4 years ago

Hi, I can confirm the same observations as @Mintulix on Cinnamon 4.6.7 after a manual upgrade from 19.3 (mintupgrade did not work, I ran into https://github.com/linuxmint/mintupgrade/issues/27), on a LUKS encrypted partition. Login screen was frozen on resume. apt remove ecryptfs-utils fixed it, and after apt install ecryptfs-utils it still worked...

EDIT 28/08/2020: after a little more than a week of experiencing no issue it happened again, so I removed ecryptfs-utils for good

jasmith79 commented 3 years ago

Experiencing this issue. Fresh install of linux mint 20, cinnamon 4.6.7, kernel 5.4.0-48. Ran system update, rebooted, same problem. Removed ecryptfs-utils, rebooted, same problem. Every time I close the lid unless I manually lock the screen first. Laptop is an HP zbook if that matters. No encrypted partitions or folders.

xavxa commented 3 years ago

Hi, same problem. Kernel: 5.8.0-23-generic x86_64 bits: 64 Desktop: Cinnamon 4.6.7 wm: muffin dm: LightDM Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal

astromatt42 commented 3 years ago

I am experiencing the same issue in LM 20 Kernel 5.4.0.-52. This seems to be a problem with rendering the lock screen. If I either type in my password blindly or I hover the mouse over the part of the screen where the password box would be, I get a cursor and can enter the password that way.

GopherJ commented 3 years ago

I'm experincing this issue as well in HW matebook x pro Kernel 5.4.0-60, I can fix it by hitting laptop's poweroff button, then it doesn't freeze anymore, I can then choose no to not shutdown/reboot

https://github.com/linuxmint/cinnamon-screensaver/issues/342#issuecomment-657100802 doesn't work for me

aspi66 commented 3 years ago

I'm experincing this issue as well in HW matebook x pro Kernel 5.4.0-60, I can fix it by hitting laptop's poweroff button, then it doesn't freeze anymore, I can then choose no to not shutdown/reboot

#342 (comment) doesn't work for me

My situation is the same, same machine. Kernel 5.4.0-65. I've just got used briefly changing screen brightness up and back down using hotkeys. So I guess the issue is something related to rerendering process.

sdlambert commented 3 years ago

I experienced this issue for quite some time on Mint 19.3 and it continues today. I'll happily offer my logs if it will help.

SeaMonkey82 commented 2 years ago

Linux Mint 20.2 (upgrade)

│Oct 31 15:04:29 earth cinnamon-screensaver-pam-helper: pam_ecryptfs: seteuid error                                                                                                                                                                                                                                                                                                                                                                                                          │
│Oct 31 15:04:39 earth cinnamon-session[6207]: WARNING: t+42973.27058s: Detected that screensaver has left the bus                                                                                                                                                                                                                                                                                                                                                                           │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Trying to connect to logind...                                                                                                                                                                                                                                                                                                                                                                                                       │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Starting screensaver...                                                                                                                                                                                                                                                                                                                                                                                                              │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Cinnamon Screensaver support not found in current theme - adding some...                                                                                                                                                                                                                                                                                                                                                             │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Successfully using logind                                                                                                                                                                                                                                                                                                                                                                                                            │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Error in sys.excepthook:                                                                                                                                                                                                                                                                                                                                                                                                             │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Original exception was:                                                                                                                                                                                                                                                                                                                                                                                                              │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Error in sys.excepthook:                                                                                                                                                                                                                                                                                                                                                                                                             │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Original exception was:                                                                                                                                                                                                                                                                                                                                                                                                              │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Error in sys.excepthook:                                                                                                                                                                                                                                                                                                                                                                                                             │
│Oct 31 15:04:39 earth org.cinnamon.ScreenSaver[15028]: Original exception was:                                                                                                                                                                                                                                                                                                                                                                                                              

dconf.txt

EricVanCaenenberghe commented 2 years ago

The oldest occurrence in my logs dates from 8 November 2021 (Linux Mint 20.2), still present today Mint 20.3. Log detail details log System information Kernel 5.4.0-96 Cinnamon 5.2.7 result dconf dump result dconf dump cinnamon.txt

Melaron commented 2 months ago

I believe that I have encountered the same issue. Lock screen appears invisible but blind typing password allows me to unlock.

Some of my system info:

Linux Mint 21.3 Virginia
cinnamon-screensaver 6.0.3
kernel: 5.15.0-113-generic

journalctl entries after waking my laptop up:

Jul 10 12:10:35 melaron-NS5x-NS7xPU cinnamon-screensaver-pam-helper[100152]: pam_ecryptfs: seteuid error
Jul 10 12:10:35 melaron-NS5x-NS7xPU cinnamon-screensaver-pam-helper[100152]: gkr-pam: unlocked login keyring
Jul 10 12:10:49 melaron-NS5x-NS7xPU wpa_supplicant[952]: wlp43s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-51 noise=9999 txrate=216000
Jul 10 12:11:05 melaron-NS5x-NS7xPU org.cinnamon.ScreenSaver[99955]: AccountsService ready
Jul 10 12:11:05 melaron-NS5x-NS7xPU cinnamon-session[3299]: WARNING: t+21272.30494s: Detected that screensaver has left the bus
Jul 10 12:11:05 melaron-NS5x-NS7xPU org.cinnamon.ScreenSaver[99955]: Error in sys.excepthook:
Jul 10 12:11:05 melaron-NS5x-NS7xPU org.cinnamon.ScreenSaver[99955]: Original exception was:
Jul 10 12:11:05 melaron-NS5x-NS7xPU org.cinnamon.ScreenSaver[99955]: Error in sys.excepthook:
Jul 10 12:11:05 melaron-NS5x-NS7xPU org.cinnamon.ScreenSaver[99955]: Original exception was:
Jul 10 12:11:05 melaron-NS5x-NS7xPU org.cinnamon.ScreenSaver[99955]: Error in sys.excepthook:
Jul 10 12:11:05 melaron-NS5x-NS7xPU org.cinnamon.ScreenSaver[99955]: Original exception was:

Using the shortcut Ctrl+Alt+L to lock the screen and unlock also causes this repeatably.

Possibly relevant:

Please let me know if I can provide more information or help in any way. Thank you for your efforts thus far, @mtwebster and everyone else who has worked on this.