ubuntu设置分辨率

一.临时调整分辨率

1.打开终端,执行以下命令查看当前支持的分辨率:

xrandr

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384

HDMI-1 disconnected (normal left inverted right x axis y axis)

DP-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm

1024x768 60.00*

800x600 60.32 56.25

848x480 60.00

640x480 59.94

1920x1080_60.00 59.96

HDMI-2 disconnected (normal left inverted right x axis y axis)

DP-2 disconnected (normal left inverted right x axis y axis)

HDMI-3 disconnected (normal left inverted right x axis y axis)

DP-3 disconnected (normal left inverted right x axis y axis)

2.若需要 1920*1080分辨率,执行:

cvt 1920 1080 60

3.复制输出的Modeline字符串 "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync,然后运行:

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

xrandr --addmode DP-1 "1920x1080_60.00"

xrandr --output DP-1 --mode "1920x1080_60.00"

二.永久设置分辨率

将以下命令添加到/etc/profile 文件末尾 :

echo 'xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync' >> /etc/profile

echo 'xrandr --addmode Virtual1 "1920x1080_60.00"' >> /etc/profile

重启后生效

相关推荐
wdfk_prog14 小时前
[Linux]学习笔记系列 -- [drivers][mmc]mmc_sd
linux·笔记·学习
这个软件需要设计一下14 小时前
ninedata安装磁盘不足问题解决
运维·bug
qinyia14 小时前
**使用AI助手在智慧运维中快速定位并修复服务异常:以Nginx配置错误导致502错误为例**
linux·运维·服务器·数据库·mysql·nginx·自动化
❀͜͡傀儡师14 小时前
CentOS 7部署FTP服务
linux·运维·centos·ftp
ONLYOFFICE14 小时前
ONLYOFFICE 自动化工具:宏和 AI 函数如何选择?
运维·自动化·编辑器·onlyoffice
济61714 小时前
ARM Linux 驱动开发篇----字符设备驱动开发(2)--字符设备驱动开发步骤---- Ubuntu20.04
linux·运维·服务器
Guheyunyi14 小时前
什么是安全监测预警系统?应用场景有哪些?
大数据·运维·人工智能·安全·音视频
hopsky14 小时前
Docker Desktop 报 500
运维·docker·容器
仗剑天涯 回首枉然14 小时前
Linux 和 windows 共享文件
linux·运维·windows
zzzsde15 小时前
【Linux】进程(3):进程状态
linux·运维·服务器