我在使用双显示器时遇到一些问题。它可以在 Ubuntu 上运行,但无法在 Kali 上运行。我有一个 Intel 显卡(已连接 VGA)和另一个 VGA 到 NVIDIA GT730。起初nvidia不工作,所以只有连接到Intel的显示器才工作。不知何故,我设法安装了驱动程序。我之前在尝试安装 Nvidia 驱动程序时破坏了内核 3 次。现在连接到 NVIDIA 卡的显示器工作正常,但另一个屏幕仍然是黑色的,但我也可以在该屏幕上移动鼠标(但是,光标图标是十字符号)。我在“显示设置”上也看不到超过 1 个屏幕。这是我的 xorg.conf 文件(我确信 BusID 是正确的,我从 lspci 验证了它们)
# nvidia-xconfig: X configuration file generated by nvidia-xconfig# nvidia-xconfig: version 331.113 (buildmeister@swio-display-x64-rhel04-03) Mon Dec 1 21:15:34 PST 2014
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 331.20 (buildd@roseapple) Mon Feb 3 15:07:22 UTC 2014
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
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"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "LG"
ModelName "LG FULL HD"
HorizSync 30.0 - 94.0
VertRefresh 48.0 - 85.0
Option "DPMS"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "LG"
ModelName "LG FULL HD"
HorizSync 30.0 - 94.0
VertRefresh 48.0 - 85.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 730"
BusID "PCI:01:00:0"
EndSection
Section "Device"
Identifier "Device1"
Driver "intel"
VendorName "Integrated adapter"
BoardName "Intel"
BusID "PCI:00:02:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "VGA-0: nvidia-auto-select +1600+0, DVI-I-1: nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
答案1
呈现为 X 的鼠标指针表示 X 显示屏幕未运行任何窗口管理器。您甚至可能发现可以使用以下命令启动原始时钟(例如)或终端:
xclock -display :1
lxterm -display :1 # If no "lxterm" try "xterm"
为了将此屏幕纳入您的单个逻辑 X 显示中,您需要启用 Xinerama。您的配置中已列出该选项,但已禁用。将 0 更改为 1,下次图形重新启动时它应该全部亮起:
Option "Xinerama" "1"
理想情况下,您可以通过 Nvidianvidia-settings
程序对其进行管理,但如果您很难安装 Nvidia 图形驱动程序,则该驱动程序可能(尚未)安装。