blacklist nouveau
时间: 2024-08-16 14:00:33 浏览: 30
CentOS7+安装NVIDIA驱动及cuda
5星 · 资源好评率100%
Blacklisting a device in Linux, such as Nouveau, typically refers to preventing it from being automatically detected and used by the graphics subsystem. Nouveau is an open-source implementation of the NVIDIA graphics drivers for Linux systems, but it's often not preferred due to performance issues or lack of official support.
To blacklist Nouveau on a Debian-based system (like Ubuntu), you can edit the `"/etc/modprobe.d/blacklist.conf"` file and add the following line:
```bash
blacklist nouveau
```
This will ensure that the `nouveau` module won't be loaded at boot time. Alternatively, you can use `dpkg-reconfigure` to disable Nouveau through the package manager:
```bash
sudo dpkg-reconfigure xserver-xorg-video-nvidia
```
On Red Hat-based systems (e.g., CentOS), you might need to modify the `/etc/modprobe.d/` directory's content or create a custom configuration file with a similar command:
```bash
echo "options nouveau modeset=0" | sudo tee /etc/modprobe.d/nouveau.conf > /dev/null
```
After making these changes, your system will default to using a different graphics driver, like `nvidia` if it's installed.
阅读全文