Switching to nvidia with suse-prime gives me no graphics

I’m on tumbleweed x86_64
CPU: 11th Gen Intel i7-11800H (16) @ 4.600GHz
iGPU: Intel TigerLake-H GT1 [UHD Graphics]
GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q
Kernel: 6.3.9-1-default

I’ve been trying to get the nvidia gpu to work on my laptop, I found a thread that described a similar problem, for reference:

Using prime-select nvidia prompts me to logout, logging out doesn’t work, I just get a black screen, so I logged in a console and rebooted. I tried sudo prime-select next-boot nvidia and, again, I just get no graphics.

I double checked and I do have nvidia drivers installed:

[lapcoon]raccoon:~$ zypper se -s nvidia
Loading repository data...
Reading installed packages...

S  | Name                                           | Type    | Version                   | Arch   | Repository
---+------------------------------------------------+---------+---------------------------+--------+------------------------
   | bumblebee-status-module-nvidia                 | package | 2.1.5-3.4                 | noarch | Main Repository (OSS)
   | bumblebee-status-module-nvidia                 | package | 2.1.5-3.4                 | noarch | openSUSE-20230625-0
   | bumblebee-status-module-nvidia-optimus-manager | package | 2.1.5-3.4                 | noarch | Main Repository (OSS)
   | bumblebee-status-module-nvidia-optimus-manager | package | 2.1.5-3.4                 | noarch | openSUSE-20230625-0
   | bumblebee-status-module-nvidia-prime           | package | 2.1.5-3.4                 | noarch | Main Repository (OSS)
   | bumblebee-status-module-nvidia-prime           | package | 2.1.5-3.4                 | noarch | openSUSE-20230625-0
i  | kernel-firmware-nvidia                         | package | 20230620-1.1              | noarch | Main Repository (OSS)
i  | kernel-firmware-nvidia                         | package | 20230620-1.1              | noarch | openSUSE-20230625-0
i  | kernel-firmware-nvidia-gsp-G06                 | package | 535.54.03-1.1             | x86_64 | Main Repository (OSS)
i  | kernel-firmware-nvidia-gsp-G06                 | package | 535.54.03-1.1             | x86_64 | openSUSE-20230625-0
   | libnvidia-egl-wayland-devel                    | package | 1.1.12-1.1                | x86_64 | Main Repository (OSS)
   | libnvidia-egl-wayland-devel                    | package | 1.1.12-1.1                | x86_64 | openSUSE-20230625-0
i  | libnvidia-egl-wayland1                         | package | 1.1.12-1.1                | x86_64 | Main Repository (OSS)
i  | libnvidia-egl-wayland1                         | package | 1.1.12-1.1                | x86_64 | openSUSE-20230625-0
   | libnvidia-egl-wayland1-32bit                   | package | 1.1.12-1.1                | x86_64 | Main Repository (OSS)
   | libnvidia-egl-wayland1-32bit                   | package | 1.1.12-1.1                | x86_64 | openSUSE-20230625-0
i  | nvidia-compute-G06                             | package | 535.54.03-10.1            | x86_64 | NVIDIA
i  | nvidia-compute-G06                             | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
i  | nvidia-compute-G06-32bit                       | package | 535.54.03-10.1            | x86_64 | NVIDIA
i  | nvidia-compute-G06-32bit                       | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
   | nvidia-compute-utils-G06                       | package | 535.54.03-10.1            | x86_64 | NVIDIA
   | nvidia-compute-utils-G06                       | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
   | nvidia-computeG04                              | package | 390.157-27.1              | x86_64 | NVIDIA
   | nvidia-computeG04                              | package | 390.157-27.1              | x86_64 | nVidia Graphics Drivers
   | nvidia-computeG04                              | package | 390.157-27.1              | i586   | NVIDIA
   | nvidia-computeG04                              | package | 390.157-27.1              | i586   | nVidia Graphics Drivers
   | nvidia-computeG04-32bit                        | package | 390.157-27.1              | x86_64 | NVIDIA
   | nvidia-computeG04-32bit                        | package | 390.157-27.1              | x86_64 | nVidia Graphics Drivers
   | nvidia-computeG05                              | package | 470.182.03-56.1           | x86_64 | NVIDIA
   | nvidia-computeG05                              | package | 470.182.03-56.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-computeG05-32bit                        | package | 470.182.03-56.1           | x86_64 | NVIDIA
   | nvidia-computeG05-32bit                        | package | 470.182.03-56.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-driver-G06-kmp-default                  | package | 535.54.03_k6.3.7_1-10.1   | x86_64 | NVIDIA
   | nvidia-driver-G06-kmp-default                  | package | 535.54.03_k6.3.7_1-10.1   | x86_64 | nVidia Graphics Drivers
   | nvidia-drivers-G06                             | package | 535.54.03-10.1            | x86_64 | NVIDIA
   | nvidia-drivers-G06                             | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
   | nvidia-drivers-minimal-G06                     | package | 535.54.03-10.1            | x86_64 | NVIDIA
   | nvidia-drivers-minimal-G06                     | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
   | nvidia-gfxG04-kmp-default                      | package | 390.157_k6.3.7_1-27.19    | x86_64 | NVIDIA
   | nvidia-gfxG04-kmp-default                      | package | 390.157_k6.3.7_1-27.19    | x86_64 | nVidia Graphics Drivers
   | nvidia-gfxG04-kmp-default                      | package | 390.157_k6.3.4_1-27.8     | i586   | NVIDIA
   | nvidia-gfxG04-kmp-default                      | package | 390.157_k6.3.4_1-27.8     | i586   | nVidia Graphics Drivers
   | nvidia-gfxG04-kmp-pae                          | package | 390.157_k6.3.4_1-27.8     | i586   | NVIDIA
   | nvidia-gfxG04-kmp-pae                          | package | 390.157_k6.3.4_1-27.8     | i586   | nVidia Graphics Drivers
