日常填坑系列-ubuntu 双屏分辨率设置问题

本人是ubuntu18.10,双屏幕,分别为22寸和19寸。本来最佳的设置应该是1920x1080_60hz(22寸),1440x900_60hz(19寸)。但是事实总是不尽人意。每一次开机后分辨率设置总会变成1920x1080_60hz(22寸),800x600_60hz(19寸),并且改不回来,搞得我很难受。试过xrandr的一些命令,例如创建新的模式,应用新的模式什么的,但是都没有用。

一次偶然的机会看到autorandr,心里突然觉得有戏。所以查了以下。查到这个东西

Auto-detect connected display hardware and load appropiate X11 setup using xrandr

OK!这个东西可以保存一些屏幕的配置。那么开干!

第一步,安装软件

sudo apt install autorandr

第二步,将屏幕调整到你想要的最佳状态。

这一步,看你个人的方法。我的方法是

在单屏幕模式下先让19寸的屏幕作为主屏幕,重启后系统会让19寸的屏幕达到最高的分辨率。

接着再接入另外一个22寸的屏幕。切换到多屏模式,让22寸的屏幕作为主屏幕。

这一步看你个人喜好,反正目的就是让屏幕的设置达到你想要的状态。

 

第三步,保存屏幕配置

这一步是要生成第二步弄好的屏幕设置文件。

autorandr -s best

best是配置文件的名字。

 

第四步,将生成的配置文件设置为默认的配置文件

autorandr -d best

 

这是最基本的操作方式。详细的操作方式可以看autorandr的说明。使用命令可查

autorandr -h
Usage: autorandr [options]

-h, --help              get this small help
-c, --change            automatically load the first detected profile
-d, --default <profile> make profile <profile> the default profile
-l, --load <profile>    load profile <profile>
-s, --save <profile>    save your current setup to profile <profile>
-r, --remove <profile>  remove profile <profile>
--batch                 run autorandr for all users with active X11 sessions
--current               only list current (active) configuration(s)
--config                dump your current xrandr setup
--debug                 enable verbose output
--detected              only list detected (available) configuration(s)
--dry-run               don't change anything, only print the xrandr commands
--fingerprint           fingerprint your current hardware setup
--force                 force (re)loading of a profile
--skip-options <option> comma separated list of xrandr arguments (e.g. "gamma")
                        to skip both in detecting changes and applying a profile
--version               show version information and exit

 If no suitable profile can be identified, the current configuration is kept.
 To change this behaviour and switch to a fallback configuration, specify
 --default <profile>.

 autorandr supports a set of per-profile and global hooks. See the documentation
 for details.

 The following virtual configurations are available:
  off             Disable all outputs
  common          Clone all connected outputs at the largest common resolution
  clone-largest   Clone all connected outputs with the largest resolution (sca-
                  led down if necessary)
  horizontal      Stack all connected outputs horizontally at their largest re-
                  solution
  vertical        Stack all connected outputs vertically at their largest reso-
                  lution

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值