deepin怎么使用独立显卡玩游戏啊
Tofloor
poster avatar
ighack
deepin
2020-06-13 20:15
Author
本帖最后由 ighack 于 2020-6-20 22:50 编辑
  1. ighack@ighack-PC:~$ nvidia-smi
  2. Sat Jun 13 12:08:47 2020      
  3. +-----------------------------------------------------------------------------+
  4. | NVIDIA-SMI 440.82       Driver Version: 440.82       CUDA Version: 10.2     |
  5. |-------------------------------+----------------------+----------------------+
  6. | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
  7. | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
  8. |===============================+======================+======================|
  9. |   0  GeForce RTX 2060    Off  | 00000000:01:00.0 Off |                  N/A |
  10. | N/A   49C    P8     1W /  N/A |    154MiB /  5934MiB |     12%      Default |
  11. +-------------------------------+----------------------+----------------------+

  12. +-----------------------------------------------------------------------------+
  13. | Processes:                                                       GPU Memory |
  14. |  GPU       PID   Type   Process name                             Usage      |
  15. |=============================================================================|
  16. |    0       820      G   /usr/lib/xorg/Xorg                           153MiB |
  17. |    0     19083      G   /usr/bin/nvidia-settings                       0MiB |
  18. +-----------------------------------------------------------------------------+
Copy the Code
我闭源显卡驱动应该是安装成功了。在做深度学习的时候是可以正常的使用GPU的
我是根据这篇文章来安装的https://blog.csdn.net/qq_28656767/article/details/106278978?utm_source=
NVIDIA X Server Setting程序也正常



但是玩游戏的时候感觉没用的独立显卡,玩起来卡的要命。没有显存被占用。就是上面那个样子
我在steam中玩dota2



Reply Favorite View the author
All Replies
avatar
ighack
deepin
2020-06-13 21:53
#1
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.82

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "rotocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "CI:1:0:0"
    option         "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "intel"
    VendorName     "intel"
    BusID          "CI:0:2:0"
    Driver         "modesetting"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

/etc/X11/xorg.conf
Reply View the author
avatar
msan
deepin
2020-06-14 02:30
#2
像我没有集显就不需要担心这个问题了
Reply View the author
avatar
jfy_99
deepin
2020-06-14 04:55
#3
本帖最后由 jfy_99 于 2020-6-13 20:56 编辑

参考帖子:https://bbs.deepin.org/post/178542,/etc/X11/xorg.conf中可能少了这样的几行:
  1. Section "Module"
  2.     Load "modesetting"
  3. EndSection
Copy the Code
Reply View the author
avatar
ighack
deepin
2020-06-14 06:42
#4
https://bbs.deepin.org/post/195935
参考帖子:https://bbs.deepin.org/post/178542,/etc/X11/xorg.conf中可能少了这 ...

试过了还是不行
Reply View the author
avatar
jfy_99
deepin
2020-06-14 16:23
#5
如果NVIDIA X Server Settings可以打开,并且里面能看到X Screen 0的标签页,说明独显已经启用了,只是深度显卡驱动管理器不知道……
奇怪的是,nvidia-smi的输出中应该还有kwin_x11这个进程。可以删除~/.xinitrc试试,因为这一步是多余的。
Reply View the author
avatar
忘记、过去
deepin
2020-06-14 20:36
#6
本帖最后由 zty199 于 2020-6-14 12:39 编辑

xorg.conf里面有错误,两个显卡设备名称Identifier被你设置成一样的了,那么当你在定义Screen时选择调用Device,不知道调用的是哪个......正常情况下,如果独显渲染工作,nvidia-smi会显示至少两个进程,Xorg和deepin-kwin,你这个只显示了一个Xorg,有点像是使用了nvidia-prime的效果......
可以尝试加上 https://bbs.deepin.org/post/191741 里面说的 prime-run 参数试试......
Reply View the author
avatar
ighack
deepin
2020-06-15 20:30
#7
https://bbs.deepin.org/post/195935
xorg.conf里面有错误,两个显卡设备名称Identifier被你设置成一样的了,那么当你在定义Screen时选择调用Dev ...

Section "Device"
  Identifier "iGPU"
  Driver "modesetting"
EndSection

Section "Screen"
  Identifier "iGPU"
  Device "iGPU"
EndSection

Section "Device"
  Identifier "dGPU"
  Driver "nvidia"
EndSection
是直接把这个加到文件后观面。还是文件只有这些内容
Reply View the author
avatar
忘记、过去
deepin
2020-06-15 20:46
#8
https://bbs.deepin.org/post/195935
Section "Device"
  Identifier "iGPU"
  Driver "modesetting"

应该可以只有这些,只要定义显卡设备和显示器就行了。
Reply View the author
avatar
ighack
deepin
2020-06-15 21:34
#9
本帖最后由 ighack 于 2020-6-15 13:52 编辑

我安装了gamemode
ighack@ighack-PC:~/Downloads$ sudo apt install gamemode
[sudo] ighack 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
gamemode 已经是最新版 (1.2-6)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

但是找不到gamemoderun命令
我知道了这个版本太老了
https://github.com/FeralInteractive/gamemode
下源友编译安装

还有steam dota2 中添加export GAMEMODERUNEXEC=prime-run && gamemoderun %command%
启动不了游戏感觉像是闪退一样
Reply View the author
avatar
ighack
deepin
2020-06-16 16:34
#10
export GAMEMODERUNEXEC=prime-run && gamemoderun %command%
现在可以运行。但好像显卡还没有使用
是不是非要升级xorg还要改配制啊
Reply View the author