i  | nvidia-gfxG05-kmp-default                      | package | 470.182.03_k6.3.7_1-56.16 | x86_64 | NVIDIA
i  | nvidia-gfxG05-kmp-default                      | package | 470.182.03_k6.3.7_1-56.16 | x86_64 | nVidia Graphics Drivers
i+ | nvidia-gl-G06                                  | package | 535.54.03-10.1            | x86_64 | NVIDIA
i+ | nvidia-gl-G06                                  | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
i  | nvidia-gl-G06-32bit                            | package | 535.54.03-10.1            | x86_64 | NVIDIA
i  | nvidia-gl-G06-32bit                            | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
   | nvidia-glG04                                   | package | 390.157-27.1              | x86_64 | NVIDIA
   | nvidia-glG04                                   | package | 390.157-27.1              | x86_64 | nVidia Graphics Drivers
   | nvidia-glG04                                   | package | 390.157-27.1              | i586   | NVIDIA
   | nvidia-glG04                                   | package | 390.157-27.1              | i586   | nVidia Graphics Drivers
   | nvidia-glG04-32bit                             | package | 390.157-27.1              | x86_64 | NVIDIA
   | nvidia-glG04-32bit                             | package | 390.157-27.1              | x86_64 | nVidia Graphics Drivers
   | nvidia-glG05                                   | package | 470.182.03-56.1           | x86_64 | NVIDIA
   | nvidia-glG05                                   | package | 470.182.03-56.1           | x86_64 | nVidia Graphics Drivers
   | nvidia-glG05-32bit                             | package | 470.182.03-56.1           | x86_64 | NVIDIA
   | nvidia-glG05-32bit                             | package | 470.182.03-56.1           | x86_64 | nVidia Graphics Drivers
i  | nvidia-open-driver-G06-signed-kmp-default      | package | 535.54.03_k6.3.9_1-1.2    | x86_64 | Main Repository (OSS)
i  | nvidia-open-driver-G06-signed-kmp-default      | package | 535.54.03_k6.3.9_1-1.2    | x86_64 | openSUSE-20230625-0
   | nvidia-texture-tools                           | package | 2.1.2-2.10                | x86_64 | Main Repository (OSS)
   | nvidia-texture-tools                           | package | 2.1.2-2.10                | x86_64 | openSUSE-20230625-0
   | nvidia-utils-G06                               | package | 535.54.03-10.1            | x86_64 | NVIDIA
   | nvidia-utils-G06                               | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
