how to blacklist nvidia driver without deinstalling it

Kernels & Hardware, configuring network, installing services

how to blacklist nvidia driver without deinstalling it

Postby pythagorasmk » 2019-10-29 22:01

I have installed nvidia legacy driver in debian 10.1. How to blacklist it, so it doesn't load. I want to load nouveau driver instead.
pythagorasmk
 
Posts: 35
Joined: 2015-01-18 03:40

Re: how to blacklist nvidia driver without deinstalling it

Postby p.H » 2019-10-30 18:42

To blacklist a kernel module, create a file /etc/modprobe.d/blacklist-nvidia.conf containing
Code: Select all
blacklist <modulename>

The nvidia driver has several nvidia* kernel modules. I don't know which one must be blacklisted, but it is the one showing "alias: pci:..." lines with modinfo.
Note that this does not blacklist the Nvidia X.org driver part, which won't work without the Nvidia kernel modules.
p.H
 
Posts: 1151
Joined: 2017-09-17 07:12

Re: how to blacklist nvidia driver without deinstalling it

Postby pythagorasmk » 2019-10-30 19:42

That is not what I want. I want to blacklist nvidia driver so noveuau will be loaded. If this method does not block the nvidia X.org driver part, then that is not satisfactory. I want method to interchange between nvidia and noveuau driver. All this, because, nuuveau driver supports 1920x1080 resolution in virtual console, and nvidia is faster with 2d and 3d graphics. So when I need to work in console I want to use nouveau driver, but when I use GUI I want to use nvidia driver.
pythagorasmk
 
Posts: 35
Joined: 2015-01-18 03:40

Re: how to blacklist nvidia driver without deinstalling it

Postby stevepusser » 2019-10-30 22:48

Doesn't the Nvidia driver also blacklist nouveau? You'll also need to take it off the blacklist at the same time you add the Nvidia drivers. I'm sure a script could handle the switches.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11231
Joined: 2009-10-06 05:53

Re: how to blacklist nvidia driver without deinstalling it

Postby sunrat » 2019-10-31 01:42

Would it not be better to set the correct TTY resolution while still using nvidia driver? This thread may be of interest - https://askubuntu.com/questions/1149736 ... ia-drivers
Particularly the following comment which the OP in that thread hasn't replied whether they tried it:

The nVidia chip is probably capable of running both VESA emulation and full graphics, and your question is "how to set the VESA mode back to the original that is set by the boot process". If the chip is capable, it should respond to setting the frame buffer resolution. Try: "fbset /dev/fb0 -g 1600 1050 1600 1050 8" Also, do "fbset -i" and see what comes out. This should tell you the current FB geometry. I'm not 100% sure of the correct value for the resolution part so you may have to try some variations. See man fbset. – Naoyuki Tai

You may have to install fbset to try that. It's tiny.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2868
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: how to blacklist nvidia driver without deinstalling it

Postby pythagorasmk » 2019-11-03 14:50

I have read the article, but the problem is that I don't have framebuffer device. There is no /dev/fb0 or other /dev/fb* device.
I have followed some guide on internet to enable framebuffer device, changed something (I don't remember what), and now the first line when the system is booting is framebuffer=y. But I still don't have frame buffer device.
How can I enable framebuffer device?
pythagorasmk
 
Posts: 35
Joined: 2015-01-18 03:40

Re: how to blacklist nvidia driver without deinstalling it

Postby pythagorasmk » 2019-11-03 19:59

According to this page https://wiki.archlinux.org/index.php/NVIDIA#DRM_kernel_mode_setting Nvidia driver dos not support framebuffer. Here is the note from the page:
Code: Select all
Note: The NVIDIA driver does not provide an fbdev driver for the high-resolution console for the kernel compiled-in vesafb module. However, the kernel compiled-in efifb module supports a high-resolution console on EFI systems. This method requires GRUB and is described in NVIDIA/Tips and tricks#Fixing terminal resolution.[1][2].

I have decided to uninstall Nvidia driver, and return to Nouveau.
Thanks anyway.
pythagorasmk
 
Posts: 35
Joined: 2015-01-18 03:40


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable