我用的是笔记本外加一台17寸显示器。
1、xrandr--outputVGA--auto开启外接显示器。(如果不成功,就reboot下)
2、xrandr--outputVGA--auto--right-ofLVDS--mode1024x768把外接显示器扩展到本本显示器的右侧。
注:如果2出错,有可能是xorg没有设定相关屏幕分辨率,需手动调整,我的是这样的,红字部分。
Section"Screen"
Identifier"DefaultScreen"
Device"IntelCorporationMobile915GM/GMS/910GMLExpressGraphicsController"
Monitor"default"
Defaultdepth24
SubSection"Display"
Depth24
Virtual2048768
Modes"1024x768@60"
EndSubSection
EndSection
还有就是两个屏幕使用不同分辨率还没试。 下载本文示例代码
阅读(280) | 评论(0) | 转发(0) |