Bug 2272429

Summary: Plasma sometimes fails to launch when using proprietary Nvidia drivers
Product: [Fedora] Fedora Reporter: Andy Hall <rh>
Component: plasma-desktopAssignee: KDE SIG <kde-sig>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 40CC: hygorhernane, jgrulich, kde-sig, rdieter, than
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-08 04:28:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Logs from failed login
none
Logs from successful login none

Description Andy Hall 2024-04-01 03:30:13 UTC
Sometimes when I boot my computer and try to log in to KDE Plasma via SDDM, I get a black screen for about 10 seconds and then get kicked back to SDDM. I can try logging in again, but the behavior is the same.

There seems to be roughly a 50% chance of this happening on each boot - sometimes a reboot will fix it and I can log in normally, while other times I have to reboot several times before I get lucky enough to log in.

If I re-enable Nouveau I can usually get to a desktop consistently, but unfortunately I can't stick with Nouveau drivers because they leave one of my two monitors blank. I otherwise haven't had any noticeable issues with the Nvidia drivers.

This leads me to believe that the problem is something with the interaction between the Nvidia drivers and Plasma, but I don't know how to narrow it down. Let me know which logs would be the most helpful to collect.

Reproducible: Sometimes

Steps to Reproduce:
1. Boot my computer
2. Type my password into SDDM and press enter
Actual Results:  
The screen goes black for about 10 seconds, then I see SDDM again. I can try logging in again, but the behavior is the same until I reboot.

Expected Results:  
KDE Plasma desktop should launch.

I'm using:
- Fedora 40 KDE spin
- A clean install (did not upgrade from Fedora 39)
- KDE Plasma 6 desktop (Wayland)
- Nvidia GeForce GTX 1070
- Nvidia driver nvidia-kmod-550.67-1.fc40.src.rpm from rpmfusion-nonfree
- Fractional scaling on one monitor (100% on left monitor, 125% on right monitor)

I also experienced this problem with the Fedora 40 branch of Kinoite. I assumed it was a Kinoite issue and installed the standard KDE spin, but had the same problem.

I didn't have this issue with Fedora 39.

Comment 1 Andy Hall 2024-04-01 03:34:24 UTC
Created attachment 2024489 [details]
Logs from failed login

Attaching some kwin_wayland logs that seem relevant.

Comment 2 Andy Hall 2024-04-01 03:46:16 UTC
Created attachment 2024492 [details]
Logs from successful login

Comment 3 Andy Hall 2024-04-08 04:28:20 UTC
Sorry, this was a problem I caused for myself - I had created a systemd service that created an ordering cycle, so different services were failing to start up on each boot, and sometimes that included some prerequisites for Xwayland.