XORG-X11-DRV-nouveau error and NVIDIA Kernel Problem

Hello. It’s been 3 days since I installed Fedora and I get the “XORG-X11-DRV-nouveau” failure every time I turn on the computer. 2-4 breakdowns were coming about this for 2 days. So I reinstalled this driver (dnf reinstall xorg-x11-drv-nouveau). Yesterday and today the total number of failures was slighly more than 500 (not kidding) and I was bombarded with notifications as soon as I turned on the computer. My GPU is NVIDIA MX150
What is the solution of this problem?

Here is infos:

[huso@fedora ~]$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 resume=UUID=5d222106-bd8d-4572-a2b7-db635e7ca6b0 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
[huso@fedora ~]$
[huso@fedora ~]$ rpm -qa akmods                      
akmods-0.5.6-27.fc34.noarch
[huso@fedora ~]$ modinfo -F version nvidia            
modinfo: ERROR: Module nvidia not found.
[huso@fedora ~]$ lsmod | egrep -i 'nouveau|nvidia|i915'
nouveau              2318336  1
mxm_wmi                16384  1 nouveau
drm_ttm_helper         16384  1 nouveau
ttm                    86016  2 drm_ttm_helper,nouveau
i915                 2727936  45
i2c_algo_bit           16384  2 i915,nouveau
drm_kms_helper        278528  2 i915,nouveau
cec                    61440  2 drm_kms_helper,i915
drm                   618496  17 drm_kms_helper,drm_ttm_helper,i915,ttm,nouveau
video                  53248  3 ideapad_laptop,i915,nouveau
wmi                    36864  5 intel_wmi_thunderbolt,wmi_bmof,ideapad_laptop,mxm_wmi,nouveau
[huso@fedora ~]$ sudo akmods --force
Checking kmods exist for 5.11.16-300.fc34.x86_64           [  TAMAM  ]
[huso@fedora ~]$ sudo dracut --force
#This file is provided by xorg-x11-drv-nvidia
#Do not edit

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "SLI" "Auto"
    Option "BaseMosaic" "on"
    Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
    Identifier "layout"
    Option "AllowNVIDIAGPUScreens"
sudo dnf reinstall gcc kernel-headers kernel-devel akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs xorg-x11-drv-nvidia-libs.i686
sudo dnf install xorg-x11-drv-nvidia-cuda
sudo dnf install akmod-nvidia
sudo dnf dnf install xorg-x11-drv-nouveau-1.0.15-1.el7
I installed theese 4 files
Operating System: Fedora 34
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.16-300.fc34.x86_64
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

I followed this and this instuction
But they couldn’t help

I see this screen when i open my computer:

Error Screen

1 Like

Try following these steps and see if it works for you, https://discussion.fedoraproject.org/t/fedora-34-nvidia-kernel-module-missing-falling-back-to-nouveau/68831/5?u=t0xic0der.

1 Like

Umm… Something are missing:

[huso@fedora ~]$ sudo akmods
No akmod packages found, nothing to do.                    [  OK  ]
[huso@fedora ~]$ sudo akmods --force && sudo dracut --force
No akmod packages found, nothing to do.                    [  OK  ]

Btw sorry for late response.

I see. Please use https://discussion.fedoraproject.org/t/nvidia-auto-installer-for-fedora-now-works-with-fedora-34/75974 to install the graphics driver from RPM Fusion repositories first and then, follow the checklist like I mentioned. It should work then.

Please do not apologize for late responses. As time zones are different and there can be other things to attend to, delays are understandable. :slightly_smiling_face:

1 Like

Hi guys, I have the same problem. I don’t want to install the proprietary driver…is it mandatory to resolve this error?

1 Like

I’ve executed the commands. After:

[huso@fedora ~]$ rpm -qa akmods
akmods-0.5.6-27.fc34.noarch
[huso@fedora ~]$ sudo akmods --force && sudo dracut --force
[sudo] password for huso: 
No akmod packages found, nothing to do.                    [  OK  ]
[huso@fedora ~]$

You don’t seem to have installed the driver first. Please install them first before building the kernel modules.

1 Like

Welcome back, @giupardeb.

I fail to understand how the kernel modules for the driver failt to load up when the proprietary drivers are not used. You might have a different issue so I would suggest creating a new topic.

1 Like

Sorry i am very ignorant about graphical problems. What driver must i install ?
I installed NVIDIA auto installer.

