Help wanted installing Nvidia drivers!

Hello everyone! Have been using Manjaro linux for about half a year. Pretty solid experience! Anyways, getting to the point:

How do I install amd-prime to use the proprietary Nvidia driver with the internal AMD gpu?

Mod edit:- Please refrain from posting screenshots of textual content. Use only the </> preformatted text options.

Welcome to the Manjaro community.

As a new forum user, please take some time to familiarise yourself with Forum requirements; in particular, the many ways to use the forum to your benefit:

The Update Announcements should be checked frequently for important update related information.

These announcements contain a Known Issues and Solutions section and should generally be checked before posting a request for support.

Output of the following command formatted according to forum requirements (see links above) may be useful for those wishing to help:

inxi --admin --verbosity=8 --filter --no-host --width

Be prepared to provide more information and outputs from other commands when asked.

Regards.

2 Likes

Welcome to the forum! :wave:

You mean the video-hybrid-amd-nvidia-prime MHWD profile? That should have already been automatically installed if you chose proprietary drivers during your initial install. See Configure Graphics Cards - Manjaro

Please post your system information and the output of the following command using preformatted text:

mhwd --list && mhwd --listinstalled
3 Likes

First of all, yes I did chose proprietary drivers during initial install, but for some reason it chose open-source nvidia drivers instead of proprietary ones. So I guess it’s currently using AMD GPU instead right now.

inxi -G
Graphics:
  Device-1: NVIDIA GP107M [GeForce GTX 1050 3 GB Max-Q] driver: nouveau
    v: kernel
  Device-2: Advanced Micro Devices [AMD/ATI] Picasso/Raven 2 [Radeon Vega
    Series / Radeon Mobile Series] driver: amdgpu v: kernel
  Device-3: Quanta HP TrueVision HD Camera driver: uvcvideo type: USB
  Display: x11 server: X.org v: 1.21.1.14 driver: X:
    loaded: amdgpu,modesetting dri: radeonsi,nouveau gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: nouveau,radeonsi,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.3 vendor: amd mesa v: 24.2.8-arch1.1
    renderer: AMD Radeon Vega 8 Graphics (radeonsi raven LLVM 18.1.8 DRM 3.59
    6.12.1-4-MANJARO)
> 0000:01:00.0 (0300:10de:1c91) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2023.03.23               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2023.03.23               false            PCI
          video-nvidia            2024.05.03               false            PCI
    video-nvidia-470xx            2023.03.23               false            PCI
           video-linux            2024.05.06                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:05:00.0 (0300:1002:15d8) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2023.03.23               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2023.03.23               false            PCI
           video-linux            2024.05.06                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:04:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2023.09.12                true            PCI


Warning: No installed PCI configs!
Warning: No installed USB configs!

Running the following will install the proprietary NVIDIA driver. If it does not complete successfully, please share the output:

sudo mhwd -a pci nonfree 0300
sudo mhwd -a pci nonfree 0300
[sudo] password for lolscope: 
> Using config 'video-hybrid-amd-nvidia-prime' for device: 0000:01:00.0 (0300:10de:1c91) Display controller nVidia Corporation GP107M [GeForce GTX 1050 3 GB Max-Q]
> Using config 'video-hybrid-amd-nvidia-prime' for device: 0000:05:00.0 (0300:1002:15d8) Display controller ATI Technologies Inc Picasso
> Dependencies to install:  video-linux
> Installing dependency video-linux...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/video-linux/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0380
Processing classid: 0302
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
warning: xf86-video-ati-1:22.0.0-2 is up to date -- skipping
warning: xf86-video-amdgpu-23.0.0-2 is up to date -- skipping
warning: xf86-video-intel-1:2.99.917+923+gb74b67f0-2 is up to date -- skipping
warning: xf86-video-nouveau-1.0.18-1 is up to date -- skipping
warning: vulkan-intel-1:24.2.8-1 is up to date -- skipping
warning: vulkan-nouveau-1:24.2.8-1 is up to date -- skipping
warning: vulkan-radeon-1:24.2.8-1 is up to date -- skipping
warning: mesa-1:24.2.8-1 is up to date -- skipping
warning: lib32-vulkan-intel-1:24.2.8-1 is up to date -- skipping
warning: lib32-vulkan-nouveau-1:24.2.8-1 is up to date -- skipping
warning: lib32-vulkan-radeon-1:24.2.8-1 is up to date -- skipping
 there is nothing to do
error: could not set install reason for package libva-mesa-driver (could not find or read package)
xf86-video-ati: install reason has been set to 'explicitly installed'
xf86-video-amdgpu: install reason has been set to 'explicitly installed'
xf86-video-intel: install reason has been set to 'explicitly installed'
xf86-video-nouveau: install reason has been set to 'explicitly installed'
vulkan-intel: install reason has been set to 'explicitly installed'
vulkan-nouveau: install reason has been set to 'explicitly installed'
vulkan-radeon: install reason has been set to 'explicitly installed'
lib32-vulkan-intel: install reason has been set to 'explicitly installed'
lib32-vulkan-nouveau: install reason has been set to 'explicitly installed'
lib32-vulkan-radeon: install reason has been set to 'explicitly installed'
Error: pacman failed!
Error: script failed!

Edit 1: hold on, I just had to update my OS. Currently trying again
Edit 2: Successfully installed video-hybrid-amd-nvidia-prime. Now what?

Reboot? :wink:

Okay, reboot it is. Everything seems fine right now.

inxi -G
Graphics:
  Device-1: NVIDIA GP107M [GeForce GTX 1050 3 GB Max-Q] driver: nvidia
    v: 550.135
  Device-2: Advanced Micro Devices [AMD/ATI] Picasso/Raven 2 [Radeon Vega
    Series / Radeon Mobile Series] driver: amdgpu v: kernel
  Device-3: Quanta HP TrueVision HD Camera driver: uvcvideo type: USB
  Display: x11 server: X.org v: 1.21.1.14 driver: X: loaded: amdgpu,nvidia
    unloaded: modesetting,nouveau dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: kms_swrast,nvidia,radeonsi,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 24.2.8-arch1.1
    renderer: AMD Radeon Vega 8 Graphics (radeonsi raven LLVM 18.1.8 DRM 3.59
    6.12.4-1-MANJARO)

I guess it worked since it now uses nvidia instead of nouveau. Gonna do some tests in minecraft with shaders

Yes, it did. :partying_face:

I’ve never played Minecraft, however I’ve recently been playing Valheim. I never knew building stuff could be so much fun. :hammer_and_pick: :hut:

1 Like

Update: it’s… Still using AMD card? Because it has 10-20 fps as in my previous test before installing drivers. Maybe I should write a command to switch the gpu?
Edit: Yeah, it still uses AMD GPU

glxinfo | grep -iE 'vendor:|device:|version:'
GLX version: 1.4
    Vendor: AMD (0x1002)
    Device: AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 18.1.8, DRM 3.59, 6.12.4-1-MANJARO) (0x15d8)
    Version: 24.2.8
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2

Yes. See PRIME - ArchWiki. Install nvidia-prime for the handy prime-run command.

For Steam games, edit the launch options:

prime-run %command%

Oh, thanks for command!
And besides, my minecraft launcher just happened to have a specific option to use Nvidia GPU on linux with hybrid drivers, which is exactly what I want!
Thank you very much again.

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