Nvidia graphics working but want to understand why

New tumbleweed user here and first time posting (after reading for a couple of weeks).

After trying tumbleweed in a VM I decided to install it on my ASUS Vivobook notebook (AMD CPU and NVIDIA 3050 graphics) that is also running Windows 11. The install went without problems. I noticed that after install that the NVIDIA repo was present however the drivers itself were not installed. A couple of days later I ran a sudo zypper dup and noticed that the correct NVIDIA drivers would be installed. Since I wanted to install them anyway I continued. The drivers were correctly installed and the switcheroo-control package was also installed. I enabled the switcheroo-control service and can now switch between the internal AMD GPU and the NVIDIA GPU. Good! However I would like to understand why the NVIDIA repo was automatically added at install of tumbleweed and why the drivers were automatically installed at the first sudo zypper dup after installing tumbleweed? Reading the documentation I thought that some manual work was involved in getting everything working for offloading to the NVIDIA GPU.

@ijskegel Hi and welcome to the Forum :smile:
AFAIK the service to add the Nvidia repo was added to make life easier for users :wink: a distribution enhancement…

bor@10:~> zypper info --supplements openSUSE-repos-Leap-NVIDIA
...
Supplements    : namespace:modalias(pci:v000010DEd*sv*sd*bc03sc*i*)

bor@10:~> 

(Just happened to have Leap VM up and running).

If you look at KMP package Supplements you will see why.

Ok, thanks. It was indeed very easy this way. BTW, thanks for all your forum posts explaining dual graphics and the use of suse prime and switcherooctl. Having read about them before actually installing Tumbleweed was of great help.

I have the openSUSE-repos-MicroOS-NVIDIA package installed. Why was this one automatically installed instead of the openSUSE-repos-Tumbleweed-NVIDIA package?

patrick@vivobook:~ > zypper se openSUSE*NVIDIA
Loading repository data...
Reading installed packages...

S  | Name                             | Summary                                | Type
---+----------------------------------+----------------------------------------+--------
i  | openSUSE-repos-MicroOS-NVIDIA    | openSUSE NVIDIA repository definitions | package
   | openSUSE-repos-Slowroll-NVIDIA   | openSUSE NVIDIA repository definitions | package
   | openSUSE-repos-Tumbleweed-NVIDIA | openSUSE NVIDIA repository definitions | package
patrick@vivobook:~ > zypper info --supplements openSUSE-repos-MicroOS-NVIDIA
Loading repository data...
Reading installed packages...


Information for package openSUSE-repos-MicroOS-NVIDIA:
------------------------------------------------------
Repository     : repo-oss
Name           : openSUSE-repos-MicroOS-NVIDIA
Version        : 20240712.dd8c2eb-1.1
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 284 B
Installed      : Yes (automatically)
Status         : up-to-date
Source package : openSUSE-repos-MicroOS-20240712.dd8c2eb-1.1.src
Upstream URL   : https://github.com/openSUSE/openSUSE-repos
Summary        : openSUSE NVIDIA repository definitions
Description    : 
    Definitions for NVIDIA repository management via zypp-services
Supplements    : namespace:modalias(pci:v000010DEd*sv*sd*bc03sc*i*)

Both packages satisfy Supplements condition and zypper just takes the first one in alphabetical order. As long as Tumbleweed and MicroOS are using the same repository I am not sure how it can be resolved properly.

Thanks. Can I keep using it as is, or should I change to the tumbleweed package? If I need to change, what would be the best way?

For now MicroOS and Tumbleweed services return the same repositories, but should they ever diverge, you will suddenly switch to MicroOS. This already happened with Slowroll in the past. So, yes, you better change to the appropriate package. Oh, and before doing it bug report showing the current state will certainly be in order.

Just instal openSUSE-repos-Tumbleweed-NVIDIA, it should suggest removing the other one (and likely also switch openSUSE-repos-MicroOS to openSUSE-repos-Tumbleweed).

Thanks, the suggested fix works.

I have filed the following bug report: 1228231 – Tumbleweed Network image defaults to openSUSE-repos-MicroOS(-NVIDIA)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.