linux 调分辨率

显示模式

$ xrand

Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
VGA-1 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 410mm x 257mm
   1440x900      59.90*+  74.98  
   1280x1024     75.02    60.02  
   1024x768      75.03    70.07    60.00  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    59.94  
   720x400       70.08  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)

设置模式

$ cvt 1440 1200

# 1440x1200 59.95 Hz (CVT) hsync: 74.64 kHz; pclk: 144.50 MHz
Modeline "1440x1200_60.00"  144.50  1440 1536 1688 1936  1200 1203 1213 1245 -hsync +vsync

设置新械式`

$ xrandr --newmode "1440x1200_60.00"  144.50  1440 1536 1688 1936  1200 1203 1213 1245 -hsync +vsync

再次查看模式

$ xrandr

Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
VGA-1 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 410mm x 257mm
   1440x900      59.90*+  74.98  
   1280x1024     75.02    60.02  
   1024x768      75.03    70.07    60.00  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    59.94  
   720x400       70.08  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
  1440x1200_60.00 (0x167) 144.500MHz -HSync
        h: width  1440 start 1536 end 1688 total 1936 skew    0 clock  74.64KHz
        v: height 1200 start 1203 end 1213 total 1245           clock  59.95Hz

添加模式

xrandr --addmode VGA-1 1440x1200_60.00

启用模式

xrandr --output  VGA-1 --mode 1440x1200_60.00

版权声明:本文为lenovo8088原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。