Fedora 29/28/27 nVidia Drivers Uninstall Guide

5. Fedora 29/28/27/26/25/24/23/22 Uninstall nVidia drivers and Enable Nouveau

I assume here that you have used this guide install part to install your nVidia drivers. This whole process is good to run on runlevel 3. When there is no X running. So first boot to runlevel 3 using direct parameter (3) on Grub linux/linuxefi line or using “systemctl set-default multi-user.target”.

5.1 Change root user


su -
## OR ##
sudo -i

5.2 Start nVidia Uninstall Process


nvidia-installer --uninstall

5.3 Restore xorg.conf

You can restore xorg.conf backup or remove /etc/X11/xorg.conf if you don’t have any special configuration.
Fedora nVidia Uninstall Restore Xorg Conf

5.4 nVidia Uninstall Warning

You might see following warning if you have updated some packages since nvidia drivers installation. Just select “OK”.
Fedora nVidia Uninstall Warning Altered

5.5 nVidia Installer Uninstalling

Fedora nVidia Uninstall Process

5.6 Fedora nVidia Uninstall Complete

Fedora nVidia Uninstall Complete

5.7 Remove blacklist nouveau

Remove ‘blacklist nouveau’ line from /etc/modprobe.d/blacklist.conf

5.8 Remove rd.driver.blacklist=nouveau

Remove ‘rd.driver.blacklist=nouveau’ from end of ‘GRUB_CMDLINE_LINUX=”…”‘


## Example row ##
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet"

5.9 Update grub2 conf


## BIOS ##
grub2-mkconfig -o /boot/grub2/grub.cfg
 
## UEFI ##
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

5.10 Install xorg-x11-drv-nouveau


## Fedora 29/28/27/26/25/24/23/22 ##
dnf install xorg-x11-drv-nouveau

5.11 Generate initramfs


## Backup old initramfs nvidia image ##
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nvidia.img
 
## Create new initramfs image ##
dracut /boot/initramfs-$(uname -r).img $(uname -r)

5.12 Reinstall xorg, mesa and libglvnd packages


## Fedora 29/28/27/26/25/24/23/22 ##
dnf reinstall xorg-\* mesa\* libglvnd\*

5.13 Reboot

Run systemctl set-default graphical.target first or if you used direct grub parameter, then just:


reboot

5.14 nVidia Drivers Uninstall Complete and nouveau enabled

Fedora nVidia Uninstall Back to nouveau

2,122 comments on “Fedora 29/28/27 nVidia Drivers Uninstall Guide

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close