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

重启后生效

相关推荐
Predestination王瀞潞14 小时前
4.3.1 存储->微软文件系统标准(微软,自有技术标准):exFAT(Extended File Allocation Table)扩展文件分配表系统
linux·运维·microsoft·exfat·ex4
你有按下913的勇气吗14 小时前
【Agent,RAG,Transform】
linux·运维·服务器
ken223214 小时前
linux OS : apt update 使用代理与环境变量
linux
last demo15 小时前
docker存储
运维·docker·容器
小义_15 小时前
随笔 1(Linux)
linux·运维·服务器·网络·云原生·红帽
Larry_Yanan15 小时前
Qt网络开发之基于 QWebEngine 实现简易内嵌浏览器
linux·开发语言·网络·c++·笔记·qt·学习
AI+程序员在路上15 小时前
CAN 总线与 Linux SocketCAN C 语言测试程序
linux·c语言·网络
Predestination王瀞潞16 小时前
4.3.3 存储->微软文件系统标准(微软,自有技术标准):VFAT(Virtual File Allocation Table)虚拟文件分配表系统
linux·microsoft·vfat
HalvmånEver16 小时前
Linux:socket套接字编程的基础概念
linux·运维·服务器
二进制person16 小时前
JavaEE初阶 --网络初识
运维·服务器·网络