Once, NVIDIA Auto Installer for Fedora is installed from COPR, please execute the following,

sudo nvautoinstall --rpmadd
sudo nvautoinstall --driver

Then follow the items in the checklist specified in https://discussion.fedoraproject.org/t/fedora-34-nvidia-kernel-module-missing-falling-back-to-nouveau/68831/5 to confirm proper installation of the drivers.

1 Like

I would not call installing from the RUN file a wrong approach but it is definitely something that we do not recommend at Fedora due to its generic nature and the fact that it leaves behind a lot of untrackable residual files with its general method of installation. The tool that I told you about, makes use of RPM Fusion repositories so you can be sure that the drivers are packaged according to a Fedora-compliant manner and, you can upgrade/downgrade among multiple versions and configure the settings seamlessly.

The RUN file does not make use of akmods too, I think so trying to build the kernel modules would be a practice in futility. With my inexperience with the way the RUN files make things happen, I would not be able to be of much help. Could you please uninstall your driver with the commands of that file first and try installing them from the RPM Fusion script that I mentioned of?

1 Like

How can i remove this. I coudn’t find to remove.
BTW i restarted my computer and error didn’t pop up and i didn’t see NVIDIA kernel issue.
I am an headache :man_facepalming:t4:

Could you check in your terminal by typing in nv and hitting TAB?

You might come across something like nvidia-uninstall which might help you do that.

