Is it possible to install Nvidia Prime on the 820m GF?

Hi everyone, maybe someone has experience installing a well-functioning driver on an outdated hybrid laptop graphics. I would like to use Nvidia Prime, but no matter how much I tried to install it, it didn’t work out. After rereading a bunch of forums, I found that my video card may not support Prime and drivers higher than 390xxx, although today I received information that it can support 470xxx as well CodeNames · freedesktop.org NVC0 family (Fermi) GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
Automatic installation of Manjaro SM does nothing.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.6.47-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-5200U CPU @ 2.20GHz
Memory: 11.1 ГиБ of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: TP300LDB
System Version: 1.0
NV110 family (Maxwell)
Code name	Official Name
NV117 (GM107)	GeForce GTX (745, 750, 750 Ti, 840M, 845M, 850M, 860M, 950M, 960M)
Quadro K620, K1200, K2200, M1000M, M1200M; GRID M30, M40

Before that, I put bumblebee, it is infinitely outdated, optimus-manager is better, but I never got hybrid mode(either Nvidia or Intel). Now they are just Nouveau, and of course my Nvidia does not work. Please, if you have a successful experience installing Prime video cards on this class, please share: grinning:. Thanks
My system

00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: bdw_uncore

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 0, IRQ 48
	Memory at f5000000 (64-bit, non-prefetchable) [size=16M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at f000 [size=64]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 0, IRQ 53
	Memory at f7214000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03) (prog-if 30 [XHCI])
	Subsystem: ASUSTeK Computer Inc. Device 201f
	Flags: bus master, medium devsel, latency 0, IRQ 46
	Memory at f7200000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci

00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 0, IRQ 51
	Memory at f721d000 (64-bit, non-prefetchable) [size=32]
	Capabilities: <access denied>
	Kernel driver in use: mei_me
	Kernel modules: mei_me

00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 32, IRQ 54
	Memory at f7210000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3) (prog-if 00 [Normal decode])
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 0, IRQ 42
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: [disabled] [16-bit]
	Memory behind bridge: [disabled] [32-bit]
	Prefetchable memory behind bridge: [disabled] [64-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3) (prog-if 00 [Normal decode])
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 0, IRQ 43
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: [disabled] [16-bit]
	Memory behind bridge: f7100000-f71fffff [size=1M] [32-bit]
	Prefetchable memory behind bridge: [disabled] [64-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3) (prog-if 00 [Normal decode])
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 0, IRQ 44
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: e000-efff [size=4K] [16-bit]
	Memory behind bridge: f6000000-f70fffff [size=17M] [32-bit]
	Prefetchable memory behind bridge: e0000000-f1ffffff [size=288M] [32-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03) (prog-if 20 [EHCI])
	Subsystem: ASUSTeK Computer Inc. Device 201f
	Flags: bus master, medium devsel, latency 0, IRQ 23
	Memory at f721b000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci-pci

00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, medium devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich

00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03) (prog-if 01 [AHCI 1.0])
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 45
	I/O ports at f0b0 [size=8]
	I/O ports at f0a0 [size=4]
	I/O ports at f090 [size=8]
	I/O ports at f080 [size=4]
	I/O ports at f060 [size=32]
	Memory at f721a000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: medium devsel, IRQ 18
	Memory at f7219000 (64-bit, non-prefetchable) [size=256]
	I/O ports at f040 [size=32]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801

00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device 194d
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at f7218000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: intel_pch_thermal
	Kernel modules: intel_pch_thermal

02:00.0 Network controller: Intel Corporation Wireless 7260 (rev cb)
	Subsystem: Intel Corporation Dual Band Wireless-AC 7260 [Wilkins Peak 2]
	Flags: bus master, fast devsel, latency 0, IRQ 52
	Memory at f7100000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

03:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GeForce 820M
	Flags: bus master, fast devsel, latency 0, IRQ 47
	Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	Expansion ROM at f7000000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nouveau
	Kernel modules: nouveau

CodeNames · nouveau.freedesktop.org

NVC0 family (Fermi)

NVD7 (GF117)   Geforce GT 620M, 625M, (some) 630M, 710M, 720M

Configure Graphics Cards - PRIME GPU offloading - Manjaro Wiki

First, post a proper output of inxi -Fazy

Before doing anything, make sur you are up to date with sudo pacman -Syu and make sure you have a LTS kernel installed like (like 6.6, and/or 5.10 or whatever).

Check what is compatible with your video cards setup from terminal

