Cannot activate NVIDIA drivers (GPU: NVIDIA GeForce GT 750M) in Garuda

It's explained in the wiki.
prime-run package-name
prime-run %command% as start parameter in Steam.

1 Like

OK, but, I search in Octopi and still appears

lib32-opencl-nvidia--390xxx

So, can I remove this and install again nvidia 470 drivers and dkms? what is the command in order to install all correctly?

╰─λ DRI_PRIME=1 glxinfo -B | grep "OpenGL vendor string"
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
OpenGL vendor string: Intel

Any help?

Sorry, again, please read the wiki.
DRI_PRIME is used if you have an NVIDIA GPU without the proprietary driver installed.
Not needed.

Please show this output:

pacman -Qqe | grep nvidia

Please also show:

ls /etc/modprobe.d/
1 Like
╰─λ pacman -Qqe | grep nvidia
lib32-nvidia-470xx-utils
lib32-opencl-nvidia-470xx
nvidia-470xx-dkms
nvidia-470xx-settings
nvidia-prime
opencl-nvidia-470xx
╰─λ ls /etc/modprobe.d/
.rw-r--r-- 161 root 23 jun 14:53  firewalld-sysctls.conf
.rw-r--r-- 105 root  3 sep 18:51  mhwd-bbswitch.conf
.rw-r--r-- 194 root  3 sep 18:51  mhwd-nvidia.conf
.rw-r--r--  49 root 12 ago 12:42  vmware-fuse.conf

But, all that, after I remove nvidia-390xxx wwith octopi, .... but:

If i want to remove nvidia-390xxx it seems that will remove also 470...
And all another important stuff...

Hardware settings still shows 390:

... any help?

Oops, let’s see without e:

pacman -Qq | grep nvidia

Check also

nvidia-smi

sudo nvidia-settings
╰─λ pacman -Qqe | grep nvidia
lib32-nvidia-470xx-utils
lib32-opencl-nvidia-470xx
nvidia-470xx-dkms
nvidia-470xx-settings
nvidia-prime
opencl-nvidia-470xx
╰─λ pacman -Qq | grep nvidia
lib32-nvidia-470xx-utils
lib32-opencl-nvidia-470xx
mhwd-nvidia
mhwd-nvidia-390xx
mhwd-nvidia-470xx
nvidia-470xx-dkms
nvidia-470xx-settings
nvidia-470xx-utils
nvidia-prime
opencl-nvidia-470xx
╰─λ nvidia-smi
Wed Sep  6 13:20:48 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.199.02   Driver Version: 470.199.02   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   57C    P8    N/A /  N/A |      3MiB /  2002MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

... and sudo nvidia-settings

╭─siegfried@siegfried in ~ took 33ms
╰─λ sudo nvidia-settings
[sudo] password for siegfried:

** (nvidia-settings:20406): WARNING **: 13:21:38.077: Unable to connect to dbus: Error spawning command line “dbus-launch --autolaunch=5c8ae36a50e04e038b95484d0e134f9b --binary-syntax --close-stderr”: Child process exited with code 1

(nvidia-settings:20406): GLib-GObject-CRITICAL **: 13:21:38.102: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file
should have been installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will
continue to work, but values cannot be prepopulated or validated, and will not be listed in the help
text. Please see the README for possible values and descriptions.


(nvidia-settings:20406): GLib-GIO-CRITICAL **: 13:21:38.234: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nvidia-settings:20406): GLib-GIO-CRITICAL **: 13:21:38.234: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nvidia-settings:20406): GLib-GIO-CRITICAL **: 13:21:38.234: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nvidia-settings:20406): GLib-GIO-CRITICAL **: 13:23:15.898: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nvidia-settings:20406): GLib-GIO-CRITICAL **: 13:23:15.898: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nvidia-settings:20406): GLib-GIO-CRITICAL **: 13:23:15.898: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

Let's try this:

sudo mhwd -r pci hybrid-intel-nvidia-390xx-dkms-bumblebee
sudo mhwd -i pci video-nvidia-prime-render-offload
╰─λ sudo mhwd -r pci hybrid-intel-nvidia-390xx-dkms-bumblebee
[sudo] password for siegfried:
Error: config 'hybrid-intel-nvidia-390xx-dkms-bumblebee' is not installed!
[🔴] × sudo mhwd -i pci video-nvidia-prime-render-offload
Warning: no matching device for config 'video-nvidia-prime-render-offload' found!
Error: config 'video-nvidia-prime-render-offload' conflicts with config(s): video-hybrid-intel-nvidia-390xx-dkms-bumblebee

Hmmmmm, can you see what I show in Octopi?

My mistake, missing a “video”:

sudo mhwd -r pci video-hybrid-intel-nvidia-390xx-dkms-bumblebee

Done:

[🔴] × sudo mhwd -r pci video-hybrid-intel-nvidia-390xx-dkms-bumblebee
[sudo] password for siegfried:
> Removing video-hybrid-intel-nvidia-390xx-dkms-bumblebee...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/video-hybrid-intel-nvidia-390xx-dkms-bumblebee/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Failed to disable unit: Unit file bumblebeed.service does not exist.
Failed to stop bumblebeed.service: Unit bumblebeed.service not loaded.
checking dependencies...

