Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout from KDE session on Rawhide goes to a console/black screen, not SDDM (with SDDM wayland) #1636

Closed
Conan-Kudo opened this issue Jan 5, 2023 · 8 comments · Fixed by #1641

Comments

@Conan-Kudo
Copy link
Contributor

(Reported originally downstream in Fedora as rhbz#2110801 by @AdamWill)

If you do a clean install of current Fedora Rawhide KDE - e.g. from https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20230105.n.0/compose/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-Rawhide-20230105.n.0.iso - then boot the installed system, log in, and log out, you wind up at a console on tty2, not back at SDDM as you should.

As best I can tell, when the system boots, SDDM is running on tty1 and there are consoles on tty2 and tty3. After login, SDDM goes away and tty1 just shows a flashing cursor; KDE starts on tty3. tty2 still has a console. When logging out from KDE, the system puts you on tty2, with the console. tty1 still shows a flashing cursor. tty3 also now has a console again. SDDM doesn't seem to be present on any tty, though it's still running according to systemctl and ps.

Another user sees a variation of this problem where they get a black screen with just a flashing text cursor in the top left when logging out. That is, it doesn't switch to tty2, it just sticks to tty1 instead.

This problem shows up when using SDDM in Wayland mode. When using (root) X11, this doesn't occur.

Fedora KDE Rawhide nightlies can be found here: https://openqa.fedoraproject.org/nightlies.html

@Conan-Kudo
Copy link
Contributor Author

For our sddm Wayland configuration, we use a package sddm-wayland-plasma that ships the sddm configuration snippet from plasma-workspace to configure SDDM to use kwin as the compositor.

cc: @aleixpol, @davidedmundson, @zzag, @Zamundaaa

@Conan-Kudo
Copy link
Contributor Author

At this point in time, this is the sole blocker bug we have for eliminating X11 from our default hotpath entirely, per https://fedoraproject.org/wiki/Changes/WaylandByDefaultForSDDM

@Conan-Kudo
Copy link
Contributor Author

This is reproducible with the current git master (3e48649).

@Eckoa
Copy link

Eckoa commented Jan 19, 2023

Just to confirm this issue isnt just Fedora Rawhide but on Arch linux also with sddm-git. SDDM runs on TTY1 and when Plasma starts SDDM closes and Plasma runs on TTY2. When you log out you drop to TTY2 and switching to TTY1 simply results in a black screen/flashing cursor

@aleixpol
Copy link
Contributor

I've been unable to reproduce this on both my dev machines. I'll test with the latest rawhide as of today...

@AdamWill
Copy link

That's weird, it's 100% reproducible in openQA so far. Any time we go to an SDDM build that uses Wayland, we get the bug.

You won't be able to reproduce it on F37 vanilla as SDDM is built to use X there, but it should reproduce easily on Rawhide.

@aleixpol
Copy link
Contributor

I could finally reproduce it, now it also happens always, somehow I had to restart my system 🤷

aleixpol added a commit that referenced this issue Jan 26, 2023
If we fail to switch tty when showing the greeter, exit saying so then
switch back to tty 1 and try launching the Display again.

Fixes #1636
aleixpol added a commit that referenced this issue Jan 27, 2023
If we fail to switch tty when showing the greeter, exit saying so then
switch back to tty 1 and try launching the Display again.

Fixes #1636
aleixpol added a commit that referenced this issue Jan 30, 2023
If we fail to switch tty when showing the greeter, exit saying so then
switch back to tty 1 and try launching the Display again.

Fixes #1636
aleixpol added a commit that referenced this issue Jan 31, 2023
If we fail to switch tty when showing the greeter, exit saying so then
switch back to tty 1 and try launching the Display again.

Fixes #1636
aleixpol added a commit that referenced this issue Feb 1, 2023
If we fail to switch tty when showing the greeter, exit saying so then
switch back to tty 1 and try launching the Display again.

Fixes #1636
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants