Nvida driver 390 Install

I have installed version 4.3 of Open MDV. Tries to install drivers for nVidia graphics card. It looks like:

[root@Blaszak wolf]# rpm -qa | grep kernel
kernel-firmware-extra-20220129-2.noarch
kernel-firmware-20220129-2.noarch
kernel-release-desktop-5.16.7-1.x86_64
kernel-release-desktop-5.16.13-1.x86_64

After the command

[root@Blaszak wolf]# dnf --refresh install nvidia-390

I have:

microsoft-edge                                                                6.1 kB/s | 3.0 kB     00:00
OpenMandriva Rock - x86_64                                                    4.3 kB/s | 4.3 kB     00:01
OpenMandriva Rock - x86_64 - Updates                                           20 kB/s | 3.3 kB     00:00
OpenMandriva Rock - Unsupported - x86_64                                       21 kB/s | 4.3 kB     00:00
OpenMandriva Rock - Unsupported - x86_64 - Updates                             13 kB/s | 3.3 kB     00:00
OpenMandriva Rock - Restricted - x86_64                                        25 kB/s | 4.2 kB     00:00
OpenMandriva Rock - Restricted - x86_64 - Updates                              17 kB/s | 3.3 kB     00:00
OpenMandriva Rock - Non-free - x86_64                                          20 kB/s | 4.2 kB     00:00
OpenMandriva Rock - Non-free - x86_64 - Updates                               8.8 kB/s | 1.5 kB     00:00
skype                                                                         6.4 kB/s | 2.9 kB     00:00
teams                                                                         8.3 kB/s | 3.0 kB     00:00
Rozwiązano zależności.
==============================================================================================================
 Pakiet                                        Architektura Wersja           Repozytorium               Rozm.
==============================================================================================================
Instalowanie:
 nvidia-390                                    x86_64       390.147-6        rock-x86_64-non-free        39 M
Instalowanie zależności:
 kernel-release-desktop-clang                  x86_64       5.16.7-1         rock-x86_64                124 M
 lib64gdk-x11_2.0_0                            x86_64       2.24.33-1        rock-x86_64                263 k
 lib64gtk-x11_2.0_0                            x86_64       2.24.33-1        rock-x86_64                1.5 M
 nvidia-390-kernel-modules-desktop-clang       x86_64       390.147-6        rock-x86_64-non-free        11 M

Podsumowanie transakcji
==============================================================================================================
Instalacja  5 pakietów

Całkowity rozmiar pobierania: 177 M
Rozmiar po zainstalowaniu: 352 M
W porządku? [t/N]: t
Pobieranie pakietów:
(1/5): lib64gdk-x11_2.0_0-2.24.33-1-omv4050.x86_64.rpm                        319 kB/s | 263 kB     00:00
(2/5): lib64gtk-x11_2.0_0-2.24.33-1-omv4050.x86_64.rpm                        340 kB/s | 1.5 MB     00:04
(3/5): nvidia-390-kernel-modules-desktop-clang-390.147-6-omv4003.x86_64.rpm   176 kB/s |  11 MB     01:06
(4/5): nvidia-390-390.147-6-omv4003.x86_64.rpm                                295 kB/s |  39 MB     02:16
(5/5): kernel-release-desktop-clang-5.16.7-1-omv4003.x86_64.rpm               517 kB/s | 124 MB     04:05
--------------------------------------------------------------------------------------------------------------
Razem                                                                         736 kB/s | 177 MB     04:05
Wykonywanie sprawdzania transakcji
Pomyślnie ukończono sprawdzanie transakcji.
Wykonywanie testu transakcji
Pomyślnie ukończono test transakcji.
Wykonywanie transakcji
  Przygotowywanie                :                                                                        1/1
  Instalowanie                   : lib64gdk-x11_2.0_0-2.24.33-1.x86_64                                    1/5
  Instalowanie                   : lib64gtk-x11_2.0_0-2.24.33-1.x86_64                                    2/5
  Instalowanie                   : kernel-release-desktop-clang-5.16.7-1.x86_64                           3/5
  Instalowanie                   : nvidia-390-kernel-modules-desktop-clang-390.147-6.x86_64               4/5
  Wykonywanie skryptu            : nvidia-390-kernel-modules-desktop-clang-390.147-6.x86_64               4/5
Generowanie pliku konfiguracyjnego gruba...
Znaleziono motyw: /boot/grub2/themes/OpenMandriva/theme.txt
Znaleziono tło: /boot/grub2/themes/OpenMandriva/background.png
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.13-desktop-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.13-desktop-1omv4003.img
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.7-desktop-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.7-desktop-1omv4003.img
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.7-desktop-clang-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.7-desktop-clang-1omv4003.img
Found memtest image: /boot/memtest.bin
Znaleziono Windows Recovery Environment na /dev/sdb1
Remove echo commands from "/boot/grub2/grub.cfg"
gotowe

  Instalowanie                   : nvidia-390-390.147-6.x86_64                                            5/5
  Wykonywanie skryptu            : kernel-release-desktop-clang-5.16.7-1.x86_64                           5/5
