ubuntu 10.04 dual monitor with xrandr

来源:互联网 发布:怎样做淘宝推广赚佣金 编辑:程序博客网 时间:2024/06/09 00:28

1. xrandr 查看设备

Screen 0: minimum 320 x 200, current 2960 x 1050, maximum 4096 x 4096
VGA1 connected 1680x1050+1280+0 (normal left inverted right x axis y axis) 433mm x 271mm
   1680x1050      59.9*+
   1280x1024      75.0     60.0  
   1280x960       60.0  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 304mm x 190mm
   1280x800       60.0*+
   1024x768       85.0     75.0     70.1     60.0  
   832x624        74.6  
   800x600        85.1     72.2     75.0     60.3     56.2  
   640x480        85.0     72.8     75.0     59.9  
   720x400        85.0  
   640x400        85.1  
   640x350        85.1  
TV1 disconnected (normal left inverted right x axis y axis)

2. sudo gedit /etc/gdm/Init/Default 修改配置文件

3. 修改内容如下

!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
#  -George

PATH="/usr/bin:$PATH"
OLD_IFS=$IFS

################################################################################
# Added by Xu - 2011-11-26
xrandr --output VGA1  --mode 1680x1050 --rate 59.9
xrandr --output LVDS1 --mode 1280x800  --rate 60.0
xrandr --output VGA1  --right-of LVDS1
# xrandr --output VGA1  --left-of  LVDS1
xrandr --output VGA1  --primary

################################################################################

4. intel集成显卡


原创粉丝点击