gpt4 book ai didi

linux - Xorg:集成视频作为主显示器和 nvidia headless 显示器

转载 作者:太空宇宙 更新时间:2023-11-04 05:07:38 24 4
gpt4 key购买 nike

我的电脑配备集成英特尔显卡和 RTX 2070 Super GPU。在我重新安装 Fedora 之前,我能够使用 Intel 卡作为主视频显示器,而 RTX 仅用于机器学习。

这次,像以前一样安装所有驱动程序并设置 xorg.conf 后,虽然 HDMI 电缆连接到 Intel 输出,但看起来 xorg 正在 Nvidia GPU 上运行。

这是lspci的输出:

[edu@localhost ~]$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop)
01:00.0 VGA compatible controller: NVIDIA Corporation TU104 [GeForce RTX 2070 SUPER] (rev a1)

这是nvidia-smi的输出:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.50 Driver Version: 430.50 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 207... Off | 00000000:01:00.0 Off | N/A |
| 25% 34C P0 31W / 215W | 329MiB / 7982MiB | 1% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1535 G /usr/libexec/Xorg 27MiB |
| 0 1705 G /usr/bin/gnome-shell 51MiB |
| 0 2037 G /usr/libexec/Xorg 68MiB |
| 0 2173 G /usr/bin/gnome-shell 179MiB |
+-----------------------------------------------------------------------------+

看起来很奇怪,我复制了 Xorg 和 gnome-shell 进程。我可以杀死前两个,但如果我杀死最后两个,我的 gnome session 就会被终止。我记得上次安装时我只运行了 2 个进程。

我仍然可以在 GPU 上运行 TensorFlow,这一切都很好,但当 GPU 负载不足时,我的桌面就会滞后。

这是我的xorg.conf:

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "intel"
Screen 1 "nvidia"
EndSection

Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:2:0:0"
Option "AccelMethod" "SNA"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "Coolbits" "4"
Option "AllowEmptyInitialConfiguration" "on"
Option "IgnoreDisplayDevice" "CRT"
EndSection

我不太明白发生了什么或如何调查,但我非常确定 xserver (或者我应该称之为 xorg?) 不是在我的 Intel 上运行,而是在我的 Nvidia 上运行,我需要以另一种方式运行。

预先感谢您的帮助!

最佳答案

解决了!英特尔设备的总线 ID 错误!

关于linux - Xorg:集成视频作为主显示器和 nvidia headless 显示器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59222127/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com