https://bugs.kde.org/show_bug.cgi?id=473983
Bug ID: 473983 Summary: Setting NVIDIA PRIME OFFLOAD in startup script causes black screen Classification: Plasma Product: kwin Version: 5.27.7 Platform: Archlinux OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: wayland-generic Assignee: kwin-bugs-n...@kde.org Reporter: vishalsubraman...@outlook.com Target Milestone: --- SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. Set up the following environment variables in a KWin startup script export __NV_PRIME_RENDER_OFFLOAD=1 export __VK_LAYER_NV_optimus=NVIDIA_only export __GLX_VENDOR_LIBRARY_NAME=nvidia 2. Start plasma on wayland What was my objective in doing this? I have an Optimus setup with NVIDIA and Intel graphics. On Wayland, I wanted to use NVIDIA as primary GPU. There was no option for doing this. Instead, the prime-run script is the only option for launching individual programs on the GPU. The script essentially sets the above variables before starting a program. So I thought I could do the same in a KWin script, so that anything spawned after that uses the NVIDIA GPU for offloading. OBSERVED RESULT Black screen with a mouse cursor appears. Can open applications using keyboard shortcuts (for example, Konsole using Ctrl+Alt+T), and can start other applications from Konsole. Application windows are visible, but everything else is black. EXPECTED RESULT A functioning desktop with all the panels, wallpapers, etc. Operating System: Arch Linux KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.109.0 Qt Version: 5.15.10 Kernel Version: 6.4.12-arch1-1 (64-bit) Graphics Platform: Wayland ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.