One, add a new resolution for the monitor
There are two tools to use: xrandr
and cvt
1. Use CVT to add a new resolution, the following is to create a 1280x1024, refresh frequency of 60hz Resolution
[Email protected]:~$ CVT 60# 1280x1024 59.89 Hz (CVT 1.31m4) hsync:63.67 kHz; pclk:109.00 mhzmodeline "1280x1024_60.00" 109.00 1368 1496 1712 1024x768 1027 1034 1063-hsync +vsync
2. Add the above modeline with Xrandr to the display's resolution list
[e-mail protected]:~$ xrandr--newmode "1280x1024_60.00" 109.00, 1368 1496 1712 1024x768 1027 1034 1063-hsync +vsync
3. Use Xrandr to see the newly added mode
[Email protected]:~$ xrandrscreen 0:minimum x 960, maximum 16384 x 16384vbox0 connected 1280x960+0+ 0 0mm x 0mm 1024x768 60.0 + 60.0 1600x1200 60.0 1440x1050 60.0 1280x960 60.0* 800x600 60.0 640x480 60.0 1280x1024_60.00 (0x14d) 109.0MHz h:width 1280 Start 1368 end 1496 Total 1712 skew 0 clock 63.7KHz v:height 1024x768 start 1027 end 1034 Total 1063 Cloc K 59.9Hz
4. Add the mode with the Xrandr –add-mode command:
[Email protected]:~$ xrandr--addmode VBOX0 "1280x1024_60.00" [email protected]:~$ xrandrscreen 0:minimum x, current x 960, maximum 16384 x 16384vbox0 connected 1280x960+0+0 0mm x 0mm 1024x768 60.0 + 60.0 1600x120 0 60.0 1440x1050 60.0 1280x960 60.0* 800x600 60.0 640x480 60.0 1280x1024_60.00 59.9
As you can see, the resolution of 1280x1024 has been added to the display's resolution list.
5. Set the resolution:
[Email protected]:~$ xrandr-s 1280x1024_60.00
It's OK.
6. Persistent memory This newly added resolution add the following statement to the ~/.xprofilexrandr --output VBOX0 --mode 1280x1024_60.00
Second, write xorg.conf, solve the problem of Ubuntu resolution is not adjustable
Under the/etc/x11 directory, create a new xorg.conf file and write the following
Section "Screen"
Identifier "Default Screen"
Subsection "Display"
Virtual 1280 1024
Endsubsection
Endsection
Save the exit, and then restart your computer. If you still don't see a full screen, you can select the appropriate resolution in system settings-display.
Ubuntu Desktop does not fill the entire display solution