How to increase the resolution of Ubuntu 9.10 on virtualbox.

UbuntuSince I changed my OS on my laptop from Ubuntu to Windows7 (6-7 months ago), today I come back to use it again via VirtualBox and I still find some problem on Ubuntu. 🙁 Anyway, the problem must make me stronger.

I use Ubuntu9.10, I’m very surprise why I cannot find /etc/X11/xorg.conf. Normally, user can edit the resolution by editing some part in this file. There is always at least one solution to solve the problem. Of cause, Google can help…

From this link : http://ubuntuforums.org/showthread.php?p=8595940

I need to change resolution on Ubuntu from something to 1280×800, what I do?

1. Check display device in Ubuntu by

$ xrandr
Screen 0: minimum 64 x 64, current 1280 x 800, maximum 32000 x 32000
VBOX1 connected 1280x800+0+0 0mm x 0mm
   1360x768       59.8
   1152x864       60.0
   1024x768       60.0
   800x600        60.3
   640x480        59.9

2. Then type :

$ sudo cvt 1280 800
# 1280x800 59.81 Hz (CVT 1.02MA) hsync: 49.70 kHz; pclk: 83.50 MHz
Modeline "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync

3. Create a new mode :

$ sudo xrandr --newmode "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync

4. Add new mode:

$ sudo xrandr --addmode VBOX1 1280x800_60.00

5. Enable new mode:

$ sudo xrandr --output VBOX1 --mode 1280x800_60.00

6. Ohh my god, you need to put command from number 3 – 5 into script.

$ sudo vi /usr/local/bin/increase_resolution.sh
#!/bin/bash
xrandr --newmode "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync
xrandr --addmode VBOX1 1280x800_60.00
xrandr --output VBOX1 --mode 1280x800_60.00

7. Put this script into start up script:

$ sudo vi /usr/local.rc
:
:
# By default this script does nothing.

/usr/local/bin/increase_resolution.sh

exit 0
<title> Your Webpage title can be mentioned here</title> <meta name=”keywords” CONTENT=”Your comma-separated keywords are entered here”> <meta name=”description” CONTENT=”Enter website description here”>