You are not logged in.

#1 2023-03-06 20:41:56

cpdf98
Member
Registered: 2022-08-22
Posts: 6

Lightdm doesnt recognize password after computer has been asleep

This started a few months ago. If my computer has been locked for a while and/or it goes into sleep mode after being left idle, then when i try to log back in it wont recognize the password. It will let me type it in just fine, but it will say the password is incorrect. From that point I have to restart my computer and only then will it recognize the password.

I have since distro hopped to see if the problem would persist on other distros, and I noticed the same issue would happen on specifically arch-based distributions. I have tried vanilla arch, endeavourOS, and manjaro and each one had that problem. I did not have the problem happen to me when using mint however. I highly doubt if this is relevant but i use cinnamon as my DE. I have not tried using other desktop environments but I doubt that would change anything.

Anyone else encountered this and know how to solve it?

Offline

#2 2023-03-06 20:56:15

yaourtiere
Member
Registered: 2023-03-06
Posts: 5
Website

Re: Lightdm doesnt recognize password after computer has been asleep

Maybe a stupid response, but always worth checking.
Do you use a non-QWERTY key-layout ? You could have a misconfiguration somehow on your keymap.

Maybe you were saying that the layout was OK, in that case sorry for the obvious answer.


Moi être francophone. I do some stupid english errors, sorry not sorry.

Offline

#3 2023-03-06 21:03:43

cpdf98
Member
Registered: 2022-08-22
Posts: 6

Re: Lightdm doesnt recognize password after computer has been asleep

I never touched the key layout in any distro i used, so they would all be the standard US layout

Offline

#4 2023-03-06 22:40:11

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

Set the password to something layout-safe ("12345") and see whether you can reproduce the problem w/ that.
Condition and symptoms indeed very much suggest that this is the problem.

Online

#5 2023-03-07 00:45:37

cpdf98
Member
Registered: 2022-08-22
Posts: 6

Re: Lightdm doesnt recognize password after computer has been asleep

seth wrote:

Set the password to something layout-safe ("12345") and see whether you can reproduce the problem w/ that.
Condition and symptoms indeed very much suggest that this is the problem.

Tried that. It still wouldnt recognize the password

Offline

#6 2023-03-07 06:52:40

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

Please post a complete system journal for a boot covering this. Eg. for the previous one:

sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st

The locker probably uses, but is technically not lightdm and it might be interesting to see what pam is complaining.

You may also not have to reboot, zapping the server ( https://wiki.archlinux.org/title/Xorg/K … +Backspace ) or heading to a different VT and killing it (ctrl+alt+f3, can you log in there?) might do as well (nb. that you'll still lose your session in either case)

Online

#7 2023-04-27 14:59:44

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

(readded so others can better find this)

sudo journalctl -b -1
.. cinnamon-screensaver-pam-helper[..]: pam_unix(cinnamon-screensaver:auth): conversation failed
.. cinnamon-screensaver-pam-helper[..]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]

Last edited by onetimehelper (2023-04-29 19:17:15)

Offline

#8 2023-04-27 15:12:53

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

and add this line at the top:

Do you understand what that does?
You basically just removed all restrictions from sudo.
=> Don't. This is a terrible idea.

Also I don't see how pam_sudo would affect lightdm or the cinnamon-screensaver.
Please post your journal, see #6

Online

#9 2023-04-29 12:32:47

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

Update: Nevermind, that last hack doesn't work and is reproducible: When I go afk, I turn off my S95B OLED TV as monitor by pressing the off button on its remote and when I come back, lightdm greeter says wrong password. Changing the greeter from `lightdm-gtk-greeter` to `lightdm-slick-greeter` didn't help. My issue might be related to https://bbs.archlinux.org/viewtopic.php?id=279082.  The last hack might or might not work when I don't turn off the TV. I'm gonna test that.

Last edited by onetimehelper (2023-04-30 07:59:09)

Offline

#10 2023-04-29 13:01:42

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

