How to Uninstall (revert back to default driver) Nvidia Drivers?

Hey, i installed Nvidia drivers from the lutris docs to test some games on EndeavourOS, basically i used this command.

sudo pacman -S --needed nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings vulkan-icd-loader lib32-vulkan-icd-loader

but if i try to uninstall it using -Rcns flag i get stuck in booting on

[Ok] Reached target graphical interface.

How can i uninstall nvidia drivers and go back to default ones?

I assume you mean open source nouveau driver as “default”?

If so, you can uninstall those nvidia driver packages and install xf86-video-nouveau.

Another way would be using the nvidia-inst app with the --nouveau option. If you don’t have nvidia-inst installed, simply install it first.

Edit: for the record, please show the output of command

inxi -Gza

for the record, please show the output of command
inxi -Gza

Here’s the output.

If i try to uninstall these packages

nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings vulkan-icd-loader lib32-vulkan-icd-loader

i get a list too many packages which frees around 4GB of space

From the above list which packages can i safely remove?

Don’t use -Rcns, use e.g. -Rdd instead.
And it is always wise to check which packages the command is trying to remove.

…and afterwards install them needed ones again, explicitly. :wink:

1 Like

i uninstalled these packages using -Rdd flag, the info i found about -Rdd suggest it forces Installation??

installed xf86-video-nouveau, Now restarting to see if everything works…

Pacman option -c with operation -R is potentially dangerous since it may uninstall much more packages than user actually wanted.

did this no package was needed. as it says there is nothing to do.

You might have got me wrong on “needed”. - I didn’t mean pacman -S --needed …as that “option” will always interpret a package as needed, when it is not yet installed, when you name it.

What I meant was “needed” in a human-thinking way, not in (quite dumb) “pacman-sense”. :wink:

From my understanding this command removes a package from the system, along with its dependencies right. i just use it so i don’t have unnecessary packages as i am dual booting from a 250GB SSD

I assume you are using nouveau now?

Edit: -Rs will remove dependencies. Actually nvidia-inst will use -Rsn when removing packages.

yeh, i restarted and it again got stuck on [Ok] Reached target graphical interface. so use tty3 to reinstall all the package i had uninstalled and had to remove xf86-video-nouveau
after that i booted in pc and i am replying here :sweat_smile:

1 Like

Actually i think the problem is when i installed the nvidia drivers it did some things in terminal which looked similar to when the kernal updates, but while uninstalling it doesn’t revert whatever it did so it is still trying to load nvidia driver which are not present.

Yes, it is possible you need to revert some stuff if you did that specifically for the nvidia driver.

Can you show this command output:

cat /var/log/pacman.log | eos-sendlog
1 Like

No no, the nvidia driver installation did that, i have no idea what it did.

$ cat /var/log/pacman.log | eos-sendlog

it only show this

1 Like

it seems, i will have to live with nvidia :smiling_face_with_tear:

Sorry, I meant the log of file: /var/log/Xorg.0.log

The command send the output to a pastebin service and shows its address.

um actually it’s quite big should i paste it here or just provide link.

Use a similar command as before, don’t paste the log output on the forum, only the address from eos-sendlog … :wink: