Bug 501079 - Plasma 6.3.0 > 6.3.2 seems to break (NVidia) eGPU
Summary: Plasma 6.3.0 > 6.3.2 seems to break (NVidia) eGPU
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 6.3.2
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-05 00:03 UTC by GameBurrow
Modified: 2025-03-16 10:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GameBurrow 2025-03-05 00:03:56 UTC
SUMMARY
After running system update that includes plasma update to 6.3.2, I'm failing to switch to my NVidia egpu. 

To process to switch to my egpu is as follows:
1. Disable my laptops nvidia dedicated gpu (using supergfctl -m Integrated)
2. Reboot
3. Login to my kde session (wayland)
4. Run my egpu switch script in terminal which uses all-ways-egpu (https://github.com/ewagner12/all-ways-egpu), which is the following:
    function fixegpu()
    {
        sudo modprobe -r nvidia_drm && sudo modprobe nvidia_drm modeset=1 fbdev=1
        sudo all-ways-egpu set-boot-vga egpu
        sudo all-ways-egpu set-compositor-primary egpu
        # DISPLAY=:0 kwin --replace
        sudo systemctl restart display-manager.service
    }
5. After my script runs, the login screen re-appears on all of my monitors (laptop screen and my 4 external monitors that are connected to my egpu).
6. Once I click submit, my laptop display turns off and my external displays stay on but they stay black

Rolling back my update, which mostly includes plasma/kde 6.3.2 updates: https://pastebin.com/UjY24wMm
after step 5 I'm greeted with my plasma desktop. So plasma 6.3.0 and downwards works fine (was using later 6.2.x also during my month of being on linux, before nobara updated to 6.3.0)

STEPS TO REPRODUCE
Problably hard to do as it requires specific hardware. Follow steps described above with an laptop that has integrated intel gpu and nvidia external gpu. 

OBSERVED RESULT
After I've enabled my egpu and need to login again, I'm greeted with black screens instead of plasma desktop.

EXPECTED RESULT
After logging in again, I'm returned to my plasma desktop and everything is problerly using the egpu. This is how it worked in version 6.3.0 and older.

SOFTWARE/OS VERSIONS
> As I've rolled by my update, this is my details. Obviously only difference was plasma version
OS: Nobara Linux 41 (KDE Plasma) x86_64
Host: ROG Strix G733ZW_G733ZW (1.0)
Kernel: Linux 6.13.5-200.nobara.fc41.x86_64
Uptime: 24 mins
Packages: 3409 (rpm), 22 (flatpak-system), 29 (flatpak-user)
Shell: zsh 5.9
Display (DELL P2418D): 2560x1440 @ 60 Hz in 24" [External]
Display (DELL P2419H): 1920x1080 @ 60 Hz in 24" [External]
Display (DELD12D): 3440x1440 @ 144 Hz in 34" [External] *
Display (DELL P2211H): 1920x1080 @ 60 Hz in 22" [External]
DE: KDE Plasma 6.3.0
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Nobara) [Qt], Nobara [GTK2/3/4]
Icons: Papirus-Dark [Qt], Papirus-Dark [GTK3/4]
Font: Noto Sans (11pt) [Qt], Noto Sans (11pt) [GTK3/4]
Cursor: breeze (24px)
Terminal: konsole 24.12.2
CPU: 12th Gen Intel(R) Core(TM) i9-12900H (20) @ 5.00 GHz
GPU 1: NVIDIA GeForce RTX 3080 [Discrete]
GPU 2: Intel Iris Xe Graphics @ 1.45 GHz [Integrated]
Memory: 5.76 GiB / 31.00 GiB (19%)
Swap: 0 B / 42.09 GiB (0%)
Disk (/): 217.74 GiB / 918.20 GiB (24%) - btrfs
Disk (/mnt/ssd2tb_linux): 1.02 TiB / 1.79 TiB (57%) - ext4
Local IP (enp46s0): 192.168.1.38/24
Battery (GA50358): 99% [AC Connected]
Locale: en_GB.utf8


ADDITIONAL INFORMATION
I'll try to assist in any way possible.
Comment 1 GameBurrow 2025-03-05 14:13:24 UTC
I've now excluded all packages that had plasma/kde/sddm in their name or their version number matched 6.3.2-1 (full list here https://pastebin.com/ucKpZFxC ) and updated the system, installing all other updates so I've certainly narrowed down the issue to be plasma related.
Comment 2 Zamundaaa 2025-03-05 15:48:26 UTC
Please attach the output of
> journalctl --user-unit plasma-kwin_wayland --boot 0
after triggering the problem and
> drm_info
while the eGPU is connected (primary or not doesn't matter)
Comment 3 GameBurrow 2025-03-05 16:07:20 UTC
(In reply to Zamundaaa from comment #2)
> Please attach the output of
> > journalctl --user-unit plasma-kwin_wayland --boot 0
> after triggering the problem and
> > drm_info
> while the eGPU is connected (primary or not doesn't matter)

I hope I got it right as I had to save it file from tty for obvious reasons (first month fully using linux so not really familar with everything yet).

This is the journalctl output after the issue occurs (when I had black monitors):
https://pastebin.com/3DBFbPPW

This is the drm_info in the same session:
https://pastebin.com/WSqzXrgy
Comment 4 GameBurrow 2025-03-05 16:20:51 UTC
In comparison, here's the journactl log on plasma 6.3.0 when it works after display manager restart and logon:
https://pastebin.com/GWBHxbEX

Not sure if it helps.
Comment 5 GameBurrow 2025-03-16 10:08:43 UTC
Whatever you guys did, some of my plasma packages updates to 6.3.3 today (including kwin) and the issue seems to have gone. 

Also upgraded the remaining packages to 6.3.2, works. (Packages that didn't get 6.3.3 but 6.3.2 worked: https://pastebin.com/EE17sPzv )