Prime-select intel goes to tty upon login, only prime-select offload logs into in a GUI

Hello, I just installed Tumbleweed yesterday on my Dell XPS 9700. I have a Intel CometLake-H GT2 as my iGPU and a TU106M [GeForce RTX 2060 Max-Q] as my dGPU. I would like to use prime-select intel to be able to turn off my Nvidia card completely when I am at school/work.

However, when I run sudo prime-select intel and log in and out, it brings me to a tty and then freezes. When I reboot and run sudo /usr/sbin/prime-select get-current it says that I’m using offload. When I run nvidia-smi when not running any graphically intensive programs it tells me that the nvidia card has a perf of P8, and is using 3 W/65 W, so if I’m not mistaken it’s not completely turned off. Is this normal for SUSEPrime? I would prefer if this didn’t happen as my battery life is limited.

I installed bbswitch along with running zypper install-new-recommends --repo repo-non-free to install the recommended nvidia drivers for my GPU. When I run
if [ ! -s /etc/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf ]; then cp 09-nvidia-modprobe-bbswitch-G04.conf /etc/modprobe.d && dracut -f fi
it spits out cp: cannot stat '09-nvidia-modprobe-bbswitch-G04.conf': No such file or directory

My xorg.conf.d folder looks like this:
image

I’m fairly new to working with nvidia drivers on linux so please bear with me. My ultimate goal is to be able to use prime-select intel and prime-select nvidia properly, going to the GUI instead of a tty.

Thanks in advance.

I’m trying to figure out nvidia drivers too(but for eGPU) so I’m not very experienced here, but I noticed that your commands mention G04 and your GPU is a 2000 series. G04 is for Fermi series(400/500 series) whereas G06 is for 700 series and newer. Perhaps you’re using the wrong driver?

Source SDB:NVIDIA drivers - openSUSE Wiki

1 Like

Ah, thanks for the reply. Replacing G04 with G06 gives me the same output unfortunately.

Forgot to mention this in the original post: I have seen creating a 10-nvidia.conf file as outlined in this post Official driver 384.59 with GeForce 1050m doesn't work on openSUSE Tumbleweed KDE - #2 by generix - Linux - NVIDIA Developer Forums mentioned as a solution. I’m not sure, however, how to get KDE to run
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
on startup. If anyone could advise me on this I’d be grateful.

You mixed some heavily outdated (2017!) instructions from different places. Not sure why the github page lists wrong commands.

The way to get suse-prime running on openSUSE is straight forward and described here:
https://en.opensuse.org/SDB:NVIDIA_SUSE_Prime
This instruction worked flawlessly on my Optimus setup.

I’m curious if you are able to revert all the wrong settings you have done and can get to a clean state to start with.

1 Like

Thanks for the response. I’m considering doing a fresh install then. In that case, would I ignore the instructions given in GitHub - openSUSE/SUSEPrime: Provide nvidia-prime like package for openSUSE and just use the instructions on the wiki?

I did a rollback to my system right after installation and ran zypper install openSUSE-repos-Tumbleweed-NVIDIA and got this:


It appears that I had the MicroOS repos installed automatically during the system installation for whatever reason. I went ahead with option 1. Could this be what’s causing the problem?

No that is not the cause. The MicrOS repos contain the same packages like the Tumbleweed one. But the MicroOS repo on a Tumbleweed system is an old issue what got fixed some time ago. As you rolled back to an old snapshot, this minor cosmetic issue appeareded again on your system. Solution 1 was the right choice.

Small hint: If you have terminal output and you want to post it here, simply copy it from the terminal and put it in </> preformatted text tags in the forum editor. First hit the </> button and then place the terminal output between the tags.

1 Like

Thanks for your help!
After running zypper install-new-recommends --repo repo-non-free I installed the suse-prime and bbswitch-kmp-default packages, and then ran prime-select boot intel and rebooted. When I did so, openSUSE brought me to a black screen. When I rebooted again, I got into the GUI and ran /usr/sbin/prime-select get-current and got

Driver configured: intel
[bbswitch] NVIDIA card is ON

So it’s set to Intel but the Nvidia card is still on for some reason. I’m not sure how to get it to turn off properly.

When I run nvidia-smi it responds:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

It appears that the kernel firmware for the G06 driver is not installed. Could this be the issue?

nvidia-smi only works when you are running on the Nvidia card. that means prior using nvidia-smi you need to prime-select boot nvidia

And you should already have kernel-firmware-nvidia installed. That is the correct one.

1 Like

Thank you!
Should I install all three packages I had in the above image? Would this fix the issue where prime-select get-current says that the NVIDIA card is on even in Intel mode?

If nvidia-smi only works when the NVIDIA card is running, does that mean that the card is actually off right now despite what prime-select get-current says?

Unfortunately I am still having the same problem in my original message, but worse. I ran prime-select boot intel, rebooted, and now when I boot into Tumbleweed my system appears to freeze up and I get this screen:

Rebooting again leads to the same screen. Trying to restore from a previous snapshot does not help. When I ran prime-select boot nvidia before this it worked fine. Any idea what to do?