Generowanie pliku konfiguracyjnego gruba...
Znaleziono motyw: /boot/grub2/themes/OpenMandriva/theme.txt
Znaleziono tło: /boot/grub2/themes/OpenMandriva/background.png
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.13-desktop-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.13-desktop-1omv4003.img
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.7-desktop-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.7-desktop-1omv4003.img
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.7-desktop-clang-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.7-desktop-clang-1omv4003.img
Found memtest image: /boot/memtest.bin
Znaleziono Windows Recovery Environment na /dev/sdb1
Remove echo commands from "/boot/grub2/grub.cfg"
gotowe

  Wykonywanie skryptu            : nvidia-390-390.147-6.x86_64                                            5/5
Generowanie pliku konfiguracyjnego gruba...
Znaleziono motyw: /boot/grub2/themes/OpenMandriva/theme.txt
Znaleziono tło: /boot/grub2/themes/OpenMandriva/background.png
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.13-desktop-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.13-desktop-1omv4003.img
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.7-desktop-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.7-desktop-1omv4003.img
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.7-desktop-clang-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.7-desktop-clang-1omv4003.img
Found memtest image: /boot/memtest.bin
Znaleziono Windows Recovery Environment na /dev/sdb1
Remove echo commands from "/boot/grub2/grub.cfg"
gotowe
  Sprawdzanie                    : kernel-release-desktop-clang-5.16.7-1.x86_64                           1/5
  Sprawdzanie                    : lib64gdk-x11_2.0_0-2.24.33-1.x86_64                                    2/5
  Sprawdzanie                    : lib64gtk-x11_2.0_0-2.24.33-1.x86_64                                    3/5
  Sprawdzanie                    : nvidia-390-390.147-6.x86_64                                            4/5
  Sprawdzanie                    : nvidia-390-kernel-modules-desktop-clang-390.147-6.x86_64               5/5

Zainstalowano:
  kernel-release-desktop-clang-5.16.7-1.x86_64                     lib64gdk-x11_2.0_0-2.24.33-1.x86_64
  lib64gtk-x11_2.0_0-2.24.33-1.x86_64                              nvidia-390-390.147-6.x86_64
  nvidia-390-kernel-modules-desktop-clang-390.147-6.x86_64

Ukończono.
[root@Blaszak wolf]#

After all this, the system doesn’t boot anymore. It hangs at the boot stage. I waited for 20 minutes and nothing.

This should not be difficult to fix once we know what the cause of this problem is.

  1. This is a guess: Are you booting to clang kernel? The default boot entry would not be for the clang kernel so you have to go to ‘Advanced Options for OpenMandriva Lx’ and select the kernel-release-deskop-clang-5.16.7-1 entry.

When you installed the nvidia-390 drivers dnf also installed as a dependency kernel-release-deskop-clang-5.16.7-1 only that kernel version will work with the nvidia-390 modules.

Welcome @GLWolf to OpenMandriva forum.

I am looking at some other aspects of this issue. It is difficult for me to work on nvidia software because I do not have the nvidia hardware.

It installs exactly according to this guide

I reinstalled the system. The kernel is installed by default:

kernel-release-desktop-5.16.7-1.x86_64

After the update, the default is:

kernel-release-desktop-5.16.13-1.x86_64

I chose all the options in the boot menu. None of them worked.

1 Like

@GLWolf you did not do anything wrong. This is an oversight by OpenMandriva contributors (including me).

The clang kernel is installed because: nvidia packages wants to install on the kernel you are booted in to. There is not a nvidia package right now for kernel 5.16.13. You were likely booted in to kernel 5.16.13. So in that case dnf has to install a new kernel to add the nvidia modules to. It picked kernel-release-desktop-clang-5.16.7-1 because at the moment there is no nvidia-390 package for kernel-release-desktop-5.16.13-1. So neither you or dnf did anything wrong. This is just a matter of getting the new nvidia-390 packages build for kernel 5.16.13.

I just started builds for nvdia-390 for kernel 5.16.13 for Rock/4.3. I will let you know when this build finishes and describe what to do.

OpenMandriva contributors are all unpaid, part-time, volunteers.

Thank you for the information :slight_smile:

I used this guide

I used MDV from 9.0 to 2011. Then Rosa from R1 to 11.1 and MDV again. The system works very well and it is fun to work with :slight_smile:

1 Like

OK the nvidia-390 package is built for kernel 5.16.13.

I think this should work for you to get your system back to “normal” and with nvidia-390 driver installed for kernel-release-desktop-5.16.13-1.

Boot from ‘Advanced Options for OpenMandriva Lx’ and select to boot in recovery mode from kernel-release-desktop-5.16.13-1.

At the login prompt type root and enter your root password. Then run these commands in order presented:

# dnf clean all

# dnf rm kernel-release-desktop-clang nvidia-390

# dnf in nvida-390

That should install nvidia-390 and nvidia-390-kernel-modules-desktop and it should not install any kernel version. In other words it installs the modules for the kernel you are booted in to. Then reboot normal way.

Post-edit: It is possible that the nvidia-390 driver is not working. I can not test for that as I so not have the hardware to do so.

