Thanks @awerlang. that makes sense since there are two graphic cards installed, Intel integrated graphics and Nvidia GeForce RTX 3050 Ti.
The chapters you referred me to are very helpful. I need to read it more carefully to understand offloading graphics. So it’s possible to switch back and forth between graphic cards as the primary? if there are no entries in xorg.conf, then there is no description or configuration for the Nvidia card; how can this GPU be used if xorg.conf has no entries for it? If there is no explicit xorg.conf, it may be energy efficient but wouldn’t that be more demanding on other system resources (for example, the integrated Intel graphics card would use RAM whereas the Nvidia card would use its dedicated 4 GB of graphics memory)? Sorry for the questions and my confusion; this is my first time with a dedicated graphics card.
@dad4linux that’s not how offload works, not xorg.conf necessary, unless it is used as the primary graphics gpu (suse-prime, or if BIOS supports changing).
It could also be Leap 15.4 showing it’s age with respect to the release of your Ampere card…
Question: both lspci and inxi show the Nvida card. Maybe xrandr doesn’t show Nvidia because xorg.conf is empty? How can you tell that xrandr --listproviders is not showing the Nvidia GPU? The output looks cryptic to me.
@malcolmlewis
suse-prime SDB:NVIDIA SUSE Prime - openSUSE Wiki) looks like an awesome tool to easily switch between graphic cards. can I use this to activate my nvidia gpu when I like or is there still some config I’m missing? Is suse-prrime compatible with the official Nvidia drivers (no conflicts?
@dad4linux I’ve run intel/nvidia before, my current setup is Nvidia/Nvidia (This is a Tumbleweed Workstation HP Z440) I only have an Xorg file for the primary GPU…
@dad4linux it should work, what suse-prime does is create an xorg.conf file when you switch to nvidia, then removes it when you switch back to intel.
You need suse-prime and the bbswitch files as well… So you can have either intel, nvidia, or AFAIK it should work offload, when you try that you need to check xrandr outpout again, if you donot see both devices then it will not work, so can only switch between the two.
I suspect if you tried booting a Tumbleweed Live USB the results will be different…
However, nvidia-smi and nvidia-settings seemed to be uninstalled. I also installed from YaST the package nvdock to see info on the GPU as it is being used. The program failed because it couldn’t find nvidia-settings. I reinstalled the downloaded drivers from NVIDIA’s website:
# ./NVIDIA-Linux-x86_64-525.89.02.run
The installer asked me if I wanted to install over the existing drivers, I clicked yes. The installation was successful and after rebooting, success! nvidia-smi and nvidia-settings were reinstalled. nvdock works and I see the metrics and stats on the GPU.
I tried reverting back to Intel integrated GPU by running: # prime-select boot intel
However, X server didn’t start at all upon reboot and I was at a text-only prompt. Will try again and report but happy the NVIDIA GPU works! Thanks so much to @malcolmlewis and @awerlang for your help and suggestions.
@dad4linux Hi, check after you switch back to intel if there is a xorg.conf file in /etc/X11/ or /etc/X11/xorg.conf.d and in that file if it refers to the nvidia device. If it is, copy it out of that location and reboot and it should be running the intel device. I would try setting suse-prime to use offload mode and see if that works.
I suspect if you switch back to nvidia, it may start working as the run file may have created it’s own file, AFAIK suse-prime creates/deletes as required.
If you switch back to the Nvidia rpms, you may need to ensure the nvidia-utils package is installed, this should have nvidia-smi etc present.
There was no xorg.conf file in either /etc/X11/ or /etc/X11/xorg.conf.d/. I noticed that after running prime-select, a file (either 90-nvidia.conf or 90-intel.conf was generated in /etc/X11/xorg.conf.d/. Running prime-select boot intel or prime-select boot offload didn’t work; X didn’t start and was dropped to text login screen. In fact, noticed that network didn’t even start - there was no internet after logging in.
After running prime-select boot intel, this is what /etc/X11/xorg.conf.d/90-intel.conf contained (there was no 90-nvidia.conf):
@dad4linux I would suggest uninstalling the run file and install the Nvidia rpms, suse-prime and the bbswitch stuff with the -f (force) option and see how it goes. I would also install the nvidia-utils package too.
I don’t understand why you use the Nvidia driver from Nvidia.
Add the NVIDIA repo with Yast software manager.
Restart the laptop
Go to yast software manager. You see that the required Nvidia packages and prime packages are automatically selected. Just accept the selection to install the driver and restart.
That’s all.
For your RTX card i assume G06 packages are installed.
In case you need to do a manual installation of the driver and Prime there is a new meta package for a full installation “nvidia-drivers-G06”. I did not test this.
After an kernel update, the Nvidia dock (nvdock) and nvidia-settings (which is needed to run nvdock) no longer start. I didn’t know how to uninstall the drivers I downloaded from Nvidia and manually installed. I think some update went awry because some strange behaviour for certain packages started happening after the update. Reinstalled and did as you suggested - only using the provided Nvidia software and drivers from the openSUSE repos. I also followed the directions: SDB:NVIDIA drivers - openSUSE Wiki.
Found this method the easiest and straight forward and tailored to openSUSE.
I did not install the drivers directly from Nvidia but enabled the Nvidia repositories in YaST’s Software Management: Configuration > Repositories > Add button > Community Repositories > check / enable the Nvidia respositories. Nvidia packages appeared already selected (*-G06). After installing the selected packages and disabling the nouveau driver, I rebooted but the Nvidia dock didn’t work; nvidia-settings still wasn’t installed. Went back to YaST Software Management and installed nvidia-utils-G06. Rebooted and nvidia-settings and nvdock worked and was able to see the resources used by the GPU. Thank you everyone for your help.
Earlier in this thread, it was mentioned that I could switch between the Intel integrated GPU and the Nvidia GPU. How does one do this? And how can I tell which GPU is being currently used? When I run:
So from this output, it is reported that both Kernel drivers are in use but does this mean that both GPUs are active? How is that possible? Is it possible to select one GPU at a time; if so how?
Thanks again.
You don’t need to disable nouveau driver. When installing NVIDIA driver then automatically NVIDIA driver replaces nouveau driver.
If you have a laptop, there is a technology based on hardware and software to save energy. In case of apps don’t need graphical power, the laptop uses the Intel iGPU. In case of apps need graphical power, the laptop uses the Nvidia dGPU.
This tech does not exist for desktop.
For openSUSE, the software part is named “Prime”. If you get a laptop when installing the Nvidia driver then the following Prime packages are installed ;
plasma5-applet-suse-prime - Plasma 5 applet for controlling SUSE Prime
suse-prime - GPU (nvidia/intel) selection for NVIDIA optimus laptops with bbswitch support
Best information for graphics status I find comes from inxi -Ga. inxi -Gaz does a little filtering of possibly sensitive host information. Inxi in Leap is antique and broken, particularly -G*. Run inxi -U to update it to current version from upstream, which includes many changes to -G.
@promeneur with some newer ‘optimus’ type laptops and powered with the RTX series cards suse-prime is deprecated in favor of prime render offload depending on the hardware setup.
It does exist for desktops, I use prime render offload here with a secondary Nvidia card, my primary GPU (T400) running at full power max is only 30W, offload gpu (Tesla P4, around 50-75w at full power).
I ran this setup with the primary card which was intel as well…
I use switcherooctl (dbus service) to offload, it is integrated with GNOME to add a right-click option to application desktop files to launch with the ‘discrete’ gpu this also works on my HP Dual AMD Polaris GPU powered laptop
If I change graphics card from “nvidia” to “intel” (or even “intel2”) and reboot, X doesn’t start and I’m dropped down to a text login prompt.
# prime-select boot intel
HDMI (video) works only with "nvidia"selected and graphical boots normally. I’d like to switch between intel and nvdia graphics but I’m ok if only can use nvidia that except that the hdmi sound doesn’t work. Not sure how to troubleshoot or the solutions. I’m hesitant to try Tumbleweed because in my experience with it I found sooner or later an update causes some packages to break. I chose Leap because it’s a bit more stable and updates aren’t so big and would wear less on my nvme ssd drive.
Does anyone have any such trouble with dual graphic cards? Anyone with dual graphic cards have any success?
Hi,
I have no dual graphic card but I am using nvidia rtx 3050 also.
I am using the .run installer with no problem.
Edit:
With the .run driver installer sometimes during a kernel update and you reinstall the said driver and it failed to reach the graphical target, issuing mkinitrd will clear the problem and reach the gui again.
Note: mkinitrd is gone in tumbleweed and you need to use dracut.