How to add new external resolution to linux(ubuntu)

1. Query the size of the external resolution you want. Generally, the label of the fuselage of the external display indicates the best resolution. It can also be obtained by querying the equipment information on the shopping website.


2. Query the current display output information

The terminal input code

xrandr
The terminal input code


terminal Output Information - -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Screen 0: minimum 320 x 200, current 3600 x 1080, maximum 8192 x 8192
LVDS-1 connected 1680x1050+1920+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1680x1050     60.56*+  59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   960x600       60.00  
   960x540       59.99  
   800x600       60.00    60.32    56.25  Screen 0: minimum 320 x 200, current 3600 x 1080, maximum 8192 x 8192
LVDS-1 connected 1680x1050+1920+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1680x1050     60.56*+  59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   960x600       60.00  
   960x540       59.99  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   800x512       60.17  
   700x525       59.98  
   640x512       60.02  
   720x450       59.89  
   640x480       60.00    59.94  
   680x384       59.80    59.96  
   576x432       60.06  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1 connected primary 1920x1080+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  
   1920x1080_60.00  59.96* 
DVI-D-1 disconnected (normal left inverted right x axis y axis)
SVIDEO-1 unknown connection (normal left inverted right x axis y axis)
   848x480       59.94 +
   640x480       59.94 +
   1024x768      59.94  
   800x600       59.94  

840x525 60.01 59.88

800x512 60.17 700x525 59.98 640x512 60.02 720x450 59.89 640x480 60.00 59.94 680x384 59.80 59.96 576x432 60.06 512x384 60.00 400x300 60.32 56.34 320x240 60.05 VGA-1 connected primary 1920x1080+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 1920x1080_60.00 59.96* DVI-D-1 disconnected (normal left inverted right x axis y axis) SVIDEO-1 unknown connection (normal left inverted right x axis y axis) 848x480 59.94 + 640x480 59.94 + 1024x768 59.94 800x600 59.94

terminal Output Information - -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Among them, LVDS-1 VGA-1 DVI-D-1 represents the configuration of different display output ports.

Like under LVDS-1

  1680x1050     60.56*+  59.95    59.88  
Represents the resolution configuration, the left side of 1680*1050, that is, the right side of the display resolution three represents the refresh rate, the resolution of the bid * in the back, indicating that the resolution refresh rate is in the current working state.

(I am not very clear about these three parameters, maybe the nominal refresh rate and the actual refresh rate. All in all, they are about 60, indicating that the display works at the level of 60HZ. This does not affect our next configuration, so don't get tangled. My notebook is the old model of high-score, so the resolution is very strange, please follow your own. My laptop working resolution to distinguish display interface)

According to the current working resolution of the interface, we can distinguish which display interface needs to be modified, such as my VGA-1, and some devices will be displayed as VGA-0, which will be filled in according to the specific situation.


3. Query the output information of the resolution you want

For example, the resolution of the external monitor I want is 1920*1080.

The terminal input code

cvt 1920 1080

The terminal input code


terminal Output Information - -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# 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
terminal Output Information - -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The output information in the Modeline line line is what we need to configure the resolution.


4. Create new resolution mode configuration information

Detailed configuration of resolution at the end of the code can be copied from the content in Modeline.

The terminal input code

xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

The terminal input code


That is to say, a working mode called "1920X1080_60.00" name was created.


5. Add the previously created work mode to the corresponding interface

-------------------------------------terminal Input code

xrandr --addmode VGA-1 "1920x1080_60.00"
The terminal input code


In this way, we add the mode we created before to the VGA-1 display interface, and then go to the display output to find the new resolution, the application can be.


In order to facilitate technical exchanges, this article can be reproduced at will, without the need to indicate the source of the article!






Added by MA06 on Tue, 09 Jul 2019 02:12:56 +0300