How do I disable the nouveau driver on CentOS?
To disable the Nouveau driver, you can follow these steps:
- Firstly, open the terminal and log in using root privileges.
- To edit the grub configuration file, you can open the file using the following command:
- Edit the configuration file at /etc/default/grub.
- Locate the GRUB_CMDLINE_LINUX line in the open file and add the options nouveau.modeset=0 rd.driver.blacklist=nouveau within the quotation marks. An example is shown below:
- GRUB_CMDLINE_LINUX=”rhgb quiet disabling nouveau modeset and blacklisting nouveau driver”
- Save and close the file.
- Run the following command to regenerate the GRUB configuration:
- Generate a new configuration file for GRUB2 at the specified path /boot/grub2/grub.cfg.
- Restart the system for changes to take effect.
- restart
- The Nouveau driver will be disabled after the system restart.
Please note that these steps are applicable for CentOS 7 and higher versions. If you are using an older version, please make the necessary adjustments to the commands and file paths.