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

重启后生效

相关推荐
智能运维指南1 小时前
2025企业DevOps平台选型指南:信通院认证优选,嘉为蓝鲸全链路赋能企业研发效能
运维·devops
wanhengidc1 小时前
服务器都有哪些优缺点?
运维·服务器·科技·智能手机·云计算
tang_vincent1 小时前
Linux mmap原理与源码分析
linux
HIT_Weston1 小时前
51、【Ubuntu】【Gitlab】拉出内网 Web 服务:http.server 单/多线程分析(三)
ubuntu·http·gitlab
DeeplyMind1 小时前
TTM ttm_tt技术分析系列1:导读
linux·驱动开发·gpu·amd·gart
视觉装置在笑7131 小时前
awk 基础知识和进阶用法
linux·运维·服务器·正则表达式
无线图像传输研究探索1 小时前
国标28181平台与TCP对讲:从“不支持”到“实现路径”的完整解析(5G单兵图传、布控球)
运维·服务器·网络·5g·无人机·单兵图传·无人机图传
慎独4132 小时前
重塑价值分配:从土地、机器到数据的生产关系革命
大数据·运维·人工智能
Starry_hello world2 小时前
Linux 动静态库
linux