linuxmint / cinnamon-screensaver

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

Screensaver is stuck sometimes #181

Open ingtarius opened 7 years ago

ingtarius commented 7 years ago

Hello! I have some trouble sometimes - when screen is locked, it show last open window (web-browser for example) and does not response for any keys or mouse events. No password window or same. In ~/.xsession-errors i can find some errors:

(cinnamon-screensaver-main.py:11539): Gdk-CRITICAL **: gdk_device_get_n_axes: assertion 'gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD' failed

(cinnamon-screensaver-main.py:11539): Gdk-CRITICAL **: gdk_device_get_n_axes: assertion 'gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD' failed

(cinnamon-screensaver-main.py:11539): Gdk-CRITICAL **: gdk_device_get_n_axes: assertion 'gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD' failed
cinnamon-session[11303]: WARNING: t+6256.06382s: Detected that screensaver has left the bus
[11546:14473:1219/105033:ERROR:object_proxy.cc(583)] Failed to call method: org.freedesktop.NetworkManager.GetDevices: object_path= /org/freedesktop/NetworkManager: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.freedesktop.NetworkManager.service not found.
Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
Window manager warning: Got a request to focus 0x3200004 (username@) with a timestamp of 0.  This shouldn't happen!
[11546:14473:1219/105421:ERROR:object_proxy.cc(583)] Failed to call method: org.freedesktop.NetworkManager.GetDevices: object_path= /org/freedesktop/NetworkManager: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.freedesktop.NetworkManager.service not found.
[11546:14473:1219/105622:ERROR:object_proxy.cc(583)] Failed to call method: org.freedesktop.NetworkManager.GetDevices: object_path= /org/freedesktop/NetworkManager: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.freedesktop.NetworkManager.service not found.

Only way is kill process and logout.

mtwebster commented 7 years ago

What distro? More details please.

ingtarius commented 7 years ago

Archlinux, kernel 4.8.13-1-ARCH and cinnamon-screensaver version 3.2.2-1 from official repo

ghost commented 7 years ago

I have just had this same problem, on Mint 18.1. I switched from one user to another, logged out of the second user, and then the lockscreen hung for a while, then offered me a password prompt, and then hung permanently. Not good. Clearly, this stuff is important functionality - it needs to work.

I find it hard to find anything relevant in the log files, but then I do find those files a bit overwhelming (partly because they contain various warnings and errors that I've found it hard to get rid off - some are well known from upstream - and partly because I've yet to find a decent log viewer program).

YetAnotherMatt commented 7 years ago

I have a similar issue to CottonEaster, again on Linux Mint 18.1/Cinnamon: Log in as user one; suspend computer; Came out of sleep (having been logged in as user 1); login as user 2; logged out as user 2; entered the password for the original user at the lock screen; then got the screensaver and was unable to progress. After a couple of attempts I shut down my system (hard power-off) and rebooted. In case it's relevant, the first users account is encrypted, but not the second.

/var/log/auth.log: (excerpt from resuming from sleep onward)

