Bug 273174 - x11/sddm: black/blank screen, if login is automated by deskutils/plasma5-sddm-kcm
Summary: x11/sddm: black/blank screen, if login is automated by deskutils/plasma5-sddm...
Status: Closed DUPLICATE of bug 272649
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-kde (group)
URL: https://www.freshports.org/x11/sddm/
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-17 06:55 UTC by Graham Perrin
Modified: 2023-09-01 00:22 UTC (History)
1 user (show)

See Also:


Attachments
typescript (2.48 KB, text/plain)
2023-08-17 06:55 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 2023-08-17 06:55:48 UTC
Created attachment 244164 [details]
typescript

Re: bug 272834 comment 14

After successfully setting a preference for automated login (as grahamperrin using Plasma (X11)), I logged out from Plasma, then, at ttyv1 or ttyv0: 

reboot -r

Result: and endless black/blank screen. 

I switched to a tty, logged in as root, stopped SDDM, made the symptom reproducible by simply starting SDDM (example typescript attached). 

After stopping SDDM I switched to a different tty, logged in as grahamperrin, startx started Plasma (X11) without difficulty. 

I un-set the preference, then logged out. 

With automated login disabled, SDDM starts Plasma (X11) without difficulty.
Comment 1 Florian Walpen 2023-08-17 09:35:09 UTC
Could you check the config files in /usr/local/etc/pam.d/sddm-autologin and /usr/local/etc/pam.d/sddm-autologin.default?

They should look something like this:

> #%PAM-1.0
> auth        required    pam_permit.so
> #auth       optional    pam_gnome_keyring.so
> #auth       optional    pam_kwallet5.so
> 
> account     include     login
> 
> password    required    pam_deny.so
> 
> session     include     login
> #session    optional    pam_gnome_keyring.so auto_start
> #session    optional    pam_kwallet5.so auto_start

May still be bug #272649.
Comment 2 Graham Perrin 2023-08-18 01:14:21 UTC
% diff /usr/local/etc/pam.d/sddm-autologin.default /usr/local/etc/pam.d/sddm-autologin
% cat /usr/local/etc/pam.d/sddm-autologin
#%PAM-1.0
auth        required    pam_env.so
auth        required    pam_tally2.so file=/var/log/tallylog onerr=succeed
auth        required    pam_shells.so
auth        required    pam_nologin.so
auth        required    pam_permit.so
-auth       optional    pam_gnome_keyring.so
-auth       optional    pam_kwallet5.so
account     include     system-local-login
password    include     system-local-login
session     include     system-local-login
-session    optional    pam_gnome_keyring.so auto_start
-session    optional    pam_kwallet5.so auto_start
% pkg iinfo x11/sddm
sddm-0.20.0_2
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-ALPHA1 FreeBSD 14.0-ALPHA1 amd64 1400094 #3 main-n264811-d1d7a273707a-dirty: Thu Aug 17 03:33:54 BST 2023     grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1400094 1400094
%
Comment 3 Graham Perrin 2023-08-18 01:24:50 UTC
(In reply to Florian Walpen from comment #1)

> … May still be bug #272649.

Hmm. 

My memory of when I made that report (2023-07-22) is that auto-login was not enabled. IIRC when I ceased using the feature, the decision to cease using was not bug-related. 

My memory may be mistaken.
Comment 4 Graham Perrin 2023-09-01 00:22:24 UTC
Re: bug 272649 comment 3, /usr/local/etc/pam.d/sddm-autologin no longer has the line that I commented out. 

Whilst I can't get my head around which of the commits led to this change: I'm happy that I no longer get the black/blank screen, so I'm closing this as a duplicate. 


(In reply to Florian Walpen from comment #1)

% pkg query %v sddm
0.20.0_3
% grep -v \# /usr/local/etc/pam.d/sddm-autologin | uniq
auth        required    pam_permit.so

account     include     login

password    required    pam_deny.so

session     include     login
% cat /usr/local/etc/pam.d/sddm-autologin
#%PAM-1.0
auth        required    pam_permit.so
#auth       optional    pam_gnome_keyring.so
#auth       optional    pam_kwallet5.so

account     include     login

password    required    pam_deny.so

session     include     login
#session    optional    pam_gnome_keyring.so auto_start
#session    optional    pam_kwallet5.so auto_start
% date ; uname -aKU
Fri  1 Sep 2023 01:21:08 BST
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
%

*** This bug has been marked as a duplicate of bug 272649 ***