xrandr 未检测到 HDMI 端口上的显示器

xrandr 未检测到 HDMI 端口上的显示器

我在我的笔记本电脑上安装了 Arch,但我不认为这个问题是 Arch 特有的。目前唯一的问题是未检测到连接到 hdmi 端口的显示器。例如,从 gnome 控制中心运行显示小程序,然后“检测”仅检测笔记本电脑显示屏,即使有第二个显示器通过 HDMI 端口连接到笔记本电脑。我怀疑问题是 xrandr 没有检测到连接到 HDMI 端口的显示器。我怎样才能解决这个问题?

vga 控制器的 lspci -v 输出:

01:00.0 VGA compatible controller: nVidia Corporation Device 0df5 (rev a1) (prog-if 00 [VGA controller])
    Subsystem: Dell Device 0446
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at f0000000 (32-bit, non-prefetchable) [size=16M]
    Memory at c0000000 (64-bit, prefetchable) [size=256M]
    Memory at d0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at 3000 [size=128]
    Expansion ROM at f1000000 [disabled] [size=512K]
    Capabilities: <access denied>
    Kernel driver in use: nouveau
    Kernel modules: nvidiafb, nouveau00:02.0 VGA compatible controller:

Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
    Subsystem: Dell Device 0446
    Flags: bus master, fast devsel, latency 0, IRQ 49
    Memory at f1400000 (64-bit, non-prefetchable) [size=4M]
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 4000 [size=64]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915

xrandr 的输出:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080      60.0*+   40.0 
   1400x1050      60.0 
   1280x1024      60.0 
   1280x960       60.0 
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)

答案1

我想到了;我生成的xorg.confnvidia 模块路径错误并且没有指定busid。为了找出我使用的busid:

$ lspci -v

01:00.0 VGA compatible controller: nVidia Corporation GT200 [GeForce GTX 260] (rev a1)

然后我进行了编辑xorg.conf,使其具有与此类似的部分:

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:01:00:0"
    Option "NoLogo" "true"
    Option "UseEDID" "true"
    Option "ConnectedMonitor" "DFP"
EndSection

Section "Files"
    ModulePath      "/usr/lib/<path to nvidia driver>"
    ModulePath      "/usr/lib/xorg/modules"
EndSection

相关内容