Created attachment 243534 [details] Konsole session transcript, including ouput from 'service sddm onestart' within a typescript file Symptoms comparable to bug 271630 comment 0, > … black screen with a cursor … I struggled to remember where I had seen a workaround. Eventually, I realised that symptoms here were slightly different – blank screens, no cursor – then I found post-closure bug 272297 comment 3, in particular: > … don't have pam_env.so … After commenting out a line, normal service resumed with SDDM. Notes attached.
Related upstream pull request [1]. I'll fix the port once it lands. [1] https://github.com/sddm/sddm/pull/1772
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=493a1a00b7447310444b1596d30d27307ef076d2 commit 493a1a00b7447310444b1596d30d27307ef076d2 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2023-08-07 18:00:11 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2023-08-13 11:57:40 +0000 x11/sddm: Fix sddm-autologin PAM service. While there, remove patching in favor of a CMake variable. PR: 272649 Sponsored by: Serenity Cybersecurity, LLC x11/sddm/Makefile | 4 ++-- x11/sddm/files/patch-services_sddm-autologin.pam | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-)
(In reply to comment #1 and comment #2) Thanks! (In reply to Graham Perrin ◐ from comment #0) > … After commenting out a line, normal service resumed with SDDM. … Interestingly, Plasma (X11) does start with that line – in /usr/local/etc/pam.d/sddm-autologin – no longer commented out, although re: <https://www.freshports.org/x11/sddm/#history> I do not yet have 0.20.0_1 or 0.20.0_2. % pkg iinfo x11/sddm sddm-0.20.0 %
(In reply to Graham Perrin ◐ from comment #3) > sddm-0.20.0 My commit bumps PORTREVISION, so it should be sddm-0.20.0_1
(In reply to Gleb Popov from comment #4) Yep, I have not yet built from ports (the FreeBSD-provided package is still at 0.20.0 for FreeBSD:14:amd64 <https://www.freshports.org/x11/sddm/#packages>).
(In reply to commit-hook from comment #2) For me the patch from this commit is ineffective. I think this is because the CMakeLists.txt there installs the sddm-autologin-tally2.pam, not sddm-autologin.pam, under condition that HAVE_PAM_FAILLOCK is false (pam_faillock.so not found).
Created attachment 244123 [details] Fix sddm autologin, patch the right template file. I now use the patch above on top of your commit. It just patches sddm-autologin-tally2.pam, not sddm-autologin.pam. You could also patch the CMakeLists.txt instead, of course. This effectively changes the installed /usr/local/etc/pam.d/sddm-autologin.default for me.
Created attachment 244124 [details] Fix sddm autologin, patch the right template file. Sorry, that patch was incomplete - updated.
Reopen per bug 272834 comment 17 (thanks). Also, 273174 might be a duplicate of this bug 272649.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=97fda573d33daad946ef08bea1ccb5bc777c9d3b commit 97fda573d33daad946ef08bea1ccb5bc777c9d3b Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2023-08-27 11:09:43 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2023-08-27 11:17:20 +0000 x11/sddm: Fix patch for sddm-autologin. PR: 272649 Sponsored by: Serenity Cybersecurity, LLC x11/sddm/Makefile | 2 +- ..._sddm-autologin.pam => patch-services_sddm-autologin-tally2.pam} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
*** Bug 273174 has been marked as a duplicate of this bug. ***
Confirmed working, following my first pkg upgrade on FreeBSD 15.0-CURRENT. Thanks! % grep sddm\ upgraded /var/log/messages Aug 31 22:21:44 mowa219-gjp4-8570p-freebsd pkg[5711]: sddm upgraded: 0.20.0_2 -> 0.20.0_3 % uname -aKU FreeBSD mowa219-gjp4-8570p-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT amd64 1500000 #9 main-n265053-315ee00fa961-dirty: Mon Aug 28 03:23:49 BST 2023 grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1500000 1500000 %