如何启用第二屏幕 (HDMI)

如何启用第二屏幕 (HDMI)

我是 Linux 和这个论坛的新手。我希望你能帮助我解决另一个 Linux 谜题...

我已经安装了 ubuntu 11.10,选择了附加驱动程序/激活了第二个驱动程序(以使用 Unity)。我的 GPU 是 nvidia GT330M(笔记本电脑)。

在 Windows 中,我经常通过 HDMI 连接 PC,并通过 LCD 开关将主显示器连接到电视 (SONY Z5500)。完全没有问题。

在 Linux 中 - 嗯...这是另一个硬件噩梦。以下是我所做的:

1) 连接 HDMI 电缆电视<>PC 2) 打开电视 3) 以 sudo nvidia-settings 身份运行 4) 检测显示器 - 找到电视,取消标记并放入电视设置 X 单独屏幕 5) 应用并保存到 xconf 文件 6) 重启电脑

已重新启动。

不幸的是,什么都没有改变——电视没有检测到任何 HDMI 设备(源),Nvidia 设置显示电视在那里,但是当我通过系统设置运行显示管理器时——只显示 LCD 显示屏。

如何将显示内容从液晶显示器改为电视显示器?

这是我的 xconf 文件的输出

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 280.13 (buildd@allspice) Thu Aug 11 20:54:45 UTC 2011

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "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 "Monitor1"
VendorName "Unknown"
ModelName "SONY AVAMP"
HorizSync 14.0 - 70.0
VertRefresh 48.0 - 62.0
Option "DPMS"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Seiko/Epson"
HorizSync 30.0 - 75.0
VertRefresh 60.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 330M"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 330M"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

  • 更新:我刚刚设法做了一些事情 - 我已重置所有设置,将 Seiko 和 Sony 放入单独的 X 窗口,保存,重新启动,然后我再次检查电视中的来源。

当然没有变化所以我强制显示 HDMI 1(电缆已连接)并切换到它。

现在电视屏幕变白了,当我点击它时(鼠标指针看起来像黑色的 X),它就变黑了。没有选项,没有任务栏,除了黑色背景和 X 指针外什么都没有)

有趣的是,当我按下 ctrl+alt+1(切换到第一个终端)时,输出进入了电视屏幕!我可以看到登录信息吗?

怎么回事?有什么建议吗?

答案1

正如您所指出的“为两个显示器设置单独的 X Window,然后关闭 PC 显示器并将主显示器设置为电视 - 重启后即可正常工作!”

相关内容