[Share Experiences] i+n卡如何驱动N卡(启用独显,屏蔽集显)
Tofloor
poster avatar
yanjuner
Super Moderator
2023-12-05 00:52
Author

硬件/整机信息:全平台

OS版本信息:全架构


问题现象

启用独显,屏蔽集显


解决方案

步骤一

1、桌面右键打开终端输入并执行:

lspci |grep -E3 "VGA|3D|Display"

2、查看n卡的pci号是多少,如01:00.0 那么busid为:1:0:0

若为:2e:00:0 其中2e要转换为10进制46,所以busid为:46:0:0

步骤二

接下来具体操作:

执行命令:sudo deepin-editor /etc/X11/xorg.conf

添加内容

Section "Module"

Load "modesetting"

EndSection

Section "Device"

Identifier "Card0"

Driver "nvidia"

BusID "PCI:1:0:0"

EndSection

保存后关闭文件

步骤三

执行命令:sudo deepin-editor /etc/lightdm/display_setup.sh

添加内容

#!/bin/sh

xrandr --setprovideroutputsource modesetting NVIDIA-0

xrandr --auto

保存后关闭文件

步骤四

执行命令:sudo chmod +x /etc/lightdm/display_setup.sh

步骤五

执行命令:sudo deepin-editor /etc/lightdm/lightdm.conf

找到#display-setup-script=这行

将其修改为:

display-setup-script=/etc/lightdm/display_setup.sh

步骤六

重启电脑

Reply Favorite View the author
All Replies
sammy-621
deepin
2023-12-05 00:59
#1

欢迎成功操作的小伙伴在贴子下留个名

Reply View the author
TSAC
deepin
2023-12-05 01:03
#2

感谢分享

Reply View the author
CPU你的❤️
deepin
2023-12-05 01:03
#3

https://github.com/bayasdev/envycontrol

可以试试这个项目

Reply View the author
北冥夜未央
deepin
2023-12-05 01:47
#4

这看着是N卡驱动安装成功以后启动N卡的,官方还是需要出个驱动管理器才是。

Reply View the author
阿尼樱奈奈
Moderator
2023-12-05 01:51
#5

可惜,我电脑是单N卡

Reply View the author
Tonny
deepin
2023-12-05 03:26
#6
It has been deleted!
neko
Moderator
2023-12-05 05:20
#7

直接用这个,好使
image.png

Reply View the author