Correct Nvidia drivers for Optimus

Hi,
I just switched to Manjaro and are running an Dell Precision with both Intel iGPU and a Nvidia RTX2000A. I tried installing the proprietary drivers with the auto install and ended up with a non working display server. Uninstalling the drivers via chroot failed. I just installed the system today, so the quickest solution was going f…it and reinstall again. Now, how do I setup this correctly?

The goal would be to use the Nvidia GPU for Steam.

Output of inxi

Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA107GLM [RTX A2000 Mobile] driver: nouveau v: kernel
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
  Display: wayland server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.8
    compositor: gnome-shell v: 43.3 driver: gpu: i915 resolution: 1920x1200~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.5 renderer: Mesa Intel UHD Graphics (TGL GT1)

Last try to uninstall the drivers again which didnt work for reference

[manjaro-gnome /]# sudo mhwd -r pci video-nvidia
Error: config 'video-nvidia' is not installed!



[manjaro-gnome /]# sudo mhwd -l   
> 0000:01:00.0 (0302:10de:25b8) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.11.04               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.11.04               false            PCI
          video-nvidia            2021.11.04               false            PCI
    video-nvidia-470xx            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:00:02.0 (0300:8086:9a60) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.11.04               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


[manjaro-gnome /]# sudo mhwd -r pci video-hybrid-intel-nvidia-prime
> Removing video-hybrid-intel-nvidia-prime...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/video-hybrid-intel-nvidia-prime/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-utils breaks dependency 'nvidia-utils' required by cuda
Error: pacman failed!
Error: script failed!




You probably have one of the newest intel CPUs. Since the NVIDIA module does not support ibt, you have to disable it by a kernel parameter: ibt=off.

As you can see, you installed cuda. Therefore, you need to uninstall cuda first, since cuda depends on nvidia-utils.

Just add this to the startup options of the game:

prime-run %command%

and you use the NVIDIA GPU.

1 Like

That would make sense, CPU is a i7 11800H

Tried that, but at least via Chroot I had no chance.

Edit:
added ibt=off to the kernel parameters and now booting with the proprietary drivers is not an issue anymore, although now the automatic install chose video-hybrid-intel-nvidia-prime not video-hybrid-intel-nvidia-470xx-prime.

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