LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2010, 11:05 AM   #1
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Rep: Reputation: 10
Grub parameter VGA counting


Hello,
I am using grub of version 2, and current resolution vga=795 (probably). X runs at 1680x1050. So what I would like to know is, how can I count the right VGA parameter number for grub, to use another resolution? (the method would be appreciated especially) Thanks.
 
Old 12-13-2010, 11:35 AM   #2
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
--- Depth --
Colors bits 640x480 800×600 1024×768 1152×864 1280×1024 1600×1200
256 8 vga=769 vga=771 vga=773 vga=353 vga=775 vga=796
32000 ? vga=784 vga=787 vga=790 vga= ? vga=793 vga= ?
65000 16 vga=785 vga=788 vga=791 vga=355 vga=794 vga=798
16.7M 24 vga=786 vga=789 vga=792 vga=795 vga=799
 
Old 12-13-2010, 11:36 AM   #3
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
Code:
--- Depth --
Colors  bits  640x480  800×600  1024×768  1152×864 1280×1024  1600×1200
   256    8   vga=769  vga=771   vga=773   vga=353   vga=775    vga=796
 32000    ?   vga=784  vga=787   vga=790   vga= ?    vga=793    vga= ? 
 65000   16   vga=785  vga=788   vga=791   vga=355   vga=794    vga=798
 16.7M   24   vga=786  vga=789   vga=792   vga=795   vga=799
 
Old 12-13-2010, 01:44 PM   #4
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks for your reply Ilvista (btw where did you get that table from please?). Is there a way to use different resolution, since 1600x1200 is not supported, and 1280x1024 feels like underestimating my computer. (Not like it's too serious, but I'd really like to use higher res.) Thanks.
 
Old 12-14-2010, 06:23 AM   #5
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
Go to the grub configuration file
vi /etc/grub/grub.conf

On the kernel line, specify that the kernel should ask you which mode to use.

kernel /vmlinuz26 root=/dev/sda1 ro vga=ask

Now reboot. GRUB will now present a list of codes to use and an option to scan for even more.

You can pick the code you'd like to use and boot using it.

The number you picked is the hexadecimal number, in order to use it at the kernel line you can transform it into a decimal number.

Now replace ask in the kernel line with the correct one you have picked.

e.g. the kernel line for [369] 1680x1050x32 would be:


kernel /vmlinuz26 root=/dev/sda1 ro vga=873
 
Old 12-14-2010, 06:28 AM   #6
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
the grub configuration file is located in /boot/grub
 
Old 12-14-2010, 10:43 AM   #7
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Ok, thanks for your answer. I'll try vga=ask right away. Though, you did not answered my second question, what is, how do you know those numbers? I mean, if there is some table specified for it, or if it's some mathematical operation. Thanks
 
Old 12-15-2010, 02:02 AM   #8
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
yes i just did.when you use GVA=ask ,the grub is gonna give you a list of possible codes!and you can type
scan for more codes,if there are any.

Good Luck
 
Old 12-15-2010, 03:42 AM   #9
nangua321
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
That is more interesting.
 
Old 12-17-2010, 01:14 PM   #10
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Well, my version of grub does not support vga=ask anymore. It's replaced with another command using some vbe, which should be added to kernel. I can't find it anywhere though. Where should I search for it? (or any advice?)
Thanks.

(forgot to write it's grub2)

Last edited by SkyerSK; 12-17-2010 at 02:18 PM.
 
Old 12-17-2010, 01:52 PM   #11
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
while rebooting,hold the shift key down and then press C to go to GRUB command line.
and type "vbeinfo".
 
Old 12-18-2010, 03:08 AM   #12
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Ok, sorry, it's working anyway. It does not give me option to have 1650x1050, but 1400x1050 (or something like that) sounds good too. Thanks.

edit: Oh, I didn't look on ilvista's post about entering the command. Thanks for your post.

Last edited by SkyerSK; 12-18-2010 at 03:09 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to decide the parameter value of root in grub.conf redhatz_zhao Linux - Software 11 07-26-2010 12:05 PM
grub: kernel parameter RO but filesystem still gets mounted rw browny_amiga Linux - General 1 01-13-2010 06:03 AM
LILO append parameter altermative in GRUB ? Vilius Linux - Software 4 03-05-2009 08:05 AM
root=UUID= parameter in GRUB? kushalkoolwal Ubuntu 4 05-18-2008 12:52 AM
What effect does the kernel parameter VGA=<MODE> have on an init 3 console ssenuta Linux - Hardware 3 07-29-2007 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration