You are not logged in.
I have xfce4-screensaver set to 10 minutes as you can see in the screenshot (https://imgdrop.io/image/JcNgU). After the screensaver has activated I get back to my session and I am presented with the greeter login twice despite the screensaver preferences are all off (https://imgdrop.io/image/JcyBt).
Here is the PAM file for xfce4-screensaver:
[me@archlinux: ~ 22:42]$ cat /etc/pam.d/xfce4-screensaver
auth include system-auth
-auth optional pam_gnome_keyring.soIf I comment the two lines above the greeter login appears only once.
Here are the contents of /etc/pam.d/system-auth that is in the first line of the file above.
[me@archlinux: ~ 22:43]$ cat /etc/pam.d/system-auth
#%PAM-1.0
auth required pam_faillock.so preauth
# Optionally use requisite above if you do not want to prompt for the password
# on locked accounts.
-auth [success=2 default=ignore] pam_systemd_home.so
auth [success=1 default=bad] pam_unix.so try_first_pass nullok
auth [default=die] pam_faillock.so authfail
auth optional pam_permit.so
auth required pam_env.so
auth required pam_faillock.so authsucc
# If you drop the above call to pam_faillock.so the lock will be done also
# on non-consecutive authentication failures.
-account [success=1 default=ignore] pam_systemd_home.so
account required pam_unix.so
account optional pam_permit.so
account required pam_time.so
-password [success=1 default=ignore] pam_systemd_home.so
password required pam_unix.so try_first_pass nullok shadow
password optional pam_permit.so
-session optional pam_systemd_home.so
session required pam_limits.so
session required pam_unix.so
session optional pam_permit.soAny ideas why I am being asked for user password twice or even once?
Last edited by mperrakis (2025-03-19 16:32:15)
Offline
If I comment the two lines above the greeter login appears only once.
Which one is responsible for the second request? pam_gnome_keyring?
I'd try to enable the lock screen but disable it for the screensaver, maybe there's a wrong default code path.
Online
Ok... been trying some things out and I think I finally got it.
Basically, I uncommented the commented lines in /etc/pam.d/xfce4-screensaver and then I enabled the lock for the screensaver, as it occurs before the lock for system sleep, and disabled system sleep lock. With this config I get asked for user password only once.
Thanks for the help. Will mark it as [SOLVED].
Offline