Stop messing around w/ pam_permit.so - it's a stupid idea and will only occlude the actual situation.

You can try to disable pam_homed.so - notably if you don't use systemd-homed, https://bbs.archlinux.org/viewtopic.php … 1#p2065201

Other than that, keep a rootshell open and check the condition of "faillock" and whether releasing the lock helps, https://wiki.archlinux.org/title/Securi … n_attempts

Online

#11 2023-04-29 17:05:42

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

Yes, I don't like this hack either. I did further testing: removed the insecurity line, restarted, went afk, and consciously didn't turn off my S95B TV and can still log-in. Not sure how long I'd need to be afk for it eventually to occur again, but so far so good [in getting closer to what's causing the bug]. I will test with being afk longer later.

I will try your workaround suggestions later as I would like to turn off my TV when afk.


The account is locked due to 3 failed logins.

appears as soon as when I'm back from afk, not trying to login into the greeter, but change to tty2 and just typing the username [so it's clearly not caused by me].

https://bbs.archlinux.org/viewtopic.php?id=258489

Last edited by onetimehelper (2023-04-29 19:13:04)

Offline

#12 2023-04-29 20:35:53

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

That's faillock, "deny = 0" is a workaround that more or less disables faillock.
Do you maybe use sudo in some cronjob/script?

Online

#13 2023-04-30 09:13:44

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

Here's the journalctl of what happens before auth:

sudo journalctl -b -1|cut -c 8- > ~/journal

