ubuntu

Ubuntu如何调整屏幕分辨率

小樊
50
2025-06-26 20:41:39
栏目: 智能运维

在Ubuntu系统中调整屏幕分辨率可以通过图形界面或命令行两种方式实现。以下是详细步骤:

通过图形界面设置显示器分辨率

  1. 打开设置
  1. 进入显示设置
  1. 调整分辨率

通过命令行设置显示器分辨率

  1. 打开终端
  1. 查看当前分辨率
xrandr
  1. 设置新的分辨率
xrandr --output <显示器名称> --mode 1920x1080
  1. 创建自定义分辨率(如果需要):
cvt 1920 1080 60
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode <显示器名称> "1920x1080_60.00"
xrandr --output <显示器名称> --mode "1920x1080_60.00"
  1. 使设置永久生效
echo "xrandr --output <显示器名称> --mode 1920x1080" >> ~/.bashrc
source ~/.bashrc

或者,创建启动脚本 set_resolution.sh

#!/bin/bash
xrandr --output <显示器名称> --mode 1920x1080
chmod +x set_resolution.sh

将脚本添加到启动程序中(具体步骤取决于你使用的桌面环境)。

通过以上方法,您可以轻松地在Ubuntu系统中设置屏幕分辨率,以满足不同的显示需求。

0
看了该问题的人还看了