如何确定我现在是用的独显在玩游戏啊?
Tofloor
poster avatar
ighack
deepin
2020-06-21 00:37
Author
先现我玩dota2卡的要命。现在更新了xorg.conf

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

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

Section "Device"
  Identifier "dGPU"
  Driver "nvidia"
EndSection

现在dota2还是比较流畅的

  1. ighack@ighack-PC:~$ nvidia-smi
  2. Sat Jun 20 16:12: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   51C    P0     9W /  N/A |      0MiB /  5934MiB |      0%      Default |
  11. +-------------------------------+----------------------+----------------------+
  12.                                                                               
  13. +-----------------------------------------------------------------------------+
  14. | Processes:                                                       GPU Memory |
  15. |  GPU       PID   Type   Process name                             Usage      |
  16. |=============================================================================|
  17. |  No running processes found                                                 |
  18. +-----------------------------------------------------------------------------+
Copy the Code

但玩游戏的时候还是显示上面的信息
以前xorg一直都在显卡进程里。现在什么都没有了

不过深度学习到是可以正常的使用GPU
Reply Favorite View the author
All Replies
avatar
忘记、过去
deepin
2020-06-21 03:44
#1
你这样写xorg.conf就是用核显跑xserver,和n卡没啥关系。如果你想像nvidia-prime一样让xorg显示在显卡进程里,可以在开头添加
  1. Section "ServerLayout"
  2.       Identifier "layout"
  3.       Option "AllowNVIDIAGPUScreens"
  4. EndSection
Copy the Code
但是因为deepin仓库的xserver-xorg版本比较低,用不了nvidia-prime,即使加了也没啥用。
具体可以看看这个帖子:https://bbs.deepin.org/post/191810
Reply View the author
avatar
ighack
deepin
2020-06-21 06:14
#2
https://bbs.deepin.org/post/196176
你这样写xorg.conf就是用核显跑xserver,和n卡没啥关系。如果你想像nvidia-prime一样让xorg显示在显卡进程 ...

现在好像也升级不了xserver-xorg
Reply View the author