:31:42   org.cinnamon.ScreenSaver[3120]: Trying to connect to logind...
:31:42   dbus-daemon[1192]: [session uid=1000 pid=1192] Successfully activated service 'org.cinnamon.ScreenSaver'
:31:42   org.cinnamon.ScreenSaver[3120]: Starting screensaver...
:31:42   org.cinnamon.ScreenSaver[3120]: Cinnamon Screensaver support not found in current theme - adding some...
:31:42   cinnamon-session[1181]: WARNING: t+75,05465s: Detected that screensaver has appeared on the bus
:31:42   org.cinnamon.ScreenSaver[3120]: Successfully using logind
:32:10   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:32:10   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:32:10   dbus-daemon[565]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.58' (uid=1000 pid=3148 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
:32:10   dbus-daemon[565]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
:32:10   cinnamon-screensaver-pam-helper[3148]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
:32:10   org.cinnamon.ScreenSaver[3120]: Fractional scaling active: False
:32:10   org.cinnamon.ScreenSaver[3120]: Fractional scaling active: False
:32:10   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1497924688,0-1497928528x22077) DO NOT add up, skipping change notification
:32:10   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1497924688,0-1497928528x22077) DO NOT add up, skipping change notification
:32:12   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1497924688,0-1497928528x22077) DO NOT add up, skipping change notification
:32:12   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:32:12   rtkit-daemon[1271]: Supervising 3 threads of 1 processes of 1 users.
:32:12   rtkit-daemon[1271]: Successfully made thread 3169 of process 1239 owned by '1000' RT at priority 5.
:32:12   rtkit-daemon[1271]: Supervising 4 threads of 1 processes of 1 users.
:32:12   dbus-daemon[565]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.60' (uid=1000 pid=3172 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
:32:12   dbus-daemon[565]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
:32:12   cinnamon-screensaver-pam-helper[3172]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
:32:12   org.cinnamon.ScreenSaver[3120]: Fractional scaling active: False
:32:12   cinnamon-screensaver-pam-helper[3148]: pam_unix(cinnamon-screensaver:auth): conversation failed
:32:12   cinnamon-screensaver-pam-helper[3148]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:32:17   systemd[1]: libvirtd.service: Deactivated successfully.
:32:42   cinnamon-screensaver-pam-helper[3172]: pam_unix(cinnamon-screensaver:auth): conversation failed
:32:42   cinnamon-screensaver-pam-helper[3172]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:34:27   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:34:27   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:34:28   org.cinnamon.ScreenSaver[3120]: Fractional scaling active: False
:34:28   org.cinnamon.ScreenSaver[3120]: Fractional scaling active: False
:34:28   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1497924688,0-1497928528x22077) DO NOT add up, skipping change notification
:34:28   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1497924688,0-1497928528x22077) DO NOT add up, skipping change notification
:34:28   dbus-daemon[565]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.62' (uid=1000 pid=3240 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
:34:28   dbus-daemon[565]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
:34:28   cinnamon-screensaver-pam-helper[3240]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
:34:29   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1497924688,0-1497928528x22077) DO NOT add up, skipping change notification
:34:29   org.cinnamon.ScreenSaver[3120]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:34:29   rtkit-daemon[1271]: Supervising 3 threads of 1 processes of 1 users.
:34:29   rtkit-daemon[1271]: Successfully made thread 3251 of process 1239 owned by '1000' RT at priority 5.
:34:29   rtkit-daemon[1271]: Supervising 4 threads of 1 processes of 1 users.
:34:29   dbus-daemon[565]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.64' (uid=1000 pid=3254 comm="/usr/lib/cinnamon-screensaver/cinnamon-screensaver")
:34:29   dbus-daemon[565]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
:34:29   cinnamon-screensaver-pam-helper[3254]: pam_systemd_home(cinnamon-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
:34:29   org.cinnamon.ScreenSaver[3120]: Fractional scaling active: False
:34:29   cinnamon-screensaver-pam-helper[3240]: pam_unix(cinnamon-screensaver:auth): conversation failed
:34:29   cinnamon-screensaver-pam-helper[3240]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:34:29   cinnamon-screensaver-pam-helper[3240]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user .. account temporarily locked

That's faillock, "deny = 0" is a workaround that more or less disables faillock.

Changing `unlock_time = 10` in `/etc/security/faillock.conf` works. I don't want `deny = 0` as this looks like it could allow to brute-force a password.

Do you maybe use sudo in some cronjob/script?

I would be super aware if I had such script, but I did take a look at the following for what it's worth and nothing's there:

$ grep -rI -m 1 "sudo" /usr/lib/systemd/
/usr/lib/systemd/system/sudo_logsrvd.service:Documentation=man:sudo_logsrvd(8) man:sudo_logsrvd.conf(5)
$

Last edited by onetimehelper (2023-05-05 11:09:29)

Offline

#14 2023-04-30 10:20:31

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

Did you try to comment pam_systemd_homed?

Online

#15 2023-05-01 08:54:44

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

seth wrote:

Did you try to comment pam_systemd_homed?

Commented out:

$ grep "pam_systemd_home.so" /etc/pam.d/system-auth
#-auth      [success=2 default=ignore]  pam_systemd_home.so
#-account   [success=1 default=ignore]  pam_systemd_home.so
#-password  [success=1 default=ignore]  pam_systemd_home.so
#-session   optional                    pam_systemd_home.so

Still happens:

:33:06   dbus-daemon[1195]: [session uid=1000 pid=1195] Activating service name='org.cinnamon.ScreenSaver' requested by ':1.147' (uid=1000 pid=3971 comm="/usr/bin/python3 /usr/bin/cinnamon-screensaver-com")
:33:06   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:33:06   org.cinnamon.ScreenSaver[3978]: Trying to connect to logind...
:33:06   dbus-daemon[1195]: [session uid=1000 pid=1195] Successfully activated service 'org.cinnamon.ScreenSaver'
:33:06   org.cinnamon.ScreenSaver[3978]: Starting screensaver...
:33:06   org.cinnamon.ScreenSaver[3978]: Cinnamon Screensaver support not found in current theme - adding some...
:33:06   cinnamon-session[1184]: WARNING: t+1535,09163s: Detected that screensaver has appeared on the bus
:33:06   org.cinnamon.ScreenSaver[3978]: Successfully using logind
:33:35   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:33:35   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:33:35   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:33:35   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:33:35   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:33:35   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:33:36   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:33:36   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:33:36   rtkit-daemon[1278]: Supervising 6 threads of 3 processes of 1 users.
:33:36   rtkit-daemon[1278]: Successfully made thread 4033 of process 1243 owned by '1000' RT at priority 5.
:33:36   rtkit-daemon[1278]: Supervising 7 threads of 3 processes of 1 users.
:33:36   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:33:36   cinnamon-screensaver-pam-helper[4009]: pam_unix(cinnamon-screensaver:auth): conversation failed
:33:36   cinnamon-screensaver-pam-helper[4009]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:34:06   cinnamon-screensaver-pam-helper[4036]: pam_unix(cinnamon-screensaver:auth): conversation failed
:34:06   cinnamon-screensaver-pam-helper[4036]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:35:52   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:35:52   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:35:52   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:35:52   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:35:52   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:35:52   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:35:53   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-1911167512x21924) DO NOT add up, skipping change notification
:35:53   org.cinnamon.ScreenSaver[3978]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:35:53   rtkit-daemon[1278]: Supervising 6 threads of 3 processes of 1 users.
:35:53   rtkit-daemon[1278]: Successfully made thread 4122 of process 1243 owned by '1000' RT at priority 5.
:35:53   rtkit-daemon[1278]: Supervising 7 threads of 3 processes of 1 users.
:35:54   org.cinnamon.ScreenSaver[3978]: Fractional scaling active: False
:35:54   cinnamon-screensaver-pam-helper[4111]: pam_unix(cinnamon-screensaver:auth): conversation failed
:35:54   cinnamon-screensaver-pam-helper[4111]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:35:54   cinnamon-screensaver-pam-helper[4111]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user .. account temporarily locked

