
我對 Linux 還很陌生,我試圖在我的 Dell XPS 9570 中使用 prime-select 程式來運行我的整合 Intel 和專用 Nvidia (1050 Ti) GPU,但我遇到了麻煩。
如果我不碰用以下指令產生的 xorg.conf nvidia-xconfig
:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 430.50
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "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"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
我的英特爾顯卡工作得很好,但我的英偉達顯卡卻出現黑屏。
如果我使用這個 xorg.conf (我在 nvidia 論壇上獲取它):
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0@0:2:0"
Option "AccelMethod" "None"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
BusID "PCI:1@0:0:0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "ConstrainCursor" "off"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration" "on"
Option "IgnoreDisplayDevices" "CRT"
EndSection
nvidia GPU 可以運作,但 intel GPU 啟動時會出現黑畫面。
有什麼想法可以解決這個問題嗎?我多次清除並重新安裝 nvidia(如通常的管道),但錯誤仍然存在。
謝謝。
編輯:
有了這個 xorg.conf:
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
enter code here
我可以使用兩個 GPU 啟動而不會出現黑屏,但 nvidia 的 GPU 看起來已經死了。我的意思是,nvidia-smi
不顯示任何類型的已使用內存,也不顯示正在運行的任務。有任何想法嗎?