How to setup hybrid GPU with Nvidia?

Hello,

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version:

Lx 6

Desktop environment (KDE, LXQT…):

KDE

Does OpenMandriva supports hybrid GPU with Nvidia? If I switch to hybrid in my bios setting my nvidia gpu cannot be detected. It can be detected only if I switch to discrete only in my bios.

Thanks.

2 Likes

@yongkie
welcome1

2 Likes

Anything useful here?
Request for prime-run

Thanks @rugyada for the hint. I’ll check the discussion there.

Apparently few people use the distro on such laptops. And is supported accordingly, but with time everything changes for the better. What do you use to check your GPUs? Have you tried installing the proprietary NVIDIA driver?

1 Like

Make sure your BIOS is up to date, and you may need to specify your nvidia card explicitly instead of using a hybrid setting.

2 Likes

This is what I generally do. I use a hybrid laptop for gaming with OMLx and use discrete graphic selection, instead of hybrid mode. For steam I always have it set to use my Nvidia card for my games with DXVK_FILTER_DEVICE_NAME=“4050” %command%

1 Like

thanks for the hint. But, I don’t understand 100%. What did you mean with specify my nvidia card explicitly? In the bios or in a config file or as environment variable?
As I wrote above, I would like to set the graphics mode in my bios to hybrid, then OM should detect it automatically or can be configured through a config file or env varibale in the OM.

@pastorczo13 what did you mean using a hybrid laptop, but use discrete graphic selection instead of hybrid mode?

After the initial OM installation, no nvidia driver is installed on my laptop.
I can activate the non-free repository in the OpenMandriva Software Repository Picker. Then running sudo dnf install nvidia-prime returns “Error: unable to find a match : nvidia-prime”

^

We don’t ship the distribution with the closed nvidia driver pre-installed. Adding non-free was the correct step.

dnf search nvidia-prime
Updating and loading repositories:
Repositories loaded.
Matched fields: name (exact)
 nvidia-prime.noarch: NVIDIA Prime Render Offload utilities

sudo dnf in nvidia-prime --refresh

Ah, it’s because nvidia-prime is not done for ROME and 6.0 yet.

Ah, my update channel in the Repo Selector is still in Rolling.
After changing it to Cooker, dnf can find nvidia-prime.
Thanks @rugyada too.

1 Like

So what you have actually?

cat /etc/openmandriva-release

You also can’t just change release types without doing a dsync or your system can break. Cooker is also a release that is for development. There are periods of time where you should hold off on doing your dsync’s because your system can break.

OpenMandriva Lx release 25.06 (ROME) Rolling for x86_64

1 Like

After change the update channel to Cooker.
Running sudo dnf --refresh distro-sync returns these errors:

ckage lib64osmesa8-25.0.7-1.x86_64 from @System requires libLLVM.so.19.1(LLVM_19.1)(64bit), but none of the providers can be installed
  - lib64llvm-19.1.7-1.x86_64 from @System  does not belong to a distupgrade repository
  - problem with installed package lib64osmesa8-25.0.7-1.x86_64
 Problem 2: package x11-driver-input-1.0.0-36.x86_64 from cooker-x86_64 requires x11-driver-input-wacom, but none of the providers can be installed
  - problem with installed package x11-driver-input-1.0.0-36.x86_64
  - package x11-driver-input-wacom-1.0.0-2.x86_64 from cooker-x86_64 requires xserver-abi(xinput-24) >= 4, but none of the providers can be installed
  - package x11-driver-input-wacom-1.0.0-2.x86_64 from @System requires xserver-abi(xinput-24) >= 4, but none of the providers can be installed
  - package x11-driver-input-1.0.0-36.x86_64 from @System requires x11-driver-input-wacom, but none of the providers can be installed
  - x11-server-common-21.1.18-1.x86_64 from @System  does not belong to a distupgrade repository
  - problem with installed package x11-driver-video-amdgpu-23.0.0-1.x86_64
  - package x11-driver-video-amdgpu-23.0.1~20250620-1.x86_64 from cooker-x86_64 requires xserver-abi(videodrv-28) >= 0, but none of the providers can be installed
  - package x11-driver-video-amdgpu-23.0.1~20250613-2.x86_64 from cooker-x86_64 requires xserver-abi(videodrv-28) >= 0, but none of the providers can be installed
  - package x11-driver-video-amdgpu-23.0.1~20250613-1.x86_64 from cooker-x86_64 requires xserver-abi(videodrv-28) >= 0, but none of the providers can be installed
  - package xlibre-common-21.1.17~20250611-1.x86_64 from cooker-x86_64 obsoletes x11-server-common < 21.1.17~20250611-1 provided by x11-server-common-21.1.16-1.x86_64 from cooker-x86_64
  - package xlibre-common-21.1.17~20250611-2.x86_64 from cooker-x86_64 obsoletes x11-server-common < 21.1.17~20250611-2 provided by x11-server-common-21.1.16-1.x86_64 from cooker-x86_64
  - package xlibre-common-21.1.17~20250618-1.x86_64 from cooker-x86_64 obsoletes x11-server-common < 21.1.17~20250618-1 provided by x11-server-common-21.1.16-1.x86_64 from cooker-x86_64
  - package xlibre-common-21.1.17~20250620-1.x86_64 from cooker-x86_64 obsoletes x11-server-common < 21.1.17~20250620-1 provided by x11-server-common-21.1.16-1.x86_64 from cooker-x86_64
  - package xlibre-common-25.0.0.0-2.x86_64 from cooker-x86_64 obsoletes x11-server-common < 25.0.0.0-2 provided by x11-server-common-21.1.16-1.x86_64 from cooker-x86_64
  - x11-driver-video-amdgpu-23.0.0-1.x86_64 from @System  does not belong to a distupgrade repository
(try to add '--skip-broken' to skip uninstallable packages)

Can I just ignore it or I should install the cooker version?

Put your -- options at the end. Cooker uses dnf5 by default, and not doing that can cause an error.

You should be okay to do your dsync from the System Update application/script in the Application Menu. It will run the correct commands for you.

tbh I would not upgrade to cooker at this moment.
Please wait a bit further until we do some test.

What returns command
sudo dnf --enablerepo=cooker-x86_64-non-free install nvidia-prime --refresh
?

Postedit:
of course you want to change repository back to rolling and
sudo dnf clean all;dnf clean all;dnf repolist

Can you install inxi and show the output from the inxi -G command? We need to make sure that the system can still see your two GPUs and this can be solved by using PRIME Offload or some other way of switching between GPUs.

1 Like