Solve the problem of graphics card memory occupied by /usr/lib/xorg/Xorg in Ubuntu system

Problem Description:

For the newly installed Ubuntu system on the server, the /usr/lib/xorg/Xorg thread will occupy the graphics card memory by default when booting, and the memory size occupied is 4Mb. Although the occupied memory is not large, it is really unfriendly to patients with obsessive-compulsive disorder!

Solution: Just move the xorg thread to the integrated graphics card. Refer to the blog: Solve the problem of /usr/lib/xorg/Xorg occupying gpu video memory - Jianshu (jianshu.com)

1. Run the lspci | grep VGA command to view the BusId of the integrated graphics card.

The last line is the BusId of the integrated graphics card. The BusId of the integrated graphics card corresponding to this server is: 12:00.0

2. Run sudo nano /etc/X11/xorg.conf to open the xorg configuration file

Find the sub-item Section "Device" and add it

    BusId          "12:00.0"

The content inside the quotation marks is the integrated graphics card BusId found in step 1. 

 Ctrl+X, then press Y to save.

3. After sudo reboot, re-enter the command nvidia-smi and the problem is solved!

 

Guess you like

Origin blog.csdn.net/qq_17783559/article/details/130927793