配置文件路径
目前遇到两种配置路径:
(1)/etc/X11/xorg.conf
文件,在网络文章看到的。
(2)/etc/X11/xorg.conf.d/
目录,此目录下可以放多个配置文件,deepinV20.9。
配置文件内容
2024年4月17日,deepinV20.9
,装显卡RTX 2080 Ti:(1)安装GPU;(2)安装驱动;(3)写配置文件。
deepinV20.9,Xorg配置文件在/etc/X11/xorg.conf.d/
目录下:
查看显卡名称
lspci | grep -i vga
lspci | grep -i VGA
lshw -C display
sudo lshw -C video # 视频卡(显卡)信息
nvidia-smi
nvidia-smi -a
创建配置文件
sudo vim /etc/X11/xorg.conf.d/mine-nvidia.conf
输入以下内容:
Section "Device"
Identifier "NVIDIA GeForce RTX 2080 Ti"
Driver "nvidia"
EndSection
Identifier 是显卡名称;
Driver 是驱动名称,NVIDIA显卡,驱动nvidia
。
保存退出
将视频线插到显卡上
重启计算机