Sunday, February 13, 2011

Set screen resolution from grub in Linux

We know that in Linux VGA Properties are handled by xorg.

But if we need to control the VGA resolution before the control goes over to xorg
it can be easily done from the Grub

There are different Grub VGA Modes that can be enabled from the kernel boot up line in Grub

This property can be set with vga=xxx where xxx is the value that denotes different colour depth and screen resolution.

This property is used by editing the kernel boot-up line in Grub
Edit the kernel boot up line when grub screen arrives at the startup

and at the end of the kernel boot up line just add vga=xxx. different values that can replace xxx for different purposes are listed below.

Colour depth 640x480 800x600 1024x768 1280x1024 1400x1050 1600x1200
8 (256) 769 771 773 775
15 (32K) 784 787 790 793
16 (65K) 785 788 791 794 834 884
24 (16M) 786 789 792 795

No comments: