Home > Article > Hardware Tutorial > Check the graphics card driver in linux
1. There are four steps to view the machine configuration under Linux. The following is the specific operation: First, right-click Desktop, select openinternal. Then enable the root user. To view cpu information, use the command lscpu. To view memory information, use the command free-m. To view disk information, use the command lsblk.
2. You can use proccpuinfo to view CPU information. This file contains sections of data for each processor on the system.
3. Method to view CPU information of Linux system Tool raw material Linux system Method step 1 proccpuinfo The simplest way is to view proccpuinfo. This virtual file shows the configuration of available CPU hardware.
Let’s find out how to check gpu usage in Linux. Open the Linux system and right-click on a blank space on the Linux desktop. In the pop-up drop-down option, click to open the terminal. Enter the nvidia-smi command and press Enter to run it to display the GPU usage.
View graphics card information Since the test environment uses NVIDIA graphics cards, you can directly query the specific graphics card information "00:00" through the lspci command. This parameter is the bus number, and the second is the slot number. , the third one is the function number, they are all hexadecimal numbers.
First of all, use the command lspci | grep -i vga to check whether your graphics card is NVIDIA or Intel. For NVIDIA, just install the NVIDIA driver and check it out. There are tutorials on the Internet that won’t go into detail. For Intel graphics cards, the truth is actually the same, but there is no method.
1. The steps are as follows: Go to the official website to download the driver. Copy the file to the directory, sudocpNVIDIA-Linux-x86-33runsudochmod751NVIDIA-Linux-x86-33run, and change the permissions of the driver file.
2. Closed-source driver installation for newer graphics cards. Check the graphics card model at the link below. If your graphics card is listed among them, then this method applies.
3. Then use sudo apt-get install nvidia-430 to directly install the latest version of the Nvidia graphics driver. After installation, restart the system, good! The system goes black again.
4. Download the driver. Search the NVIDIA official website on Baidu and download the driver package (Linux version) that matches your graphics card from the official website.
1. Download the graphics card driver suitable for my laptop. It should be noted that it must be For Linux.
2. Dependency issues: If there is a problem with some dependent libraries in the system, it will also cause the system to fail to operate normally. At this time, you can try to upgrade or reinstall related software packages. Graphics card driver problem: If a graphics card driver is installed in the virtual machine and is incompatible with the current kernel version, startup failure will occur.
3. Then use sudo apt-get install nvidia-430 to directly install the latest version of the Nvidia graphics driver. After installation, restart the system, good! The system goes black again.
4. The driver is incompatible. After searching, click Download and agree to the agreement. Uninstall the original driver first. If the graphics card driver was previously installed through the ppa source, use the following command to uninstall it.
1. Install the graphics driver in Linux: Enter nvidiaramd on Baidu to find the official website. Find the graphics driver (including graphics card model and operating system bits) on the official website and click to search. ,entering download page. But sometimes a web page appears.
2. Graphics card list. Run the following command in the terminal to install the driver: sudo apt-get install nvidia-kernel-legacy-173xx-dkms nvidia-glx-legacy-173xx build-essential nvidia-settings nvidia-xconfig After the installation is complete, restart the computer.
3. Each Linux has a corresponding software package manager, which can download software, such as Debian's apt-get, archlinux's pacman, etc. Through these, you can download your driver: xf86-video- nvidia.
4. Then use sudo apt-get install nvidia-430 to directly install the latest version of the Nvidia graphics driver. After installation, restart the system, good! The system goes black again.
1. Right-click My Computer, right-click-Properties. After opening, there is a Hardware-Device Manager, as shown below. After opening, as shown in the figure. Click the small + sign on the display card - right click and click Properties to complete the driver.
2. Open CUDA and enter cd usrlocalcudasamples1_UtilitiesdeviceQuery default location in the command box. make If "Fatal error: cant create deviceQuery.o: Permission denied" appears, add sudo in front of make.
3. First, you must install mesa-utils. Enter the command in the terminal: sudo apt-get install mesa-utils; then run the command: glxinfo | grep rendering; if the result is "yes", it proves that the graphics card driver has been installed. Installed successfully.
4. First press Ctrl + Alt + F1 to the console to close the current graphics environment; then install the driver; and finally restart the graphics environment. View properties: $sudo ls -lh etcmodprobe.dblacklist.conf.
The above is the detailed content of Check the graphics card driver in linux. For more information, please follow other related articles on the PHP Chinese website!