Jul 18 08:37:46 Matts-Z50 systemd-logind[1022]: Operation 'sleep' finished.
Jul 18 08:38:10 Matts-Z50 cinnamon-screensaver-pam-helper: gkr-pam: unlocked login keyring
Jul 18 08:38:21 Matts-Z50 mdm[23061]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jul 18 08:38:21 Matts-Z50 mdm[23061]: PAM adding faulty module: pam_kwallet.so
Jul 18 08:38:22 Matts-Z50 mdm[23061]: pam_succeed_if(mdm:auth): requirement "user ingroup nopasswdlogin" not met by user "user-1"
Jul 18 08:38:25 Matts-Z50 mdm[23061]: pam_unix(mdm:auth): conversation failed
Jul 18 08:38:25 Matts-Z50 mdm[23061]: pam_unix(mdm:auth): auth could not identify password for [user-1]
Jul 18 08:38:25 Matts-Z50 mdm[23061]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jul 18 08:38:25 Matts-Z50 mdm[23061]: PAM adding faulty module: pam_kwallet.so
Jul 18 08:38:25 Matts-Z50 mdm[23061]: pam_succeed_if(mdm:auth): requirement "user ingroup nopasswdlogin" not met by user "user-2"
Jul 18 08:38:28 Matts-Z50 mdm[23061]: pam_unix(mdm:session): session opened for user user-2 by (uid=0)
Jul 18 08:38:28 Matts-Z50 systemd-logind[1022]: New session c2 of user user-2.
Jul 18 08:38:29 Matts-Z50 systemd: pam_unix(systemd-user:session): session opened for user user-2 by (uid=0)
Jul 18 08:38:29 Matts-Z50 mdm[23061]: pam_ck_connector(mdm:session): nox11 mode, ignoring PAM_TTY :20
Jul 18 08:38:32 Matts-Z50 polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.107 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
Jul 18 08:39:01 Matts-Z50 CRON[23889]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 18 08:39:01 Matts-Z50 CRON[23889]: pam_unix(cron:session): session closed for user root
Jul 18 08:48:15 Matts-Z50 polkitd(authority=local): Unregistered Authentication Agent for unix-session:c2 (system bus name :1.107, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)
Jul 18 08:48:17 Matts-Z50 mdm[23061]: pam_unix(mdm:session): session closed for user user-2
Jul 18 08:50:24 Matts-Z50 cinnamon-screensaver-pam-helper: gkr-pam: unlocked login keyring
Jul 18 08:51:16 Matts-Z50 cinnamon-screensaver-pam-helper: gkr-pam: unlocked login keyring
Jul 18 08:52:42 Matts-Z50 systemd-logind[1080]: New seat seat0.
Jul 18 08:52:54 Matts-Z50 mdm[1922]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jul 18 08:52:54 Matts-Z50 mdm[1922]: PAM adding faulty module: pam_kwallet.so
Jul 18 08:52:54 Matts-Z50 mdm[1922]: pam_succeed_if(mdm:auth): requirement "user ingroup nopasswdlogin" not met by user "user-2"
Jul 18 08:53:00 Matts-Z50 mdm[1922]: pam_unix(mdm:auth): conversation failed
Jul 18 08:53:00 Matts-Z50 mdm[1922]: pam_unix(mdm:auth): auth could not identify password for [user-2]
Jul 18 08:53:00 Matts-Z50 mdm[1922]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jul 18 08:53:00 Matts-Z50 mdm[1922]: PAM adding faulty module: pam_kwallet.so
Jul 18 08:53:00 Matts-Z50 mdm[1922]: pam_succeed_if(mdm:auth): requirement "user ingroup nopasswdlogin" not met by user "user-1"
Jul 18 08:53:04 Matts-Z50 mdm[1922]: pam_unix(mdm:session): session opened for user user-1 by (uid=0)
Jul 18 08:53:04 Matts-Z50 systemd-logind[1080]: New session c1 of user user-1.
Jul 18 08:53:04 Matts-Z50 systemd: pam_unix(systemd-user:session): session opened for user user-1 by (uid=0)
Jul 18 08:53:04 Matts-Z50 mdm[1922]: pam_ck_connector(mdm:session): nox11 mode, ignoring PAM_TTY :0
Jul 18 08:53:06 Matts-Z50 polkitd(authority=local): Registered Authentication Agent for unix-session:c1 (system bus name :1.41 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
Jul 18 08:53:25 Matts-Z50 polkitd(authority=local): Operator of unix-session:c1 FAILED to authenticate to gain authorization for action com.ubuntu.screenresolution.mechanism.prime for unix-process:3502:4797 [python3 /usr/share/screen-resolution-extra/nvidia-prime.py nvidia] (owned by unix-user:user-1)
Jul 18 08:53:37 Matts-Z50 polkit-agent-helper-1[3555]: pam_ecryptfs: pam_sm_authenticate: /home/user-1 is already mounted
Jul 18 08:53:37 Matts-Z50 polkitd(authority=local): Operator of unix-session:c1 successfully authenticated as unix-user:user-1 to gain TEMPORARY authorization for action com.ubuntu.screenresolution.mechanism.prime for unix-process:3554:5750 [python3 /usr/share/screen-resolution-extra/nvidia-prime.py nvidia] (owned by unix-user:user-1)
Jul 18 08:53:44 Matts-Z50 polkit-agent-helper-1[3585]: pam_ecryptfs: pam_sm_authenticate: /home/user-1 is already mounted
Jul 18 08:53:44 Matts-Z50 polkitd(authority=local): Operator of unix-session:c1 successfully authenticated as unix-user:user-1 to gain TEMPORARY authorization for action com.ubuntu.screenresolution.mechanism.prime for unix-process:3584:6464 [python3 /usr/share/screen-resolution-extra/nvidia-prime.py intel] (owned by unix-user:user-1)
Jul 18 08:53:55 Matts-Z50 polkitd(authority=local): Unregistered Authentication Agent for unix-session:c1 (system bus name :1.41, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)
Jul 18 08:53:56 Matts-Z50 mdm[1922]: pam_unix(mdm:session): session closed for user user-1
Jul 18 08:53:59 Matts-Z50 mdm[3714]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jul 18 08:53:59 Matts-Z50 mdm[3714]: PAM adding faulty module: pam_kwallet.so
Jul 18 08:53:59 Matts-Z50 mdm[3714]: pam_succeed_if(mdm:auth): requirement "user ingroup nopasswdlogin" not met by user "user-1"
Jul 18 08:54:05 Matts-Z50 mdm[3714]: pam_unix(mdm:session): session opened for user user-1 by (uid=0)
Jul 18 08:54:05 Matts-Z50 systemd-logind[1080]: New session c2 of user user-1.
Jul 18 08:54:05 Matts-Z50 mdm[3714]: pam_ck_connector(mdm:session): nox11 mode, ignoring PAM_TTY :0
Jul 18 08:54:06 Matts-Z50 polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.62 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
Jul 18 08:54:15 Matts-Z50 gnome-keyring-daemon[3793]: couldn't allocate secure memory to keep passwords and or keys from being written to the disk
Jul 18 08:54:18 Matts-Z50 gnome-keyring-daemon[3793]: asked to register item /org/freedesktop/secrets/collection/login/1, but it's already registered
Jul 18 08:54:19 Matts-Z50 gnome-keyring-daemon[3793]: asked to register item /org/freedesktop/secrets/collection/login/1, but it's already registered
Jul 18 09:04:27 Matts-Z50 sudo: user-1 : TTY=unknown ; PWD=/home/user-1 ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/checkAPT.py
Jul 18 09:04:27 Matts-Z50 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Jul 18 09:04:31 Matts-Z50 sudo: pam_unix(sudo:session): session closed for user root
Jul 18 09:06:49 Matts-Z50 cinnamon-screensaver-pam-helper: gkr-pam: unlocked login keyring
Jul 18 09:09:01 Matts-Z50 CRON[6673]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 18 09:09:01 Matts-Z50 CRON[6673]: pam_unix(cron:session): session closed for user root
Jul 18 09:14:10 Matts-Z50 polkit-agent-helper-1[6806]: pam_ecryptfs: pam_sm_authenticate: /home/user-1 is already mounted
Jul 18 09:14:10 Matts-Z50 polkitd(authority=local): Operator of unix-session:c2 successfully authenticated as unix-user:user-1 to gain ONE-SHOT authorization for action com.ubuntu.pkexec.synaptic for unix-process:6802:129071 [/bin/sh -c pkexec /usr/sbin/synaptic --hide-main-window --non-interactive --parent-window-id 65011741 -o Synaptic::closeZvt=true --progress-str "Please wait, this can take some time" --finish-str "Update is complete" --set-selections-file /tmp/tmpclvsm8_l] (owned by unix-user:user-1)
Jul 18 09:14:10 Matts-Z50 pkexec: pam_unix(polkit-1:session): session opened for user root by (uid=1001)
Jul 18 09:14:10 Matts-Z50 pkexec: pam_systemd(polkit-1:session): Cannot create session: Already running in a session
Jul 18 09:14:10 Matts-Z50 pkexec: pam_ck_connector(polkit-1:session): cannot determine display-device
Jul 18 09:14:10 Matts-Z50 pkexec[6803]: user-1: Executing command [USER=root] [TTY=unknown] [CWD=/home/user-1] [COMMAND=/usr/sbin/synaptic --hide-main-window --non-interactive --parent-window-id 65011741 -o Synaptic::closeZvt=true --progress-str Please wait, this can take some time --finish-str Update is complete --set-selections-file /tmp/tmpclvsm8_l]
Jul 18 09:15:01 Matts-Z50 CRON[6959]: pam_unix(cron:session): session opened for user user-1 by (uid=0)
Jul 18 09:15:01 Matts-Z50 CRON[6959]: pam_unix(cron:session): session closed for user user-1
Jul 18 09:16:36 Matts-Z50 sudo: user-1 : TTY=pts/0 ; PWD=/home/user-1 ; USER=root ; COMMAND=/bin/cat /var/log/auth.log
Jul 18 09:16:36 Matts-Z50 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)