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

重启后生效

相关推荐
摇滚侠18 小时前
40分钟的Docker实战攻略,一期视频精通Docker
运维·docker·容器
G_H_S_3_18 小时前
【网络运维】OpenStack 块存储与对象存储:Cinder 与 Swift 篇
linux·运维·网络·openstack
2301_8000509918 小时前
OpenStack 管理
运维·openstack
一点晖光18 小时前
MongoDB特殊查询语句
linux·mongodb
阿干tkl18 小时前
误卸载 openssl-libs 的补救方法
linux·运维
PFinal社区_南丞19 小时前
服务器进程日志分析:从头皮发麻到AI解救
运维·后端
G_H_S_3_19 小时前
【网络运维】Docker网络:基础与实战
linux·运维·网络·docker
加藤不太惠19 小时前
docker简单了解使用
运维·docker·容器
叮咚侠19 小时前
Ubuntu 24.04.3 LTS系统中Elasticsearch 8.14.0+kibana 8.14.0集群部署搭建
大数据·ubuntu·elasticsearch·搜索引擎·集群·kibana
嵌入式学习和实践19 小时前
Linux/Windows 系统架构查看、安装包选择指南(嵌入式开发场景适配)
linux·windows·系统架构