Oh, forgot to add about the abbreviated commands.

dnf rm=dnf remove
dnf in=dnf install

also:

dnf up=dnf upgrade
dnf dsync=dnf distro-sync

Recommended software update procedure for OMLx is:

For Rock/OMLx 4.3:

$ sudo dnf clean all ; sudo dnf up

For Rolling:

$ sudo dnf clean all ; sudo dnf dsync

Hi
I reinstalled the system. After installation, I did an update. So it boots up properly. Should I install the NV drivers with the command you typed?

dnf clean all
dnf rm kernel-release-desktop-clang nvidia-390`
dnf in nvida-390`

or

dnf --refresh install nvidia-390

Thank you very much for help. It looks like everything is already working :slight_smile:

[root@Blaszak wolf]# dnf install nvidia-390
Ostatnio sprawdzono ważność metadanych: 0:28:47 temu w dniu nie, 17 kwi 2022, 19:47:45.
Rozwiązano zależności.
==============================================================================================================
 Pakiet                                 Arch.       Wersja            Repozytorium                      Rozm.
==============================================================================================================
Instalowanie:
 nvidia-390                             x86_64      390.147-7         rock-updates-x86_64-non-free       39 M
Instalowanie zależności:
 lib64gdk-x11_2.0_0                     x86_64      2.24.33-1         rock-x86_64                       263 k
 lib64gtk-x11_2.0_0                     x86_64      2.24.33-1         rock-x86_64                       1.5 M
 nvidia-390-kernel-modules-desktop      x86_64      390.147-7         rock-updates-x86_64-non-free       11 M

Podsumowanie transakcji
==============================================================================================================
Instalacja  4 pakiety

Całkowity rozmiar pobierania: 52 M
Rozmiar po zainstalowaniu: 205 M
W porządku? [t/N]: t
Pobieranie pakietów:
(1/4): lib64gdk-x11_2.0_0-2.24.33-1-omv4050.x86_64.rpm                        329 kB/s | 263 kB     00:00    
(2/4): lib64gtk-x11_2.0_0-2.24.33-1-omv4050.x86_64.rpm                        197 kB/s | 1.5 MB     00:07    
(3/4): nvidia-390-kernel-modules-desktop-390.147-7-omv4003.x86_64.rpm         287 kB/s |  11 MB     00:38    
(4/4): nvidia-390-390.147-7-omv4003.x86_64.rpm                                556 kB/s |  39 MB     01:12    
--------------------------------------------------------------------------------------------------------------
Razem                                                                         733 kB/s |  52 MB     01:12     
Wykonywanie sprawdzania transakcji
Pomyślnie ukończono sprawdzanie transakcji.
Wykonywanie testu transakcji
Pomyślnie ukończono test transakcji.
Wykonywanie transakcji
  Przygotowywanie                :                                                                        1/1 
  Instalowanie                   : lib64gdk-x11_2.0_0-2.24.33-1.x86_64                                    1/4 
  Instalowanie                   : lib64gtk-x11_2.0_0-2.24.33-1.x86_64                                    2/4 
  Instalowanie                   : nvidia-390-kernel-modules-desktop-390.147-7.x86_64                     3/4 
  Wykonywanie skryptu            : nvidia-390-kernel-modules-desktop-390.147-7.x86_64                     3/4 
Generowanie pliku konfiguracyjnego gruba...
Znaleziono motyw: /boot/grub2/themes/OpenMandriva/theme.txt
Znaleziono tło: /boot/grub2/themes/OpenMandriva/background.png
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.13-desktop-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.13-desktop-1omv4003.img
Znaleziono obraz Linuksa: /boot/vmlinuz-5.16.7-desktop-1omv4003
Znaleziono obraz initrd: /boot/initrd-5.16.7-desktop-1omv4003.img
Found memtest image: /boot/memtest.bin
Znaleziono Windows Recovery Environment na /dev/sdb1
Remove echo commands from "/boot/grub2/grub.cfg"
gotowe

  Instalowanie                   : nvidia-390-390.147-7.x86_64                                            4/4 
  Wykonywanie skryptu            : nvidia-390-390.147-7.x86_64                                            4/4 
  Sprawdzanie                    : lib64gdk-x11_2.0_0-2.24.33-1.x86_64                                    1/4 
  Sprawdzanie                    : lib64gtk-x11_2.0_0-2.24.33-1.x86_64                                    2/4 
  Sprawdzanie                    : nvidia-390-390.147-7.x86_64                                            3/4 
  Sprawdzanie                    : nvidia-390-kernel-modules-desktop-390.147-7.x86_64                     4/4 

Zainstalowano:
  lib64gdk-x11_2.0_0-2.24.33-1.x86_64            lib64gtk-x11_2.0_0-2.24.33-1.x86_64                          
  nvidia-390-390.147-7.x86_64                    nvidia-390-kernel-modules-desktop-390.147-7.x86_64           

Ukończono.
[root@Blaszak wolf]# 

1 Like

Thanks for the feedback. Good to know I got at least part of this correct. And good to know nvidia-390 is working for you.

1 Like