Last edited by onetimehelper (2023-05-05 11:08:51)

Offline

#16 2023-05-01 13:36:44

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

It seems to be really just cinnamon-screensaver, https://github.com/linuxmint/cinnamon-s … -343744436
/usr/bin/unix_chkpwd is u+s here, though.

10:35:54   cinnamon-screensaver-pam-helper[4111]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user .. account temporarily locked

There where 3 failed attempts at 10:33:36, 10:34:06 and 10:35:54 - was that you trying to enter your password?
Stupid question: is you password qwerty-safe? What if you change it to "12345"?

Online

#17 2023-05-02 10:43:27

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

seth wrote:

It seems to be really just cinnamon-screensaver, https://github.com/linuxmint/cinnamon-s … -343744436
/usr/bin/unix_chkpwd is u+s here, though.

May be so, because this fixed it for him:

extropian wrote:

I have not found a solution (other than switching desktop environments entirely which is what I ended up doing) [...]

But switching DE entirely is not what I will do, `unlock_time = 10` exists for me. (I don't press the ESC key at all like he mentions)

Looks like it's already u+s: before:

$ stat -c "%a %A %U:%G" /usr/bin/unix_chkpwd
6755 -rwsr-sr-x root:root
$ stat -c "%a %A %U:%G" /usr/sbin/unix_chkpwd
6755 -rwsr-sr-x root:root

After `sudo chmod u+s /sbin/unix_chkpwd`:

6755 -rwsr-sr-x root:root

`shadow` group doesn't exist for me when I tried `sudo chown root:shadow /sbin/unix_chkpwd`. Maybe Arch handles it differently.

seth wrote:
10:35:54   cinnamon-screensaver-pam-helper[4111]: pam_faillock(cinnamon-screensaver:auth): Consecutive login failures for user .. account temporarily locked

There where 3 failed attempts at 10:33:36, 10:34:06 and 10:35:54 - was that you trying to enter your password?
Stupid question: is you password qwerty-safe? What if you change it to "12345"?

It's happening automatically and is why I started posting here. If it was me/anyone, I would complain why it didn't lock after 3 failed login attempts (3 is a good default for me, I don't need 10) smile

Yes, my password is qwerty-safe.

Last edited by onetimehelper (2023-05-02 10:59:08)

Offline

#18 2023-05-02 10:48:58

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

It's happening automatically

That's sacry. The failed unlocks happen 30 and 108 seconds apart, what doesn't look automated.

If my computer has been locked for a while and/or it goes into sleep mode after being left idle, then when i try to log back in

1. does anybody else have physical access to the system (incl. kids or cats)?
2. Can you detach the keyboard? Does that prevent the problem?
3. If you reaise the faillock threshold, does a pattern emerge in the frequency of the failed attempts?

Online

#19 2023-05-02 12:09:07

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

seth wrote:

It's happening automatically

That's sacry. The failed unlocks happen 30 and 108 seconds apart, what doesn't look automated.

If my computer has been locked for a while and/or it goes into sleep mode after being left idle, then when i try to log back in

1. does anybody else have physical access to the system (incl. kids or cats)?
2. Can you detach the keyboard? Does that prevent the problem?
3. If you reaise the faillock threshold, does a pattern emerge in the frequency of the failed attempts?

Scary in the sense that it's simply a bug because it wasn't happening before and, of course, no, there's nobody that could have pressed it. (I can go afk being next to my keyboard). Started happening like 1-3 months ago, may even 1-2.

To 1. Nope
To 2. I will test that later and edit this or in further reply.
To 3.Raised to 10 and commented out `unlock_time`:

$ grep "deny\|unlock_time" /etc/security/faillock.conf
deny = 10
#unlock_time = 10
:11:31   dbus-daemon[1194]: [session uid=1000 pid=1194] Activating service name='org.cinnamon.ScreenSaver' requested by ':1.221' (uid=1000 pid=9740 comm="/usr/bin/python3 /usr/bin/cinnamon-screensaver-com")
:11:31   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:11:31   org.cinnamon.ScreenSaver[9747]: Trying to connect to logind...
:11:31   dbus-daemon[1194]: [session uid=1000 pid=1194] Successfully activated service 'org.cinnamon.ScreenSaver'
:11:31   org.cinnamon.ScreenSaver[9747]: Starting screensaver...
:11:31   org.cinnamon.ScreenSaver[9747]: Cinnamon Screensaver support not found in current theme - adding some...
:11:31   cinnamon-session[1182]: WARNING: t+17332,42089s: Detected that screensaver has appeared on the bus
:11:31   org.cinnamon.ScreenSaver[9747]: Successfully using logind
:20:13   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:20:13   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:20:13   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:20:13   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:20:13   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:20:13   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:20:15   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:20:15   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:20:15   rtkit-daemon[1279]: Supervising 6 threads of 3 processes of 1 users.
:20:15   rtkit-daemon[1279]: Successfully made thread 9809 of process 1242 owned by '1000' RT at priority 5.
:20:15   rtkit-daemon[1279]: Supervising 7 threads of 3 processes of 1 users.
:20:15   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:20:15   cinnamon-screensaver-pam-helper[9789]: pam_unix(cinnamon-screensaver:auth): conversation failed
:20:15   cinnamon-screensaver-pam-helper[9789]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:20:45   cinnamon-screensaver-pam-helper[9812]: pam_unix(cinnamon-screensaver:auth): conversation failed
:20:45   cinnamon-screensaver-pam-helper[9812]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:22:29   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:22:29   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:22:30   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:22:30   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:22:30   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:22:30   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:22:31   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:22:31   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:22:31   rtkit-daemon[1279]: Supervising 6 threads of 3 processes of 1 users.
:22:31   rtkit-daemon[1279]: Successfully made thread 9897 of process 1242 owned by '1000' RT at priority 5.
:22:31   rtkit-daemon[1279]: Supervising 7 threads of 3 processes of 1 users.
:22:31   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:22:31   cinnamon-screensaver-pam-helper[9887]: pam_unix(cinnamon-screensaver:auth): conversation failed
:22:31   cinnamon-screensaver-pam-helper[9887]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:23:01   cinnamon-screensaver-pam-helper[9900]: pam_unix(cinnamon-screensaver:auth): conversation failed
:23:01   cinnamon-screensaver-pam-helper[9900]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:27:41   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:27:41   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:27:41   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:27:41   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:27:41   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:27:41   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:27:42   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:27:42   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:27:42   rtkit-daemon[1279]: Supervising 6 threads of 3 processes of 1 users.
:27:42   rtkit-daemon[1279]: Successfully made thread 9994 of process 1242 owned by '1000' RT at priority 5.
:27:42   rtkit-daemon[1279]: Supervising 7 threads of 3 processes of 1 users.
:27:42   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:27:42   cinnamon-screensaver-pam-helper[9984]: pam_unix(cinnamon-screensaver:auth): conversation failed
:27:42   cinnamon-screensaver-pam-helper[9984]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:28:12   cinnamon-screensaver-pam-helper[9997]: pam_unix(cinnamon-screensaver:auth): conversation failed
:28:12   cinnamon-screensaver-pam-helper[9997]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:32:52   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:32:52   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:32:53   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:32:53   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:32:53   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:32:53   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:32:54   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:32:54   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:32:54   rtkit-daemon[1279]: Supervising 6 threads of 3 processes of 1 users.
:32:54   rtkit-daemon[1279]: Successfully made thread 10092 of process 1242 owned by '1000' RT at priority 5.
:32:54   rtkit-daemon[1279]: Supervising 7 threads of 3 processes of 1 users.
:32:54   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:32:54   cinnamon-screensaver-pam-helper[10082]: pam_unix(cinnamon-screensaver:auth): conversation failed
:32:54   cinnamon-screensaver-pam-helper[10082]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:33:24   cinnamon-screensaver-pam-helper[10095]: pam_unix(cinnamon-screensaver:auth): conversation failed
:33:24   cinnamon-screensaver-pam-helper[10095]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:38:04   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:38:04   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:38:04   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:38:04   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:38:04   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:38:04   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:38:05   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:38:05   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:38:05   rtkit-daemon[1279]: Supervising 6 threads of 3 processes of 1 users.
:38:05   rtkit-daemon[1279]: Successfully made thread 10186 of process 1242 owned by '1000' RT at priority 5.
:38:05   rtkit-daemon[1279]: Supervising 7 threads of 3 processes of 1 users.
:38:05   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:38:05   cinnamon-screensaver-pam-helper[10176]: pam_unix(cinnamon-screensaver:auth): conversation failed
:38:05   cinnamon-screensaver-pam-helper[10176]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:38:35   cinnamon-screensaver-pam-helper[10189]: pam_unix(cinnamon-screensaver:auth): conversation failed
:38:35   cinnamon-screensaver-pam-helper[10189]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:41:40   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:41:40   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:41:40   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:41:40   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:41:40   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:41:40   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:41:40   cinnamon-screensaver-pam-helper[10255]: pam_unix(cinnamon-screensaver:auth): conversation failed
:41:40   cinnamon-screensaver-pam-helper[10255]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:41:41   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (-1853780480,0-1853784320x21866) DO NOT add up, skipping change notification
:41:41   org.cinnamon.ScreenSaver[9747]: Screen rect (0,0-3840x2160) and 1 monitor rects (0,0-3840x2160) add up, sending change notification
:41:41   rtkit-daemon[1279]: Supervising 6 threads of 3 processes of 1 users.
:41:41   rtkit-daemon[1279]: Successfully made thread 10275 of process 1242 owned by '1000' RT at priority 5.
:41:41   rtkit-daemon[1279]: Supervising 7 threads of 3 processes of 1 users.
:41:41   org.cinnamon.ScreenSaver[9747]: Fractional scaling active: False
:41:41   cinnamon-screensaver-pam-helper[10265]: pam_unix(cinnamon-screensaver:auth): conversation failed
:41:41   cinnamon-screensaver-pam-helper[10265]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]

Interestingly, when I came back I was not locked out despite 12 counts of "auth could not identify password".

Last edited by onetimehelper (2023-05-02 12:10:17)

Offline

#20 2023-05-02 12:47:10

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

Your sed kinda misfired, but

:20:15   cinnamon-screensaver-pam-helper[9789]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:20:45   cinnamon-screensaver-pam-helper[9812]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:22:31   cinnamon-screensaver-pam-helper[9887]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:23:01   cinnamon-screensaver-pam-helper[9900]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:27:42   cinnamon-screensaver-pam-helper[9984]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:28:12   cinnamon-screensaver-pam-helper[9997]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:32:54   cinnamon-screensaver-pam-helper[10082]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:33:24   cinnamon-screensaver-pam-helper[10095]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:38:05   cinnamon-screensaver-pam-helper[10176]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:38:35   cinnamon-screensaver-pam-helper[10189]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:41:40   cinnamon-screensaver-pam-helper[10255]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]
:41:41   cinnamon-screensaver-pam-helper[10265]: pam_unix(cinnamon-screensaver:auth): auth could not identify password for [..]

