[Experience sharing] i+n卡如何驱动N卡(启用独显,屏蔽集显)
Tofloor
poster avatar
deepin-流云
Super Moderator
Community OP
2025-03-11 10:00
Author

应用场景

硬件/整机信息:全平台

OS版本信息:全架构

OS版本信息:桌面专业版、家庭版、deepin社区版

问题现象

启用独显,屏蔽集显

解决方案

步骤一

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

sudo vim /etc/X11/xorg.conf

需注意的是在deepin25中由于文本编辑器默认为玲珑版,可能会存在命令不存在的情况,需先执行sudo apt update&&sudo apt install deepin-editor后执行相应命令,或直接使用vim进行编辑。

添加内容

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
绿竹
deepin
2025-07-02 11:01
#1
It has been deleted!
xue4113
deepin
2025-09-13 19:56
#2

第二步执行命令之后显示sudo: deepin-editor:找不到命令

Reply View the author
deepin-流云
Super Moderator
Community OP
2025-09-15 10:29
#3
xue4113

第二步执行命令之后显示sudo: deepin-editor:找不到命令

deepin-editor没有安装,sudo apt update&&sudo apt install deepin-editor 再试下。

应该跟deepin25默认文本编辑器是玲珑版的缘故,我更新下内容。谢谢

Reply View the author
NoahLiu
deepin
2025-09-18 09:27
#4
deepin-流云

deepin-editor没有安装,sudo apt update&&sudo apt install deepin-editor 再试下。

应该跟deepin25默认文本编辑器是玲珑版的缘故,我更新下内容。谢谢

斑竹你好,请问为什么系统内置应用很多使用玲珑包了,是为了推广玲珑包而玲珑包吗 ?玲珑包不是为了兼容性而产生的吗?为深度开发的系统应用不兼容深度所以换上玲珑包了吗 ?

今天早上我使用 文本编辑器编辑 ~/.bashrc 的时候怎么都看不到源文件, 但是 命令行 cat 看到的内容又是我想要的,就是无法通过 文本编辑器来编辑,故此产生了上述的疑问,上次被玲珑包影响使用是 安装 23 之后 github Desktop 因为玲珑包的容器环境无法读取 深度终端 及 git

Reply View the author
deepin-流云
Super Moderator
Community OP
2025-09-18 09:32
#5
NoahLiu

斑竹你好,请问为什么系统内置应用很多使用玲珑包了,是为了推广玲珑包而玲珑包吗 ?玲珑包不是为了兼容性而产生的吗?为深度开发的系统应用不兼容深度所以换上玲珑包了吗 ?

今天早上我使用 文本编辑器编辑 ~/.bashrc 的时候怎么都看不到源文件, 但是 命令行 cat 看到的内容又是我想要的,就是无法通过 文本编辑器来编辑,故此产生了上述的疑问,上次被玲珑包影响使用是 安装 23 之后 github Desktop 因为玲珑包的容器环境无法读取 深度终端 及 git

是的,现在25大多数系统应用都换为玲珑了,如果需要系统编辑权限,可以手动装回deb版本即可。

Reply View the author