i+ | nvidia-video-G06                               | package | 535.54.03-10.1            | x86_64 | NVIDIA
i+ | nvidia-video-G06                               | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
i  | nvidia-video-G06-32bit                         | package | 535.54.03-10.1            | x86_64 | NVIDIA
i  | nvidia-video-G06-32bit                         | package | 535.54.03-10.1            | x86_64 | nVidia Graphics Drivers
   | pcp-pmda-nvidia-gpu                            | package | 5.2.5-3.5                 | x86_64 | Main Repository (OSS)
   | pcp-pmda-nvidia-gpu                            | package | 5.2.5-3.5                 | x86_64 | openSUSE-20230625-0
   | x11-video-nvidiaG04                            | package | 390.157-27.1              | x86_64 | NVIDIA
   | x11-video-nvidiaG04                            | package | 390.157-27.1              | x86_64 | nVidia Graphics Drivers
   | x11-video-nvidiaG04                            | package | 390.157-27.1              | i586   | NVIDIA
   | x11-video-nvidiaG04                            | package | 390.157-27.1              | i586   | nVidia Graphics Drivers
   | x11-video-nvidiaG04-32bit                      | package | 390.157-27.1              | x86_64 | NVIDIA
   | x11-video-nvidiaG04-32bit                      | package | 390.157-27.1              | x86_64 | nVidia Graphics Drivers
   | x11-video-nvidiaG05                            | package | 470.182.03-56.1           | x86_64 | NVIDIA
   | x11-video-nvidiaG05                            | package | 470.182.03-56.1           | x86_64 | nVidia Graphics Drivers
   | x11-video-nvidiaG05-32bit                      | package | 470.182.03-56.1           | x86_64 | NVIDIA
   | x11-video-nvidiaG05-32bit                      | package | 470.182.03-56.1           | x86_64 | nVidia Graphics Drivers

Using ```
zypper se x11-video-nvidiaG0*

lists drivers I don't have installed, is this the mistake? I obviously might be wrong but I thought I had the right set of drivers installed for my gpu.

@trashpanda That looks like you have a mixture of G05 and G06 packages, you need the G06 kmp…

You could also look at PRIME Render Offload rather than suse-prime… https://download.nvidia.com/XFree86/Linux-x86_64/535.54.03/README/primerenderoffload.html

That’s a very interesting option, I have to look into it, I feel like it would actually make things go better than they would if I loaded everything on the nvidia.

@trashpanda it’s what I use here, albeit with a desktop, two Nvidia cards and switcherooctl, but I have a laptop with dual AMD gpu’s and use switcherooctl here also for PRIME offload…

It looks a little outside of my comfort zone but maybe I can have a friend help me out

1 Like

Well, I have been failing at setting this up really bad.
There has to be something I fail to understand about this laptop, no matter what I try I can’t get to use my nvidia card and my games keep running really poorly or not run at all.

I am also having problems with nvidia and kernel 6.3.9

We need to wait out that kernel.

@trashpanda are you running X11 or Wayland?

I use X11 here…

inxi -G

Graphics:
  Device-1: NVIDIA GP104GL [Tesla P4] driver: nvidia v: 535.54.03
  Device-2: NVIDIA TU117GLM [Quadro T400 Mobile] driver: nvidia v: 535.54.03
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2 driver: X:
    loaded: nvidia gpu: nvidia,nvidia-nvswitch resolution: 1: 1920x1080~60Hz
    2: 1920x1080~60Hz 3: 1920x1080~60Hz 4: N/A
  API: OpenGL v: 4.6.0 NVIDIA 535.54.03 renderer: NVIDIA T400/PCIe/SSE2 <====

switcherooctl inxi -G

Graphics:
  Device-1: NVIDIA GP104GL [Tesla P4] driver: nvidia v: 535.54.03
  Device-2: NVIDIA TU117GLM [Quadro T400 Mobile] driver: nvidia v: 535.54.03
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2 driver: X:
    loaded: nvidia gpu: nvidia,nvidia-nvswitch resolution: 1: 1920x1080~60Hz
    2: 1920x1080~60Hz 3: 1920x1080~60Hz 4: N/A
  API: OpenGL v: 4.6.0 NVIDIA 535.54.03 renderer: Tesla P4/PCIe/SSE2 <====


switcherooctl list

Device: 0
  Name:        NVIDIA Corporation TU117GLM [Quadro T400 Mobile]
  Default:     yes
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only

Device: 1
  Name:        NVIDIA Corporation GP104GL [Tesla P4]
  Default:     no
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only
1 Like

I’m not on that laptop now so I can’t be sure but I think X11, I left everything default when installing.

you are not alone i have the same issue on a NEW “System 76” laptop running tumbleweed

for now i am stuck using the intell chip and not my nvidia card

@trashpanda and @johnvv if on X11 what does the output from the following show;

xrandr --listproviders

I announce my defeat.
I ended up installing artix as I was told arch handles nvidia well, worked like a charm. I wanted to just have the same distro on both, laptop and desktop, but as long as it works without too much troubles I’ll take it. With artix having runit it also boots really fast so that’s a plus.