mhwd -l

Probably 470 hybrid profile is compatible.

If you see an hybrid profile for 470 listed, then install it and reboot.

sudo mhwd -i pci name_of_the_hybrid_profile
reboot

If reboot is OK, open a terminal and check if it actually works with these two commands

glxinfo | grep 'renderer string'
prime-run glxinfo | grep 'renderer string'

Post the result here for both commands.

If it does not boot properly, then open a TTY (CTRL + ALT + F4 for example) from your probably black screen, list the installed driver/profile, and remove the hybrid profile and reboot.

mhwd -li
sudo mhwd -r pci name_of_the_hybrid_profile
reboot

Greetings, it seems there is no support

mhwd -l                                                                                                                   1|1 ✘ 
> 0000:03:00.0 (0302:10de:1140) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2023.03.23               false            PCI
          video-nvidia            2024.05.03               false            PCI
    video-nvidia-470xx            2023.03.23               false            PCI
    video-nvidia-390xx            2023.03.23               false            PCI
           video-linux            2024.05.06                true            PCI


> 0000:00:02.0 (0300:8086:1616) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            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
    ~  glxinfo | grep 'renderer string'                                                                                              ✔ 
OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
    ~  prime-run glxinfo | grep 'renderer string'                                                                                    ✔ 
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51

Greetings, I believe the free driver is not valid. I run DRI_PRIME=1 glxgears and as I see glxinfo / grep OpenGL the video card is not running, maybe I’m missing something? Although this is the result.

Summary

For example, how to run DRI_PRIME=1 glxgears and see that the Nvidia graphics card is running?

Found DRI_PRIME=1 glxgears-info shows that Nvidia is running

DRI_PRIME=1 glxgears -info                                                                                                    ✔ 
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
GL_RENDERER   = NVD7
GL_VERSION    = 4.3 (Compatibility Profile) Mesa 24.1.6-arch1.1
GL_VENDOR     = Mesa
DRI_PRIME=1 glxinfo | grep OpenGL                                                                                             ✔ 
OpenGL vendor string: Mesa
OpenGL renderer string: NVD7
OpenGL core profile version string: 4.3 (Core Profile) Mesa 24.1.6-arch1.1
OpenGL core profile shading language version string: 4.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.3 (Compatibility Profile) Mesa 24.1.6-arch1.1
OpenGL shading language version string: 4.30
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 24.1.6-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

In general, I understand everything, thanks for the information :grinning:

Then your best bet may be the 390 driver hybrid profile with Bumblebee but I have no experience with that, try it and see how it works for you (the prime-run commands would not work with Bumblebee).

sudo mhwd -i pci video-hybrid-intel-nvidia-390xx-bumblebee
reboot
glxinfo | grep 'renderer string'
optirun glxinfo | grep 'renderer string'
primusrun glxinfo | grep 'renderer string'

What do you mean ?

The prime profiles are listed there…

Did you try with either of those ?

(also note - you should not have most other profiles installed.)

Please also be clear about which are installed.

mhwd -li

Mmm, this topic has been asking for a long time, since my very beginning of using it, I noticed that when you install automatic drivers, Prime is always selected, but as I showed above in the screenshots, the 470 driver is not supported for this card(it should be excluded from the automatic installation script). Or is there something I don’t understand?

Ah ok. You did install the 470-prime profile and it did not work.

The first output above of mhwd -l simply shows available drivers, so it was not clear. But that image output does indicate the 470 so it must mean you tried that profile I guess.

The profiles are available because of the file listing hardware IDs of Nvidia cards, it is generated from a Nvidia provided file if I recall correctly. It can happen it lists the wrong card but as you already showed the 470 drivers says it doesn’t support your card and you need 390. The Nvidia website also confirms that, so back to my previous reply Is it possible to install Nvidia Prime on the 820m GF? - #7 by omano

//EDIT: the files in question for each profile:

/var/lib/mhwd/ids/pci/nvidia-390xx.ids
/var/lib/mhwd/ids/pci/nvidia-470xx.ids
/var/lib/mhwd/ids/pci/nvidia.ids

//EDIT2: and it is generated from the Nvidia driver “blob”, or the Read Me file mhwd-nvidia · master · Packages / extra / nvidia-utils · GitLab

1 Like

bumblebee is very outdated, it doesn’t do any good. Thank you for your desire to help, the truth is priceless). It remains to use free drivers with DRI_PRIME=1 . Thank you all for your help

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