There're at least 18 minutes delay between the 10 fails, so the cooldown kicked in and reset the faillock.
The delay looks all over the place, there's probably spurious input.

Online

#21 2023-05-02 12:53:42

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

not sure what you mean but :minutes:seconds

Last edited by onetimehelper (2023-05-05 11:10:42)

Offline

#22 2023-05-02 13:02:27

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

Well, yeah. Theoretically the hours could have changed (which under different circumstances would have been relevant)

Online

#23 2023-05-02 13:11:58

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

Is there a way to change the cinnamon-screensaver without removed Cinnamon?

I going to try a different user to see if any of my settings are causing it. I may also try a different DE just to see if it's cinnamon-screensaver. But first that keyboard disconnecting thing.

Last edited by onetimehelper (2023-05-02 13:37:25)

Offline

#24 2023-05-02 13:39:19

seth
Member
Registered: 2012-09-03
Posts: 61,638

Re: Lightdm doesnt recognize password after computer has been asleep

https://askubuntu.com/questions/356992/ … ock-screen
No idea whether that's still valid.

You can install xscreensaver or use xautolock w/ i3lock or slock or whatever else you want, but if this is spurious input, it might affect those lockers as well.
https://wiki.archlinux.org/title/Session_lock
https://wiki.archlinux.org/title/List_o … en_lockers

