Hello, I just find out that if I switch to wayland and have autologin enabled via *Kde settings-startup and shutdown-login screen(SDDM)-behavior, *I would boot into a black screen, unless I have autologin off, or I use autologin with X session.
Can anyone confirm if it’s a known bug or just me? If it’s just me, any advice on diagnose the issue?
What does it mean? You switch to wayland what? You switch to wayland how?
and have autologin enabled via Kde settings-startup and shutdown-login screen(SDDM)-behavior,
Just enabling autologin without explicitly setting suitable session will always start X11 session due to SUSE-specific patch. Have you verified that you actually start Wayland session? What is in /var/lib/sddm/state.conf? Provide screenshot of setting window and/or resulting sddm.conf.
When I reset this part of SUSE patch to default by using
[Autologin]
Session=
I get last session for the user and if it was Wayland it starts correctly. Autologin itself is enabled via /etc/sysconfig/displaymanager, not via sddm.conf. So it is not universally broken.
I disabled autologin and logout, switched session to wayland and login again.
I reboot and confirmed I was in wayland.
I created the two files under sddm.conf.d and filled in the content.
I reboot, finding myself not auto logged in as expected, but when I continued to login, I was in wayland.
Then I went to yast2-system editor to put my username in the autologin entry and reboot. I got into the same old black screen with command line login prompt as expected (by me).
My way of confirming that I’m in a wayland session is to check KDE settings - About this system, it shows “Graphic platform: Wayland” (otherwise it shows “X11”). I also have several other hints that tell I’m in wayland due to the wayland exclusive bug I encounter in the session.
You have not mentioned how you turn on autologin and wayland.
ps. BTW a few weeks ago I tried wayland+autologin on my laptop running OSS 15.3, it’s the same syndrome, not working.
As I said I did it in /etc/sysconfig/displaymanager (strictly speaking by using YaST to enable autologin) which is standard on (open)SUSE and all supported display managers use this setting.
and wayland.
OK, it was not step by step.
I get last session for the user and if it was Wayland it starts correctly.
and last session was selected explicitly at SDDM login screen (logout, make sure to select Plasma Wayland, login then reboot).
I created the two files under sddm.conf.d and filled in the content.
You forgot to show the full content and names of these files (I also wonder, why two flies).
I reboot, finding myself not auto logged in as expected, but when I continued to login, I was in wayland.
This implies that the content you added did not actually enable autologin.
Then I went to yast2-system editor to put my username in the autologin entry and reboot.
So you edited /etc/sysconfig/displaymanager (via YaST) and you also have some additional SDDM settings. May be they conflict.
Capture full “journalctl -b” output after reboot into X11 autologin session and reboot into Wayland autologin session. It may offer some hints where the difference is.