steam游戏根本就没有调用独显nvidia
Tofloor
poster avatar
ighack
deepin
2020-06-21 20:04
Author
本帖最后由 ighack 于 2020-6-22 15:50 编辑

我是手动安装的nvidia的官方驱动
  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
玩游戏时nvidia-smi中根就没看到xorg以外的其他进程,卡死。我用核显都可以流畅的玩游戏(深度学习可以使用GPU)
不管加没加启动项都是一样的根果
prime-run && gamemoderun %command%

xorg.conf
  1. # nvidia-xconfig: X configuration file generated by nvidia-xconfig
  2. # nvidia-xconfig:  version 440.82

  3. Section "ServerLayout"
  4.     Identifier     "Layout0"
  5.     Screen      0  "Screen0"
  6.     InputDevice    "Keyboard0" "CoreKeyboard"
  7.     InputDevice    "Mouse0" "CorePointer"
  8. EndSection

  9. Section "Files"
  10. EndSection

  11. Section "InputDevice"
  12.     # generated from default
  13.     Identifier     "Mouse0"
  14.     Driver         "mouse"
  15.     Option         "Protocol" "auto"
  16.     Option         "Device" "/dev/psaux"
  17.     Option         "Emulate3Buttons" "no"
  18.     Option         "ZAxisMapping" "4 5"
  19. EndSection

  20. Section "InputDevice"
  21.     # generated from default
  22.     Identifier     "Keyboard0"
  23.     Driver         "kbd"
  24. EndSection

  25. Section "Monitor"
  26.     Identifier     "Monitor0"
  27.     VendorName     "Unknown"
  28.     ModelName      "Unknown"
  29.     Option         "DPMS"
  30. EndSection

  31. Section "Device"
  32.     Identifier     "nvidia"
  33.     Driver         "nvidia"
  34.     VendorName     "NVIDIA Corporation"
  35.     BusID          "PCI:1:0:0"
  36.     option         "AllowEmptyInitialConfiguration"
  37. EndSection

  38. Section "Device"
  39.     Identifier     "intel"
  40.     Driver         "intel"
  41.     VendorName     "intel"
  42.     BusID          "PCI:0:2:0"
  43.     Driver         "modesetting"
  44. EndSection

  45. Section "Screen"
  46.     Identifier     "Screen0"
  47.     Device         "nvidia"
  48.     Monitor        "Monitor0"
  49.     DefaultDepth    24
  50.     SubSection     "Display"
  51.         Depth       24
  52.     EndSubSection
  53. EndSection

Copy the Code

现在好像升级不了xorg-serverhttps://bbs.deepin.org/post/191741#
用这个里的方法报错


Reply Favorite View the author
All Replies

No replies yet