1 Like
[huso@fedora ~]$ sudo nvautoinstall --rpmadd
[sudo] password for huso: 
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA
[ ★ ] CHECKING SUPERUSER PERMISSIONS...
[ ✓ ] Superuser privilege acquired
[ ★ ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was not detected
[ ! ] Repository enabling is required
[ ★ ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ ✓ ] Connection to RPM Fusion servers was established
[ ★ ] INSTALLING RPM FUSION NVIDIA REPOSITORY...
Son üst veri süresi sona erme denetimi: 0:35:26 önce, Paz 02 May 2021 18:51:22 tarihinde.
Bağımlılıklar çözümlendi.
==============================================================================================================
 Paket                                      Mimari            Sürüm                  Depo               Boyut
==============================================================================================================
Kuruluyor:
 fedora-workstation-repositories            noarch            32-5.fc34              fedora             9.0 k
Bağımlılıklar kuruluyor:
 distribution-gpg-keys                      noarch            1.52-1.fc34            updates            333 k

İşlem Özeti
==============================================================================================================
Kur  2 Paket

Toplam indirme boyutu: 342 k
Kurulu boyut: 454 k
Paketler İndiriliyor:
(1/2): distribution-gpg-keys-1.52-1.fc34.noarch.rpm                           856 kB/s | 333 kB     00:00    
(2/2): fedora-workstation-repositories-32-5.fc34.noarch.rpm                    17 kB/s | 9.0 kB     00:00    
--------------------------------------------------------------------------------------------------------------
Toplam                                                                        127 kB/s | 342 kB     00:02     
İşlem denetimi çalıştırılıyor
İşlem denetimi başarılı.
İşlem sınama çalıştırılıyor
İşlem sınama başarılı.
İşlem çalıştırılıyor
  Hazırlanıyor                      :                                                                     1/1 
  Kuruluyor                         : distribution-gpg-keys-1.52-1.fc34.noarch                            1/2 
  Kuruluyor                         : fedora-workstation-repositories-32-5.fc34.noarch                    2/2 
  Doğrulanıyor                      : distribution-gpg-keys-1.52-1.fc34.noarch                            1/2 
  Doğrulanıyor                      : fedora-workstation-repositories-32-5.fc34.noarch                    2/2 

Kuruldu:
  distribution-gpg-keys-1.52-1.fc34.noarch          fedora-workstation-repositories-32-5.fc34.noarch         

Tamamlandı!
[ ✓ ] RPM Fusion NVIDIA repository was enabled
[ ✗ ] Leaving installer
[huso@fedora ~]$ sudo nvautoinstall --driver
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA
[ ★ ] CHECKING SUPERUSER PERMISSIONS...
[ ✓ ] Superuser privilege acquired
[ ★ ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ ★ ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ ✓ ] Connection to RPM Fusion servers was established
[ ★ ] LOOKING FOR EXISTING DRIVER PACKAGES...
[ ! ] No existing NVIDIA driver packages were detected
[ ★ ] INSTALLING PROPRIETARY DRIVERS...
RPM Fusion for Fedora 34 - Nonfree - NVIDIA Driver                             14 kB/s | 8.9 kB     00:00    
gcc-11.1.1-1.fc34.x86_64 paketi zaten kurulu.
kernel-headers-5.11.16-300.fc34.x86_64 paketi zaten kurulu.
kernel-devel-5.11.16-300.fc34.x86_64 paketi zaten kurulu.
Bağımlılıklar çözümlendi.
==============================================================================================================
 Paket                           Mimari     Sürüm                   Depo                                Boyut
==============================================================================================================
Kuruluyor:
 akmod-nvidia                    x86_64     3:465.24.02-1.fc34      rpmfusion-nonfree-nvidia-driver      27 k
 xorg-x11-drv-nvidia             x86_64     3:465.24.02-4.fc34      rpmfusion-nonfree-nvidia-driver      20 M
 xorg-x11-drv-nvidia-libs        x86_64     3:465.24.02-4.fc34      rpmfusion-nonfree-nvidia-driver     117 M
Bağımlılıklar kuruluyor:
 egl-wayland                     x86_64     1.1.6-2.fc34            fedora                               32 k
 nvidia-settings                 x86_64     3:465.24.02-1.fc34      rpmfusion-nonfree-nvidia-driver     1.7 M
 xorg-x11-drv-nvidia-kmodsrc     x86_64     3:465.24.02-4.fc34      rpmfusion-nonfree-nvidia-driver      24 M

İşlem Özeti
==============================================================================================================
Kur  6 Paket

Toplam indirme boyutu: 163 M
Kurulu boyut: 379 M
Paketler İndiriliyor:
(1/6): akmod-nvidia-465.24.02-1.fc34.x86_64.rpm                               125 kB/s |  27 kB     00:00    
(2/6): egl-wayland-1.1.6-2.fc34.x86_64.rpm                                     42 kB/s |  32 kB     00:00    
(3/6): nvidia-settings-465.24.02-1.fc34.x86_64.rpm                            1.3 MB/s | 1.7 MB     00:01    
(4/6): xorg-x11-drv-nvidia-465.24.02-4.fc34.x86_64.rpm                        603 kB/s |  20 MB     00:34    
(5/6): xorg-x11-drv-nvidia-kmodsrc-465.24.02-4.fc34.x86_64.rpm                579 kB/s |  24 MB     00:41    
(6/6): xorg-x11-drv-nvidia-libs-465.24.02-4.fc34.x86_64.rpm                   908 kB/s | 117 MB     02:11    
--------------------------------------------------------------------------------------------------------------
Toplam                                                                        1.2 MB/s | 163 MB     02:14     
İşlem denetimi çalıştırılıyor
İşlem denetimi başarılı.
İşlem sınama çalıştırılıyor
İşlem sınama başarılı.
İşlem çalıştırılıyor
  Hazırlanıyor                      :                                                                     1/1 
  Kuruluyor                         : xorg-x11-drv-nvidia-kmodsrc-3:465.24.02-4.fc34.x86_64               1/6 
  Kuruluyor                         : egl-wayland-1.1.6-2.fc34.x86_64                                     2/6 
  Kuruluyor                         : xorg-x11-drv-nvidia-libs-3:465.24.02-4.fc34.x86_64                  3/6 
  Kuruluyor                         : akmod-nvidia-3:465.24.02-1.fc34.x86_64                              4/6 
  Betik yürütülüyor                 : akmod-nvidia-3:465.24.02-1.fc34.x86_64                              4/6 
  Kuruluyor                         : nvidia-settings-3:465.24.02-1.fc34.x86_64                           5/6 
  Betik yürütülüyor                 : xorg-x11-drv-nvidia-3:465.24.02-4.fc34.x86_64                       6/6 
  Kuruluyor                         : xorg-x11-drv-nvidia-3:465.24.02-4.fc34.x86_64                       6/6 
  Betik yürütülüyor                 : xorg-x11-drv-nvidia-3:465.24.02-4.fc34.x86_64                       6/6 
  Betik yürütülüyor                 : akmod-nvidia-3:465.24.02-1.fc34.x86_64                              6/6 
  Betik yürütülüyor                 : xorg-x11-drv-nvidia-3:465.24.02-4.fc34.x86_64                       6/6 
  Doğrulanıyor                      : egl-wayland-1.1.6-2.fc34.x86_64                                     1/6 
  Doğrulanıyor                      : akmod-nvidia-3:465.24.02-1.fc34.x86_64                              2/6 
  Doğrulanıyor                      : nvidia-settings-3:465.24.02-1.fc34.x86_64                           3/6 
  Doğrulanıyor                      : xorg-x11-drv-nvidia-3:465.24.02-4.fc34.x86_64                       4/6 
  Doğrulanıyor                      : xorg-x11-drv-nvidia-kmodsrc-3:465.24.02-4.fc34.x86_64               5/6 
  Doğrulanıyor                      : xorg-x11-drv-nvidia-libs-3:465.24.02-4.fc34.x86_64                  6/6 

Kuruldu:
  akmod-nvidia-3:465.24.02-1.fc34.x86_64                  egl-wayland-1.1.6-2.fc34.x86_64                     
  nvidia-settings-3:465.24.02-1.fc34.x86_64               xorg-x11-drv-nvidia-3:465.24.02-4.fc34.x86_64       
  xorg-x11-drv-nvidia-kmodsrc-3:465.24.02-4.fc34.x86_64   xorg-x11-drv-nvidia-libs-3:465.24.02-4.fc34.x86_64  

Tamamlandı!
[ ✓ ] Driver package installation completed
[ ✗ ] Leaving installer
[huso@fedora ~]$ 

[huso@fedora ~]$ rpm -qa akmods
akmods-0.5.6-27.fc34.noarch
[huso@fedora ~]$ sudo akmods --force && sudo dracut --force
Checking kmods exist for 5.11.16-300.fc34.x86_64           [  OK  ]
[huso@fedora ~]$
[huso@fedora ~]$ sudo nvautoinstall --driver
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA
[ ★ ] CHECKING SUPERUSER PERMISSIONS...
[ ✓ ] Superuser privilege acquired
[ ★ ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ ★ ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ ✓ ] Connection to RPM Fusion servers was established
[ ★ ] LOOKING FOR EXISTING DRIVER PACKAGES...
      xorg-x11-drv-nvidia-kmodsrc-465.24.02-4.fc34.x86_64
      xorg-x11-drv-nvidia-libs-465.24.02-4.fc34.x86_64
      akmod-nvidia-465.24.02-1.fc34.x86_64
      nvidia-settings-465.24.02-1.fc34.x86_64
      xorg-x11-drv-nvidia-465.24.02-4.fc34.x86_64
      kmod-nvidia-5.11.16-300.fc34.x86_64-465.24.02-1.fc34.x86_64
[ ! ] A total of 6 driver packages were detected
[ ★ ] REINSTALLING PROPRIETARY DRIVERS...
Son üst veri süresi sona erme denetimi: 0:08:57 önce, Paz 02 May 2021 19:27:08 tarihinde.
gcc-11.1.1-1.fc34.x86_64 paketi zaten kurulu.
kernel-headers-5.11.16-300.fc34.x86_64 paketi zaten kurulu.
kernel-devel-5.11.16-300.fc34.x86_64 paketi zaten kurulu.
akmod-nvidia-3:465.24.02-1.fc34.x86_64 paketi zaten kurulu.
xorg-x11-drv-nvidia-3:465.24.02-4.fc34.x86_64 paketi zaten kurulu.
xorg-x11-drv-nvidia-libs-3:465.24.02-4.fc34.x86_64 paketi zaten kurulu.
Bağımlılıklar çözümlendi.
Yapılacak bir şey yok.
Tamamlandı!
[ ✓ ] Driver package installation completed
[ ✗ ] Leaving installer
[huso@fedora ~]$

I hope it will work.

I really hope you uninstalled the acquirements from the RUN file before running this one.

This installation script runs all the time in a default environment but yours is a modified one, for it has the installation from the RUN file.

Fingers crossed.

1 Like

I’ve removed RUN file via nvidia-uninstall command.

But i use KDE. So i don’t know where can i activate this repo.

Oh ok i found.

You do not need to activate the repository if you using the script because running sudo nvautoinstall --rpmadd would do that for you.

1 Like

Unfortunety it did not work :frowning:

Probably i will make clean install :frowning:

ok thanks, I will open new topic

2 Likes