Ubuntu Server - Defining Screen resolution

Problem Statement

After installation Ubuntu servers screen is not in synch with the resolution of the display

Solution

Found this document on the internet.
Thanks to the author ...

The resume of this article is as follows:

Howto

The screen resolution is determined at startup ... when the kernel is loaded.
An option can be specified to the kernel to indicate the required screen resolution.
So ... three steps:
- determine parameter
- change menu.lst and the parameter
- reboot the system

Determine the correct vga parameter

Determine the argument using the following table
          640x400 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 ?
Look up the coorect vga indicator in the following table:

Edit the menu.lst file

Edit the /boot/grub/menu.lst file
Look for the correct line that defines the kernel to use with the correct options and if not already present add a parameter vga=0xyyy
The value 0xyyy is the vga parameter that you determined in step 1.

Reboot the system

Enter the following command:

#> reboot


A reboot is required to enable the setting.

No comments: