optimus-switch-sddm icon indicating copy to clipboard operation
optimus-switch-sddm copied to clipboard

Black screen when switching to nvidia.

Open LouisHLAV opened this issue 4 years ago • 9 comments

Hi! I just installed optimus-switch following the instructions in the readme page and it works just fine for intel mode: inxi -g returns

Graphics:
  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel
  Display: x11 server: X.Org 1.20.8 driver: intel
  resolution: 2160x1440~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
  v: 4.6 Mesa 20.0.4

The problem arises when I try to use nvidia mode, which causes a black screen on boot (when SDDM was supposed to show up).

~mhwd -li output:

`> Installed PCI configs:

              NAME               VERSION          FREEDRIVER           TYPE

video-nvidia-440xx            2019.10.25               false            PCI`

LouisHLAV avatar Apr 18 '20 19:04 LouisHLAV

Same here, hope there someone has a solution :/

jvrviegas avatar Apr 26 '20 13:04 jvrviegas

The solution i found its start the system on the hybrid mode, so the main GPU used will be the onboard and only use the dedicated GPU for the programs that its really necessary, by running them with this command (or adding to the application properties):

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %program%

This will make the program start with the dedicated GPU with no problem.

Hope that helps!

jvrviegas avatar Apr 28 '20 11:04 jvrviegas

Thank you for the workaround, @jvrviegas! But if you pardon my "newbieness", may I ask how do I start the system in hybrid mode?

LouisHLAV avatar Apr 30 '20 22:04 LouisHLAV

Thank you for the workaround, @jvrviegas! But if you pardon my "newbieness", may I ask how do I start the system in hybrid mode?

sorry for the late response, the problem with the system hanging the first reboot after switching to intel mode is because for some unknown reason and update to SDDM makes it so it now runs Xsetup during shutdown/reboot and it's not suppose to and because of that it tries to power down the nvidia gpu (what the Xsetup script does on intel mode) and that causes the system to hang.

but a bug in kde/sddm? impossible :sweat_smile:

anyhow instead of waiting for sddm to get fixed im working on a workaround instead, i'll post it here when it's all set

dglt1 avatar May 12 '20 14:05 dglt1

Thank you for responding, @dglt1! I will wait eagerly for the workaround. For the time being I'm running my beloved KDE on intel only mode and using Pop!_OS when I need the extra GPU power (they have great driver support, including a native "optimus-switch").

Please let me know if I can somehow assist!

LouisHLAV avatar May 12 '20 14:05 LouisHLAV

Any luck on this?

oclay1st avatar Jul 05 '20 20:07 oclay1st

I tried it again after the latest update on Manjaro and everything worked perfectly. One thing I notice after running gpu_switch_check script is that I got more than one api call works output, which is interesting btw. Thanks and best regards

oclay1st avatar Jul 27 '20 19:07 oclay1st

I tried it again after the latest update on Manjaro and everything worked perfectly. One thing I notice after running gpu_switch_check script is that I got more than one api call output, which is interesting btw. Thanks and best regardsworks

may i ask u what version is your Manjaro?

FENG-MASTER avatar Jul 30 '20 09:07 FENG-MASTER

may i ask u what version is your Manjaro?

Manjaro KDE 20.0.3, I have an Nvidia GeForce GTX 1660 Ti and an i7-9750H, driver video-nvidia-440.100

oclay1st avatar Aug 01 '20 03:08 oclay1st