我的计算机具有集成的Intel图形和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驱动程序版本:430.50 CUDA版本:10.1 || ------------------------------- + ----------------- ----- + ---------------------- +| GPU名称持久性-M |总线编号Disp.A |挥发性不佳。 ECC ||风扇温度性能:用法/上限|内存使用| GPU实用计算M。| ============================== + ================= ===== + ==================== || 0 GeForce RTX 207 ...关闭| 00000000:01:00.0关闭| N / A || 25%34C P0 31W / 215W | 329MiB / 7982MiB | 1%默认|+ ------------------------------- + ----------------- ----- + ---------------------- +
+-----------------------------------------------------------------------------+
| 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进程。我可以杀死前两个,但是如果杀死最后两个,我的侏儒会话也将被杀死。而且我记得在上一次安装时,我只有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错误!