请大家帮帮忙!我已经为此工作了好几天了(啊!)
- Asus P8H77-I(DVI、HDMI、VGA)和 i7-3770(集成 HD4000 显卡)。
- DVI 连接到 1920x1080 显示器
- HDMI 连接至 1280x720 松下等离子电视
- 全新安装 12.04;没有 xorg.conf
如果我拔下显示器并重置 X,电视可以作为主显示器正常工作。一旦我插入显示器,电视就会变黑(黑屏),显示器会打开。如果我转到“系统设置 > 显示”,我会看到两个屏幕都被识别、激活并设置为正确的分辨率。
我怎样才能让两个屏幕同时显示?我试图获得双视图(而不是镜像视图,但目前只要它们都能显示,我就会很满意)。任何建议都将不胜感激。谢谢。
答案1
没关系。我能够解决这个问题:我的电视分辨率无法正确检测,并且“系统设置 > 显示”正在将奇怪的配置写入我的 monitors.xml(或者可能没有正确读取,我不知道)。
解决方案:在这里找到了适合我的电视的模式行:http://www.mythtv.org/wiki/Modeline_Database. 将其添加到我的 xorg.conf 并手动编辑我的 monitors.xml(而不是使用“系统设置 > 显示”界面)。
/etc/X11/xorg.conf:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "built-ins"
EndSection
Section "Module"
Load "record"
Load "extmod"
Load "dri2"
Load "dri"
Load "dbe"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "VGA1"
VendorName "Unplugged"
ModelName "Nothing Plugged In"
HorizSync 30.0 - 83.0
VertRefresh 50.0 - 76.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "HDMI1"
VendorName "Dell"
ModelName "DELL S2209W"
HorizSync 30.0 - 83.0
VertRefresh 50.0 - 76.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "HDMI2"
VendorName "Panasonic"
ModelName "PANASONIC-TV"
HorizSync 15.73 - 67.50
VertRefresh 59.94 - 60.0
Modeline "1208x679" 74.25 1208 1353 1393 1650 679 707 712 750 +hsync +vsync
EndSection
Section "Device"
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "Card1"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "Card2"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "VGA1"
DefaultDepth 24
SubSection "Display"
Modes "1920x1080" "1280x720" "1208x679" "720x480"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "HDMI1"
DefaultDepth 24
SubSection "Display"
Modes "1920x1080" "1280x720" "1208x679" "720x480"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor "HDMI2"
DefaultDepth 24
SubSection "Display"
Modes "1920x1080" "1280x720" "1208x679" "720x480"
Depth 24
EndSubSection
EndSection
〜/.config/monitor.xml:
<monitors version="1">
<configuration>
<clone>no</clone>
<output name="VGA1">
</output>
<output name="HDMI1">
<vendor>DEL</vendor>
<product>0xa043</product>
<serial>0x33413055</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>yes</primary>
</output>
<output name="HDMI2">
<vendor>MEI</vendor>
<product>0xa060</product>
<serial>0x17009171</serial>
<width>1208</width>
<height>679</height>
<rate>60</rate>
<x>1920</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>no</primary>
</output>
<output name="DP1">
</output>
<output name="DP2">
</output>
</configuration>
</monitors>
然后从终端:
xrandr --output HDMI2 --mode "1208x679"