Online

#25 2023-05-02 15:44:05

onetimehelper
Member
Registered: 2023-04-27
Posts: 12

Re: Lightdm doesnt recognize password after computer has been asleep

Created a new user, installed `gconf-editor` set `disable_lock_screen` to `true`, under both, gnome and cinnamon, but still happening.

Detaching the keyboard also doesn't work.
I installed `xfce4` (selected all packages, but had to manually install `xfce4-screensaver`), run xfce4-screensaver, just to see if it's maybe cinnamon-screensaver related and there it works/I can login after being afk.

Workaround
Since removing cinnamon-screensaver (pacman -Rdd cinnamon-screensaver) doesn't work because after reboot Cinnamon can't be loaded, what works is to go to org.cinnamon.desktop.screensaver and toggle `idle-activation-enabled` to `false`. Cinnamon's screensaver GUI also has an option to never activate the screensaver. Then I installed xscreensaver, reset faillock.conf:
```
grep "deny\|unlock_time" /etc/security/faillock.conf
#deny = 10
#unlock_time = 10
```
and it works. So it may or may not be a cinnamon-screensaver exclusive issue.

I haven't found yet how to change to xscreensaver when the shortcut Ctrl + Alt + l is pressed, so a different shortcut for xscreensaver may be used instead.

Last edited by onetimehelper (2023-05-05 11:06:28)

Offline

Board footer

Powered by FluxBB