If you want to reprint please indicate the source: http://blog.csdn.net/itas109
QQ Technology Group: 129518033
Today after the installation of Ubuntu 14.04, in the virtual machine display is not complete, originally adjust the screen resolution can solve the problem, the results appear unknown display as shown below:
In other words, the screen resolution cannot be adjusted by setting.
Finally, we found that you can adjust the resolution using the XRANDR command.
After entering Xrandr in the command prompt, the following image appears:
Where the asterisk is the current resolution.
With the command xrandr-s 1440x900_59.9, you can set the resolution to 1440x900, as shown in the following figure:
Above this command is a temporary set resolution, if required permanent settings need Xrandr--output Virtual1--mode 1440x900
The VIRTUAL1 is the beginning of the next line of screen 0 in Figure 1, and the following 1440x900 is the so-called resolution name that can be seen in Figure 2
At this point, the resolution setting is complete.
The following reference posts: http://www.cnblogs.com/cobbliu/p/3818064.html
If you need additional custom resolution settings
There are two tools to use here: Xrandr and CVT
1. Use CVT to add a new resolution, the following is to create a 1280x1024, refresh frequency of 60hz Resolution
cobbliu@x-serer:~$ CVT
59.89 Hz (CVT 1.31m4) hsync:63.67 kHz, pclk:109.00 MHz
modeline "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
cobbliu@x-serer:~$ 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
cobbliu@x-server:~$ xrandr Screen
0:minimum x 960, maximum 16384 x 16384
VBOX0 connected 12 80x960+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 1280x720 Start 1368 end 1496 Total 1712 skew 0 clock 63.7KHz
v:height 1024x768 start 1027 end 1034 Tota L 1063 Clock 59.9Hz
4. Add the mode with the Xrandr –add-mode command:
cobbliu@x-server:~$ xrandr--addmode VBOX0 "1280x1024_60.00"
cobbliu@x-server:~$ xrandr screen
0:minimum 64 X, current x 960, maximum 16384 x 16384 VBOX0 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 59.9
As you can see, the resolution of 1280x1024 has been added to the display's resolution list.
5. Set the resolution:
cobbliu@x-server:~$ xrandr-s 1280x1024_60.00
It's OK.
6. Persistent memory This newly added resolution add the following statement to the ~/.xprofile xrandr--output VBOX0--mode 1280x1024_60.00
If you want to reprint please indicate the source: http://blog.csdn.net/itas109
QQ Technology Group: 129518033