Ubuntu 18.04设置1920*1080

Ubuntu升级后,发现分辨率没有1920*1080,在网上寻找了一个文章解决办法如下。

方案一(临时性,重启会失效):

1、打开终端。输入:cvt 1920 1080

出现有modeline 的提示。

2、使用 xrandr 创建新的 mode,--newmode 后面跟刚刚 cvt 产生的 modeline 后面的信息,如果去掉“_60.00”就可以在显示器首选项中看到。

$ sudo xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

3、添加新的 mode,--addmode 后面第一个参数是 命令xrandr 显示的列表中,目标输出设备的名称,

$sudo xrandr --addmode VGA-1 "1920x1080_60.00"

4、 将分辨率应用到指定的输出设备

$ sudo xrandr --output  VGA-1 --mode "1920x1080_60.00"

方案二(永久性,重启也不失效)

添加 /etc/X11/xorg.conf 文件,将此模式保存为默认分辨率。

1、$ sudo vim /etc/X11/xorg.conf

(如果没有安装vim,可以使用“sudo gedit /etc/X11/xorg.conf”)

粘贴以下内容:

Section "Monitor"

Identifier "Configured Monitor"

Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Option "PreferredMode" "1920x1080_60.00"

EndSection

Section "Screen"

Identifier "Default Screen"

Monitor "Configured Monitor"

Device "Configured Video Device"

EndSection

Section "Device"

Identifier "Configured Video Device"

EndSection

2、保存。重启后就变成1920x1080了。

ps:我的系统是18.04的,默认没有xorg.conf文件。但是没关系,将上述内容保存为xorg.conf文件就行了。

 转载链接:https://www.jiansuan.net/article_show_357.html

转载于:https://www.cnblogs.com/dlvguo/p/10486640.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值