Ubuntu下更改主显示器

本文介绍如何通过命令行工具xrandr调整连接至PC的双显示器设置,实现将DVI接口显示器设为主显示器,并调整VGA接口显示器的位置。通过具体步骤演示如何使用xrandr命令实现显示器的配置。

我的PC有两个显示接口,一个VGA一个DVI接口,我接了两个显示器,默认情况下我发现电脑会将VGA接口看作主显示器,我想让DVI接口的显示器作为主显示器,设置方法如下:

1 显示显示器的详细信息:
xrandr


steven@steven:~$ xrandr
Screen 0: minimum 320 x 200, current 3120 x 1050, maximum 8192 x 8192
VGA-0 connected 1440x900+0+0 (normal left inverted right x axis y axis) 410mm x 256mm
1440x900 59.9*+
1280x1024 75.0 60.0
1280x960 60.0
1152x864 75.0
1152x720 60.0
1024x768 75.1 60.0
832x624 74.6
800x600 75.0 60.3
640x480 75.0 60.0
720x400 70.1
S-video disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 connected 1680x1050+1440+0 (normal left inverted right x axis y axis) 408mm x 255mm
1680x1050 60.0*+
1600x1200 60.0
1400x1050 60.0
1280x1024 75.0 60.0
1440x900 59.9
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
640x400 70.0



2 将DVI-1接口设置成主显示器: --auto使用最大分辨率
xrandr --output DVI-1 --auto --primary

3 将VGA-0接口输出到主显示器的左边:
xrandr --output VGA-0 --left-of DVI-1 --auto

参考:
http://dpinglee.blog.163.com/blog/static/1440977532010488594461/
http://hankgong.javaeye.com/blog/667022

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值