How to fully disable the NVIDIA kernel module?

Hello there.
I was trying to install v495 of the NVIDIA driver from the NVIDIA website, I ran the .run script as root as per it’s request and got this error:


I got this error although I was using my intel GPU, so is there a way to disable the NVIDIA kernel module?
Or can I boot into pure command line without any GUI, and how?
Thanks

Hi @YoungFellow,

Well, the error is because you didn’t use the driver shipped by Manjaro, and you should use that and not a random one downloaded from the internet.

With all that in mind, yes it is possible, but you shouldn’t do it.

Rather open your terminal and see which drivers are available to you:

mhwd --list

Install one of those:

https://wiki.manjaro.org/index.php/Configure_NVIDIA_(non-free)_settings_and_load_them_on_Startup

Why don’t I want to use the ones from manjaro?
Read this, and this :point_down:

In that case. Please provide the output of

ls /etc/modprobe.d/
❯ ls /etc/modprobe.d/
mhwd-gpu.conf

Thought so. That’s good BTW. Now, please provide the output for:

cat /etc/modprobe.d/mhwd-gpu.conf
❯ cat /etc/modprobe.d/mhwd-gpu.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm
options nvidia "NVreg_DynamicPowerManagement=0x02"
Completely unsure about this.

Edit the file, as root:

sudo nano /etc/modprobe.d/mhwd-gpu.conf

Add the following line to it, just before the line starting with options:

blacklist nvidia

And reboot.

Please note: I take 0, nada, none, NO responsibility if something goes wrong. (Which is a possibility.)

To be safe:

Make a backup and restore it from chroot if something goes wrong.

THEORETICALLY it should be fine to just uninstall the Manjaro nvidia drivers and reboot:

To identify the drivers, run:

mhwd --listinstalled

To uninstall the driver, then run:

mhwd --remove pci <drivername>

Where <drivername> is the name of the driver identified in the previous step.

Then go on and try to use the other one.

If things go wrong, I can just edit in nano from another tty right?
What are you worried about?

I’m worried you might not get a GUI.

Is this correct?

THEORETICALLY, YES. Or from chroot.

But that’s just theory for me at the moment.

Don’t worry, won’t blame if everything goes wrong :grin:
I’ll finish my project and try it out.

1 Like

Screenshot_20220324_224846

Driver v495 successfully installed!
Thanks @Mirdarthos!

1 Like

Just be aware that it’s not dkms, so it won’t survive kernel changes and I almost think you’ll have to install it for all your kernels. Although, about that I might be wrong, but I don’t think so.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.