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

重启后生效

相关推荐
峥无12 分钟前
Linux系统编程基石:静态库·动态库·ELF文件·进程地址空间全景图
linux·运维·服务器
用户23678298016821 分钟前
从 chmod 755 说起:Unix 文件权限到底是怎么算的?
linux
码云数智-大飞26 分钟前
本地部署大模型:隐私安全与多元优势一站式解读
运维·网络·人工智能
Strugglingler27 分钟前
【systemctl 学习总结】
linux·systemd·systemctl·journalctl·unit file
全球通史1 小时前
RDKS100 GPU量化环境配置
ubuntu
Harvy_没救了2 小时前
【网络部署】 Win11 + VMware CentOS8 + Nginx 文件共享服务 Wiki
运维·网络·nginx
春风有信2 小时前
【2026.05.01】Windows10安装Docker Desktop 4.71.0.0步骤及问题解决
运维·docker·容器
嵌入式×边缘AI:打怪升级日志2 小时前
100ASK-T113 Pro 开发板 Bootloader 完全开发指南
linux·ubuntu·bootloader
2401_873479403 小时前
断网时如何实时判断IP归属?嵌入本地离线库,保障风控不中断
运维·服务器·网络
守城小轩3 小时前
基于Chrome140的Yahoo自动化(关键词浏览)——需求分析&环境搭建(一)
运维·自动化·chrome devtools·浏览器自动化·指纹浏览器·浏览器开发