Ubuntu给外接设备修改分辨率

给外接设备修改分辨率

参考链接 How to Set A Custom Screen Resolution in Ubuntu Desktop

目前正常 dp-1上面有2560x1440 2k的分辨率但是有时候显示不出来,导致不能显示最优的效果

DP-1 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95 +  74.97* 
   1920x1080     60.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1280x1440     59.91  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    60.00    59.94  
   720x400       70.08  

cvt 2560 1440 来看分辨率的最优设置

编辑 ~/.profile的文件来实现

   sudo xrandr --newmode "2560x1440_74.97"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
   sudo xrandr --newmode "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync

   sudo xrandr --addmode DP-1 "2560x1440_74.97"

1597749619474