Debian 11 - Black screen at boot after switching to nvidia mode
Hi there! I'm on Debian 11 and I'm encountering an issue with envycontrol. Every time I switch from hybrid mode to nvidia, I get a black screen after rebooting the system. No login screen, so I have to switch back to hybrid. I want to enable only my dedicated GPU, because I noticed that steam games are using the integrated card, no matter what. Any idea how to solve the problem? I have an RTX 2070, and the drivers should be properly installed. Thanx, keep on with the good work!
To get steam games or any games in general to forcefully render on the nvidia gpu add this as lauch options __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia.
It should force the games to run on the dedicated gpu, also make sure than proprietary nvidia gpu drivers are installed.
Hi, thank you, but the launcher option changes nothing unfortunately. I think i have the correct drivers installed: I installed the nvidia-driver pakage, as recommended by nvidia-detect.
Could you send me the output of the xrandr --listproviders command?
I think the problem is when you use envycontrol to switch to nvidia, it doesnt populate the /usr/share/sddm/scripts/Xsetup file with the xrandr commands . Even if I do --dm sddm its just blank. I can go to a VT and populate with xrandr --setprovideroutputsource modesetting NVIDIA-G0 xrandr --auto
and restart sddm and it works... Looks like a bug?
Hello! I'm facing the same problem as OP, but I'm running Arch (kernel 6.1.3) with KDE plasma. Every time I switch from hybrid mode to nvidia, I also get a black screen after rebooting the system. I installed the nvidia-dkms driver (525.78.01-01). My Xsetup file is generated with the following commands when I switch to Nvidia:
xrandr --setprovideroutputsource "modesetting" NVIDIA-0 xrandr --auto
When I run xrandr --listproviders, I get the following:
Providers: number : 1 Provider 0: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:modesetting
I'm new to Arch, so I'm sorry if I'm doing any mistake.
@Cattapignula @joeg1484 @Fabirosmash please test the latest version