CentOS7 没有 1920x1080 分辨率,如何自定义分辨率?
本文将介绍怎样在 CentOS7 中自定义 1920x1080 分辨率,并且将该分辨率应用到 CentOS7。
(1)使用 cvt 命令新建为 1920x1080 的分辨率,刷新率为 60HZ,例如:
hxstrive@localhost$ cvt 1920 1080 60
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync注意:Modeline 开头行后面的内容后续会用到。
(2)使用 xrandr --newmode 命令来新建 Modeline,例如:
hxstrive@localhost$ xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync(3)使用 xrandr 命令查看当前的显示屏和分辨率,例如:
hxstrive@localhost$ xrandr
Screen 0: minimum 1 x 1, current 1920 x 1200, maximum 8192 x 8192
Virtual1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1360x768 60.00 + 60.02
2560x1600 59.99
1920x1440 60.00
1856x1392 60.00
1792x1344 60.00
1920x1200 59.88*
1600x1200 60.00
1680x1050 59.95
1400x1050 59.98
1280x1024 60.02
1440x900 59.89
1280x960 60.00
1280x800 59.81
1152x864 75.00
1280x768 59.87
1024x768 60.00
800x600 60.32
640x480 59.94
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)
1920x1080_60.00 (0x407) 173.000MHz -HSync +VSync
h: width 1920 start 2048 end 2248 total 2576 skew 0 clock 67.16KHz
v: height 1080 start 1083 end 1088 total 1120 clock 59.96Hz注意:上面输出结果中的 Virtual1 表示显示器名称。
(4)使用 xrandr --addmode 命令来将 1920x1080 分辨率添加到显示屏分辨率列表中,例如:
hxstrive@localhost$ xrandr --addmode Virtual1 1920x1080_60.00(5)为了系统重启后分辨率不会丢失,我们可以把下面命令添加到配置文件 /etc/profile 中,这样重启后依然能生效。在文件末尾添加如下命令:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1"1920x1080_60.00"
最灵繁的人也看不见自己的背脊。——非洲
说说我的看法 -
还可使用 Gitee / GitHub 账号一键登录,与大家分享你的观点
立即登录
全部评论()
没有评论
- CentOS Stream9 Mini 版本 Docker 启动失败,错误 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=127)
- Centos Stream9 通过 NetworkManager(nmcli 工具)设置静态IP
- 作为 Linux 系统管理员你需要执行的日常任务
- 什么是 Samba?Linux 与 Windows 资源共享的桥梁
- CentOS Stream 简单介绍:是RHEL下个次要版本的预览版,也是向RHEL本身贡献代码的途径
- 如何在 Linux 中使用 grep 命令检索文本
- Linux 中处理 JSON 数据的命令 jq
- Ubuntu 22.04 LTS 版本将 frpc 作为 systemctl 服务,开启自动启动
- Ubuntu22 中使用命令行压缩图片
- 轻松掌握 Linux 文件与目录操作