Files
linux-wiki/content/deepin折腾笔记/第三章/3.2.md
2021-10-21 14:57:58 +08:00

20 lines
1.3 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 3.2 双显卡用户驱动 Nvidia 独显
第一步xrandr --listproviders #双显卡应该有两行输出,但也可能该命令无法识别
第二步确定Nvidia显卡的BusID执行`lspci |grep NVIDIA`
示例输出04:00.0 3D controller: NVIDIA Corporation GK208M [GeForce 920M]根据行首数字“04:00.0”确定显卡的BusID为`"PCI:4:0:0" `
第三步编写Nvidia显卡的配置文件`sudo dedit /etc/X11/xorg.conf`复制以下内容后替换你显卡的BusID。注意以下步骤如果有一个字母错误都可能启动黑屏。
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:4:0:0"EndSection
第四步在LightDM启动时设置独显运算核显输出
参考以下内容修改配置:`sudo dedit /etc/lightdm/lightdm.conf`
[Seat:*]
...display-setup-script=sh -c "xrandr --setprovideroutputsourcemodesetting NVIDIA-0; xrandr --auto"
第五步安装Nvidia显卡驱动和工具 `sudo apt install nvidia-driver `
nvidia-sminvidia-settings
重启后,`lspci -k |egrep -A2 "VGA|3D" `或者`nvidia-smi`判断N卡驱动情况。