Bug 471074 - Kde mobile Autologin with password is not working
Summary: Kde mobile Autologin with password is not working
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasma-mobile
Classification: Plasma
Component: Shell (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Mobile Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-15 11:07 UTC by idoitprone
Modified: 2023-09-03 00:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
journalctl sddm logs (2.73 KB, text/plain)
2023-06-15 11:10 UTC, idoitprone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description idoitprone 2023-06-15 11:07:38 UTC
SUMMARY
KDE mobile passwordless login on user accounts with a password is not working.




STEPS TO REPRODUCE
1. Set plasma-mobile in the shell
2. Set a password for the user account
3. Set always login in kde system settings
4. Boot the device

OBSERVED RESULT

1. The device boot to plasma-mobile lockscreen

Jun 15 03:33:48 localhost.localdomain systemd[1]: Starting Simple Desktop Display Manager...
Jun 15 03:33:48 localhost.localdomain systemd[1]: Started Simple Desktop Display Manager.
Jun 15 03:33:48 localhost.localdomain sddm[1760]: Initializing...
Jun 15 03:33:48 localhost.localdomain sddm[1760]: Starting...
Jun 15 03:33:48 localhost.localdomain sddm[1760]: Logind interface found
Jun 15 03:33:48 localhost.localdomain sddm[1760]: Adding new display on vt 7 ...
Jun 15 03:33:48 localhost.localdomain sddm[1760]: Loading theme configuration from ""
Jun 15 03:33:48 localhost.localdomain sddm[1760]: Display server starting...
Jun 15 03:33:48 localhost.localdomain sddm[1760]: Running: /usr/bin/X -nolisten tcp -auth /run/sddm/{d69601eb-c1e4-435>
Jun 15 03:33:49 localhost.localdomain sddm[1760]: Setting default cursor
Jun 15 03:33:49 localhost.localdomain sddm[1760]: Running display setup script  "/usr/etc/X11/xdm/Xsetup"
Jun 15 03:33:49 localhost.localdomain sddm[1760]: Display server started.
Jun 15 03:33:49 localhost.localdomain sddm[1760]: Reading from "/usr/share/wayland-sessions/plasma-mobile.desktop"
Jun 15 03:33:49 localhost.localdomain sddm[1760]: Reading from "/usr/share/wayland-sessions/plasma-mobile.desktop"
Jun 15 03:33:49 localhost.localdomain sddm[1760]: Session "/usr/share/wayland-sessions/plasma-mobile.desktop" selected>
Jun 15 03:33:49 localhost.localdomain sddm-helper[1799]: [PAM] Starting...
Jun 15 03:33:49 localhost.localdomain sddm-helper[1799]: [PAM] Authenticating...
Jun 15 03:33:49 localhost.localdomain sddm-helper[1799]: [PAM] returning.
Jun 15 03:33:49 localhost.localdomain sddm[1760]: Authenticated successfully
Jun 15 03:33:50 localhost.localdomain sddm-helper[1799]: pam_unix(sddm-autologin:session): session opened for user doo>
Jun 15 03:33:50 localhost.localdomain sddm-helper[1799]: pam_kwallet5(sddm-autologin:session): pam_kwallet5: pam_sm_op>
Jun 15 03:33:50 localhost.localdomain sddm-helper[1799]: pam_kwallet5(sddm-autologin:session): pam_kwallet5: open_sess>
Jun 15 03:33:50 localhost.localdomain sddm-helper[1799]: [PAM] Preparing to converse...
Jun 15 03:33:50 localhost.localdomain sddm-helper[1799]: [PAM] Conversation with 1 messages
Jun 15 03:33:50 localhost.localdomain sddm[1760]: Authentication information: "Last login: Thu Jun 15 03:18:01 PDT 202>
Jun 15 03:33:50 localhost.localdomain sddm-helper[1799]: Starting: "/usr/share/sddm/scripts/wayland-session /usr/libex>
Jun 15 03:33:50 localhost.localdomain sddm[1760]: Session started


EXPECTED RESULT
Login

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Opensuse tumbleweed 20230613
(available in About System)
KDE Plasma Version: 5.27.5 
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
https://invent.kde.org/plasma/plasma-mobile/-/issues/166

It seems like password-less login mean user accounts without password
Comment 1 idoitprone 2023-06-15 11:10:40 UTC
Created attachment 159687 [details]
journalctl sddm logs

sudo journalctl -u sddm -b 0 > sddm.log
Comment 2 idoitprone 2023-06-15 11:13:14 UTC
(In reply to idoitprone from comment #1)
> Created attachment 159687 [details]
> journalctl sddm logs
> 
> sudo journalctl -u sddm -b 0 > sddm.log

m_kwallet5(sddm-autologin:session): pam_kwallet5: open_session called without kwallet5_key
Comment 4 idoitprone 2023-06-15 11:18:29 UTC
steamdeck:~> ls /etc/pam.d/
common-account     common-password          common-session-nonlogin-pc  postlogin-auth         postlogin-session
common-account-pc  common-password-pc       common-session-pc           postlogin-auth-pc      postlogin-session-pc
common-auth        common-session           postlogin-account           postlogin-password     smtp
common-auth-pc     common-session-nonlogin  postlogin-account-pc        postlogin-password-pc


https://gist.github.com/benediktg/195f774073e3d85fc22597c094d21bae?permalink_comment_id=2195243
Comment 5 idoitprone 2023-06-15 11:22:53 UTC
The blog is probably not related to this bug.
Comment 6 idoitprone 2023-06-15 11:28:26 UTC
Did you implement the lockscreen separate from sddm? The plasma mobile lockscreen always felt strange.
Comment 7 idoitprone 2023-09-03 00:48:22 UTC
kscreenlocker feature

cp /etc/xdg/kscreenlockerrc ~/.config/kscreenlockerrc


[Daemon]
LockOnStart=false
Comment 8 idoitprone 2023-09-03 00:51:51 UTC
The boot to kscreenlocker is an intentional default. Closing this bug report. I have commented what to change in order to change the behavior.

I cannot find where to set the other fields for this screen locker.