Packages (4) libxvmc-1.0.13-2  bbswitch-dkms-0.8-620  virtualgl-3.1-1  xf86-video-intel-1:2.99.917+923+gb74b67f0-1

Total Removed Size:  7,66 MiB

:: Do you want to remove these packages? [Y/n]
:: Running pre-transaction hooks...
(1/2) Performing snapper pre snapshots for the following configurations...
==> root: 71
(2/2) Remove DKMS modules
==> dkms remove --no-depmod bbswitch/0.8 -k 6.4.12-zen1-1-zen
==> dkms remove bbswitch/0.8
==> depmod 6.4.12-zen1-1-zen
:: Processing package changes...
removing bbswitch-dkms...
removing xf86-video-intel...
removing libxvmc...
removing virtualgl...
:: Running post-transaction hooks...
(1/8) Arming ConditionNeedsUpdate...
(2/8) Updating initramfs...
:: Building initramfs for linux-zen (6.4.12-zen1-1-zen)
:: Building fallback initramfs for linux-zen (6.4.12-zen1-1-zen)
(3/8) Updating linux initcpios...
(4/8) Foreign/AUR package notification
libsidplay 1.36.59-10
youtube-dl 2021.12.17-2
(5/8) Orphaned package notification...
glibmm-2.68 2.76.0-1
kjs 5.109.0-1
libindicator-gtk3 12.10.1-10
libsidplay 1.36.59-10
lua52 5.2.4-5
lua53 5.3.6-1
nlohmann-json 3.11.2-2
python-future 0.18.3-1
qt6-5compat 6.5.2-1
sysfsutils 2.1.1-1
tinycompress 1.2.8-2
(6/8) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/pacman.conf.pacnew
/etc/pacman.d/mirrorlist.pacnew
Please check and merge
(7/8) Performing snapper post snapshots for the following configurations...
==> root: 72
(8/8) Syncing all file systems...
> Successfully removed video-hybrid-intel-nvidia-390xx-dkms-bumblebee

Now, reboot?

Yes, go ahead. :+1:

OK, I reboot.... but, in Hardware settings:

And this shows Octopi:

That looks fine, just check inxi -G to confirm you have the driver loaded. Then launch your apps with prime-run.

If you really need to see the checkbox in Hardware Configuration, I think you need to set this one up:

sudo mhwd -i pci video-nvidia-prime-render-offload

Those are fine. These packages are all related:

They are part of the auto-install option. You don’t need to try to remove them or do anything with them.

OK, this shows inxi -G:

╰─λ inxi -G
Graphics:
Device-1: Intel 4th Gen Core Processor Integrated Graphics driver: i915
v: kernel
Device-2: NVIDIA GK107M [GeForce GT 750M] driver: nvidia v: 470.199.02
Device-3: Realtek Lenovo EasyCamera driver: uvcvideo type: USB
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.0 driver: X:
loaded: modesetting,nvidia dri: crocus gpu: i915 resolution:
1: 1600x900~60Hz 2: 1366x768~60Hz
API: OpenGL v: 4.6 Mesa 23.1.6-arch1.4 renderer: Mesa Intel HD Graphics
4600 (HSW GT2)

... and the command, ends with error:

[sudo] password for siegfried:
Warning: no matching device for config 'video-nvidia-prime-render-offload' found!
> 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...
garuda downloading...
core downloading...
extra downloading...
multilib downloading...
chaotic-aur downloading...
resolving dependencies...
looking for conflicting packages...

Packages (20) intel-gmmlib-22.3.3-1  intel-media-driver-23.3.1-1  lib32-libva-intel-driver-2.4.1-1  lib32-libva-mesa-driver-1:23.1.6-4  lib32-mesa-vdpau-1:23.1.6-4  lib32-vulkan-intel-1:23.1.6-4  lib32-vulkan-mesa-layers-1:23.1.6-4  lib32-vulkan-radeon-1:23.1.6-4  libva-intel-driver-2.4.1-2  libva-mesa-driver-1:23.1.6-4  libvdpau-va-gl-0.4.2-3  mesa-vdpau-1:23.1.6-4  vulkan-intel-1:23.1.6-4  vulkan-mesa-layers-1:23.1.6-4  vulkan-radeon-1:23.1.6-4  vulkan-swrast-1:23.1.6-4  xf86-video-amdgpu-23.0.0-1  xf86-video-ati-1:22.0.0-1  xf86-video-nouveau-1.0.17-2  garuda-video-linux-config-1:r63.2f652e8-3

