When I try to switch my KDE session to Wayland, I only get a black screen after entering the password and pressing Enter. System is running, but when I switch to a tty with Ctrl-Alt-F3, I get the login screen of SDDM again instead of the console.
Switching to X works, but with KDE6, I wanted to migrate the system to Wayland.
I’m really suspecting that this issue is related to hybrid graphics. A lot of the issue I have seen on this are related to hybrid graphics with a few exceptions. My only suggestion is to wait it out on x11.
No. The video section lets me adjust brightness for battery and AC, and that’s it. And the GPU circuit board holds the VGA-15 out, and it is cumbersome to remove, otherwise I would have done this already.
They seem to come in several variants, so it’s always a valid question. Trying to disable the dGPU should be worth a try. I hope it’s possible. I have another laptop where I know that the dGPU is hardwired in such a way that it’s impossible to disable or even change the screen resolution.
I have the same problem, blacksreen with plasma 6 and wayland, while plasma 6 and x11 is working and also gnome with wayland is working. But I have no hybrid system, just only nvidia 3080ti. Strange is that i can start apllications when I click on upper left corner I get the search widget. I can start steam and konsole and also my browser…
Have you tried blacklisting nouveau on boot so it only uses internal graphics amdgpu on boot and then you switch to nvidia after via what ever method being used?
When I start the desktop after login a black screen is showning up with only window from Welcome (Autostart) is displayed. No taskbar no background.
When I move the mouse to upper left corner it shows the search inputline and the two workspaces. Here I can search for the terminal and from there I can start the applications. Hope that was more clear.
If you delete the $HOME/.local/screen folder and the $HOME/.config/kwinoutputconfig.json and then reboot. Does that help? That would delete all monitor settings. Make sure no old config is conflicting.
After the brief interlude with @Jerik 's issue, I’m back with some new findings.
System is now running kernel 6.8.0 and KDE 6.0.2. Issues at login persist. However:
When I try to login, I get the black screen. I can switch to a tty, though.
When I use tty3, black screen doesn’t change.
When I use tty4, the tty login appears. As soon as I try to login (usually at the password stage), the cursor appears and I get thrown back to SDDM’s login screen.
A subsequent attempt to login here gets a black screen, but now tty4 behaves the same as with tty3 before. I can’t switch to it anymore (black screen).
I can switch to tty5, which behaves the same as tty4 (SDDM login screen appears after cursor).
When I don’t try to login, I can switch to tty4 (not tty3) and login there. Afterwards, the tty3 login becomes available. Switching back to tty2 now gives me the SDDM login screen, which let’s me login now successfully to the Wayland session.
With some further experimentation, it seems I can login on tty3, but it takes a long time to switch to it.
Any further ideas? Workaround for now is:
Switch to tty4 with Ctrl-Alt-F4 on the SDDM login screen
Login on tty
Switch back to SDDM via Alt-F2
Login to KDE/Wayland session, enjoy.
This works to let me login under Wayland.
Where would be the place to report this upstream? Is this KDE, SDDM, Plasma, Wayland, Meta? I would like to report this, but where?
Some log findings with journalctl -b 0:
Process 578 (Xorg) of user 0 dumped core.
...
Mär 13 15:35:21 e6540 sddm[571]: Failed to read display number from pipe
Mär 13 15:35:21 e6540 sddm[571]: Display server stopping...
Mär 13 15:35:21 e6540 sddm[571]: Attempt 1 starting the Display server on vt 2 failed
...
Mär 13 15:35:23 e6540 sddm[571]: Display server starting...
Mär 13 15:35:23 e6540 sddm[571]: Writing cookie to "/run/sddm/xauth_cUrbzE"
Mär 13 15:35:23 e6540 sddm[571]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_cUrbzE -noreset -displayfd 16
Mär 13 15:35:24 e6540 sddm[571]: Setting default cursor
Mär 13 15:35:24 e6540 sddm[571]: Running display setup script "/usr/share/sddm/scripts/Xsetup"
Mär 13 15:35:24 e6540 sddm[571]: Display server started.
Mär 13 15:35:24 e6540 sddm[571]: Socket server starting...
Mär 13 15:35:24 e6540 sddm[571]: Socket server started.
Mär 13 15:35:24 e6540 sddm[571]: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
Mär 13 15:35:24 e6540 sddm[571]: Greeter starting...
Mär 13 15:35:24 e6540 sddm-helper[634]: [PAM] Starting...
Mär 13 15:35:24 e6540 sddm-helper[634]: [PAM] Authenticating...
Mär 13 15:35:24 e6540 sddm-helper[634]: [PAM] returning.
...
Mär 13 15:35:24 e6540 sddm-helper[634]: Writing cookie to "/tmp/xauth_fsFGEw"
Mär 13 15:35:24 e6540 sddm-helper[634]: Starting X11 session: "" "/usr/bin/sddm-greeter-qt6 --socket /tmp/sddm-:0-zMtsty --theme /usr/share/sddm/themes/breeze"
Mär 13 15:35:24 e6540 sddm[571]: Greeter session started successfully
...
Mär 13 15:35:51 e6540 sddm-greeter-qt6[648]: file:///usr/share/sddm/themes/breeze/Main.qml:241:17 Parameter "username" is not declared. Injection of parameters into>
Mär 13 15:35:51 e6540 sddm-greeter-qt6[648]: Reading from "/usr/share/wayland-sessions/plasma.desktop"
Mär 13 15:35:51 e6540 sddm[571]: Message received from greeter: Login
Mär 13 15:35:51 e6540 sddm[571]: Reading from "/usr/share/wayland-sessions/plasma.desktop"
Mär 13 15:35:51 e6540 sddm[571]: Session "/usr/share/wayland-sessions/plasma.desktop" selected, command: "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startp>
Mär 13 15:35:51 e6540 sddm-helper[716]: [PAM] Starting...
Mär 13 15:35:51 e6540 sddm-helper[716]: [PAM] Authenticating...
Mär 13 15:35:51 e6540 sddm-helper[716]: [PAM] Preparing to converse...
Mär 13 15:35:51 e6540 sddm-helper[716]: [PAM] Conversation with 1 messages
Mär 13 15:35:51 e6540 sddm-helper[716]: pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
Mär 13 15:35:51 e6540 sddm-helper[716]: [PAM] returning.
Mär 13 15:35:51 e6540 sddm[571]: Authentication for user "emk2203" successful
Mär 13 15:35:51 e6540 sddm-greeter-qt6[648]: Message received from daemon: LoginSucceeded
Mär 13 15:35:51 e6540 sddm-helper[716]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Mär 13 15:35:51 e6540 sddm-helper[716]: pam_unix(sddm:session): session opened for user emk2203(uid=1000) by emk2203(uid=0)
It has to do with wayland, though, although I’m not sure about the mechanism.
I have a .bash_profile file which mounts all the removable stuff and Windows disks currently present upon login:
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
# mount unmounted disks available to system
for disk in /dev/disk/by-uuid/*; do
if ! [[ $(lsblk -no FSTYPE $disk) =~ ^(swap|zfs_member)$ ]]; then
findmnt -t noswap $disk >/dev/null || udisksctl mount -b $disk
fi
This worked well before with X. All disks were mounted automatically upon login, I could use find to search for files and not risking to get a negative result because I forgot to mount a flash drive and search frantically in other places for hours.
This doesn’t work with Wayland, the above snippet stops and asks for authentification ‘somewhere’ (not visible anywhere). My workaround made me authenticate the unmounted drives and then the login could proceed, since there was no need for authentification anymore.
Solution is to move this to a bash function which I can call after login. There’s still the pesky authorization, though. A udisksctl mount -b issued from the local console doesn’t need it. A remote console does, though.
Why do I have to authorize the function, but not the udisksctl command? No idea. Maybe someone here knows?
Isn’t it possible to auto-mount those devices upon boot via entries in /etc/fstab , adding --nofail mount option in case they are not connected at boot?
No. This suggestion comes up often when I discuss this, but doesn’t account for the unknowns of flash drives, attached external drives, inserted SD cards etc, which can all have different names, UUIDs and be at different places.
The ‘standard’ disks which get mounted all the time are in fstab, sure. But what about the others?
The way I had it was able to mount anything connected without a fuss. And I certainly don’t want to edit fstab entries all the time, given the risk of a non-booting system when you make an error.