发新话题
打印

用xrandr配置笔记本的双头显示(扩展桌面)

用xrandr配置笔记本的双头显示(扩展桌面)

作者:xiaomao101 来自:linuxsir
这种方法的好处是不用另外安装驱动,不用专门设置双头显示。

参考:
引用:
http://www.yyhh.org/blog/2007/10/use-xrandr-1-2-swtich-external-display-thinkpad-laptop
http://www.yyhh.org/blog/2007/11/dual-head-xrandr-1-2-revisited
http://www.intellinuxgraphics.org/dualhead.html
man xrandr
man xorg.conf  
1 先不用修改xorg.conf文件。在笔记本上插上第二个显示器。
启动第二个显示器
复制内容到剪贴板
代码:
$xrandr --output VGA  --auto
关闭第二个显示器
复制内容到剪贴板
代码:
$xrandr --output VGA --off2
需要先得到两个变量,一个是你两台显示器的总宽度X(假设你的两台显示器是并排左右放置)和屏幕分辨率的最大高度Y。比如我笔记本是1280x800,另一个显示器是1024x768,所以X=2304,Y=800。
编辑xorg.conf文件
复制内容到剪贴板
代码:
Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth      24
                Modes      "1280x800" "1280x720" "1024x768" "800x600" "640x480"
[color=Red]                Virtual     2304 800[/color]
        EndSubSection
EndSection加入红色部分。

3 添加启动项(sessions)

代码:
复制内容到剪贴板
代码:
xrandr --output VGA --left-of LVDS
让新添加的显示器VGA在本本LVDS的left显示。

4 重启X。

本文由hew 发布于Linuxsky 论坛,网址:http://bbs.linuxsky.org/thread-6535-1-1.html

相关主题
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

发新话题