Total Download Size:    37,68 MiB
Total Installed Size:  190,23 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
intel-media-driver-23.3.1-1-x86_64 downloading...
vulkan-intel-1:23.1.6-4-x86_64 downloading...
lib32-vulkan-intel-1:23.1.6-4-x86_64 downloading...
libva-mesa-driver-1:23.1.6-4-x86_64 downloading...
lib32-libva-mesa-driver-1:23.1.6-4-x86_64 downloading...
lib32-mesa-vdpau-1:23.1.6-4-x86_64 downloading...
mesa-vdpau-1:23.1.6-4-x86_64 downloading...
lib32-vulkan-radeon-1:23.1.6-4-x86_64 downloading...
vulkan-radeon-1:23.1.6-4-x86_64 downloading...
vulkan-swrast-1:23.1.6-4-x86_64 downloading...
lib32-libva-intel-driver-2.4.1-1-x86_64 downloading...
libva-intel-driver-2.4.1-2-x86_64 downloading...
lib32-vulkan-mesa-layers-1:23.1.6-4-x86_64 downloading...
vulkan-mesa-layers-1:23.1.6-4-x86_64 downloading...
intel-gmmlib-22.3.3-1-x86_64 downloading...
xf86-video-ati-1:22.0.0-1-x86_64 downloading...
xf86-video-nouveau-1.0.17-2-x86_64 downloading...
libvdpau-va-gl-0.4.2-3-x86_64 downloading...
xf86-video-amdgpu-23.0.0-1-x86_64 downloading...
garuda-video-linux-config-1:r63.2f652e8-3-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 73
:: Processing package changes...
installing xf86-video-ati...
installing xf86-video-amdgpu...
installing xf86-video-nouveau...
installing vulkan-intel...
Optional dependencies for vulkan-intel
vulkan-mesa-layers: additional vulkan layers [pending]
installing vulkan-radeon...
Optional dependencies for vulkan-radeon
vulkan-mesa-layers: additional vulkan layers [pending]
installing intel-gmmlib...
installing intel-media-driver...
installing libvdpau-va-gl...
installing libva-intel-driver...
installing libva-mesa-driver...
installing mesa-vdpau...
installing vulkan-mesa-layers...
installing vulkan-swrast...
Optional dependencies for vulkan-swrast
vulkan-mesa-layers: additional vulkan layers [installed]
installing lib32-vulkan-intel...
Optional dependencies for lib32-vulkan-intel
lib32-vulkan-mesa-layers: additional vulkan layers [pending]
installing lib32-vulkan-radeon...
Optional dependencies for lib32-vulkan-radeon
lib32-vulkan-mesa-layers: additional vulkan layers [pending]
installing lib32-mesa-vdpau...
installing lib32-libva-intel-driver...
installing lib32-libva-mesa-driver...
installing lib32-vulkan-mesa-layers...
installing garuda-video-linux-config...
Optional dependencies for garuda-video-linux-config
opencl-mesa
lib32-opencl-mesa
intel-compute-runtime
libva-vdpau-driver
lib32-libva-vdpau-driver
:: Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Foreign/AUR package notification
libsidplay 1.36.59-10
youtube-dl 2021.12.17-2
(3/6) Orphaned package notification...
glibmm-2.68 2.76.0-1
kjs 5.109.0-1
libindicator-gtk3 12.10.1-10
libsidplay 1.36.59-10
lua52 5.2.4-5
lua53 5.3.6-1
nlohmann-json 3.11.2-2
python-future 0.18.3-1
qt6-5compat 6.5.2-1
sysfsutils 2.1.1-1
tinycompress 1.2.8-2
(4/6) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/pacman.conf.pacnew
/etc/pacman.d/mirrorlist.pacnew
Please check and merge
(5/6) Performing snapper post snapshots for the following configurations...
==> root: 74
(6/6) Syncing all file systems...
garuda-video-linux-config: install reason has been set to 'explicitly installed'
sed: can't read /etc/mkinitcpio.conf: No such file or directory
/var/lib/mhwd/db/pci/graphic_drivers/video-linux/MHWDCONFIG: line 35: mkinitcpio: command not found
> Successfully installed dependency video-linux
> Installing video-nvidia-prime-render-offload...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-prime-render-offload/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
resolving dependencies...
looking for conflicting packages...
:: nvidia-dkms and nvidia-470xx-dkms are in conflict (NVIDIA-MODULE). Remove nvidia-470xx-dkms? [y/N] error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)

:: nvidia-dkms and nvidia-470xx-dkms are in conflict
Error: pacman failed!
Error: script failed!

:: nvidia-dkms and nvidia-470xx-dkms are in conflict

What can I do?

Just stop, is what I think you should do. The correct drivers are installed. The struggle is over. These additional efforts are more likely to break something than provide any benefit.

Go ahead and enjoy your computer now. :slightly_smiling_face:

4 Likes

OK, thanks @BluishHumility all my gratitude to you, @filo and @SGS ...
Party Ok GIF by LLIMOO

A last couple of questions...

How can I activate correctly the profiles of nvidia:

ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file
should have been installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will
continue to work, but values cannot be prepopulated or validated, and will not be listed in the help
text. Please see the README for possible values and descriptions.

... and, how I run a game in lutris with NVIDIA in order to switch correctly to NVIDIA GPU?