linux使用命令行配置显示器的输出分辨率

说明:有时候图形管理中最高的分辨率被设置得很小,看着屏幕难受

1.显示自己机器支持的分辨率。以我自己的机器来说,最大支持8k,但设置的时候往往不能这么大,因为还受到显示器的分辨率限制。绿色的VGA-0就是你的系统显示的名字,留待后用

[root@localhost grub]# xrandr 
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA-0 connected 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  
DVI-0 disconnected (normal left inverted right x axis y axis)
  1600x900 (0x4dd) 118.250MHz
        h: width  1600 start 1696 end 1856 total 2112 skew    0 clock  55.99KHz
        v: height  900 start  903 end  908 total  934           clock  59.95Hz

2. 查询你的显示器支持的最大分辨率,可以将显示效果配置成二者最小的一个。以我的显示器  1920x1080为例,绿色一行留待后用

[root@localhost grub]# cvt 1920 1080
# 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

3.创建一种新显示模式

[root@localhost grub]# xrandr --newmode "1920x1080" 173.00  1920 2048 2248 2576  1080 1083 1088 1120  

4.向系统添加新模式,VGA-0是第一步绿色标注的字样,具体根据情况修改

[root@localhost grub]# xrandr --addmode  VGA-0 "1920x1080"

5.修改当前显示器的模式,如果这步失败,在系统图形界面中找到设置显示的地方,手动选择

[root@localhost grub]# xrandr --output  VGA-0 "1920x1080"



猜你喜欢

转载自blog.csdn.net/banana1006034246/article/details/78137205