How to change resolution on Ubuntu:
Resolution Table:
Colours |
640x480 |
640x480 |
800x600 |
1024x768 |
1152x864 |
1280x1024 |
1600x1200 |
4 bits |
? |
? |
0x302 |
? |
? |
? |
? |
8 bits |
0x300 |
0x301 |
0x303 |
0x305 |
0x161 |
0x307 |
0x31C |
15 bits |
? |
0x310 |
0x313 |
0x316 |
0x162 |
0x319 |
0x31D |
16 bits |
? |
0x311 |
0x314 |
0x317 |
0x163 |
0x31A |
0x31E |
24 bits |
? |
0x312 |
0x315 |
0x318 |
? |
0x31B |
0x31F |
32 bits |
? |
? |
? |
? |
0x164 |
? |
? |
Open your menu.lst file:
-------------------------------
sudo nano /boot/grub/menu.lst
-------------------------------
And find the entry you normally use to boot with and go to the line that begins with "kernel", it should say something like this:
------------------------------------------------------------------
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda5 ro quiet splash
------------------------------------------------------------------
Add a "vga=" option to the end of the line, and put in the code from the table above. So if you want 1024x768 at 16 bit color at command line, add "vga=0x317" to the end of your kernel parameters.
Now,
save the file, and it will take effect when you
restart.