How to install graphics card drivers on Linux?
The steps to install a graphics card driver on Linux are as follows:
- To determine the graphics card model: Open the terminal and enter the following command to determine the graphics card model:
- Show the VGA information with additional two lines using lspci command.
- This will display information about your graphics card model and its driver.
- Download drivers: Depending on your graphics card model, visit the official website of the graphics card or the official website of Linux-supported graphics drivers, and download the drivers suitable for your Linux distribution.
- Disable open source drivers: Before installing new graphics card drivers, you need to disable the current open source graphics card drivers being used by the system. Enter the following command in the terminal to disable the open source drivers:
- Run the following commands to blacklist nouveau and update the initramfs:
“`
sudo sh -c ‘echo “blacklist nouveau” >> /etc/modprobe.d/blacklist.conf’; sudo sh -c ‘echo “options nouveau modeset=0” >> /etc/modprobe.d/blacklist.conf’; sudo update-initramfs -u
“` - Install driver: Install the driver according to the file type of the downloaded driver. For most drivers, you will need to switch to the directory where the downloaded driver is located in the terminal, and execute the following command to install the driver:
- Make the driver file executable with the command “chmod +x
” and then run it with superuser privileges using “sudo ./ “. is the file name of the driver program you downloaded. - Configure drivers: After installing the drivers, you may need to make some configurations. This can typically be done through the system settings or the graphical interface of the graphics card drivers. Adjust the configuration according to the graphics card driver you are using.
- Restart your system after installing the graphics card driver to ensure the driver takes effect.
Please note that the above steps may vary slightly depending on your Linux distribution and graphics card model. Be sure to back up your data before installing the graphics card driver and carefully read the installation guide.