Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black screen when switching to nvidia. #11

Open
LouisHLAV opened this issue Apr 18, 2020 · 9 comments
Open

Black screen when switching to nvidia. #11

LouisHLAV opened this issue Apr 18, 2020 · 9 comments

Comments

@LouisHLAV
Copy link

LouisHLAV commented Apr 18, 2020

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`
@jvrviegas
Copy link

Same here, hope there someone has a solution :/

@jvrviegas
Copy link

jvrviegas commented Apr 28, 2020

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!

@LouisHLAV
Copy link
Author

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

@dglt1
Copy link
Owner

dglt1 commented May 12, 2020

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 😅

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

@LouisHLAV
Copy link
Author

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!

@oclay1st
Copy link

oclay1st commented Jul 5, 2020

Any luck on this?

@oclay1st
Copy link

oclay1st commented Jul 27, 2020

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

@FENG-MASTER
Copy link

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?

@oclay1st
Copy link

oclay1st commented Aug 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants