LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 12:05 PM   #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, 12:35 PM   #2
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
--- Depth --
Colors bits 640x480 800600 1024768 1152864 12801024 16001200
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, 12:36 PM   #3
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
Code:
--- Depth --
Colors  bits  640x480  800600  1024768  1152864 12801024  16001200
   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, 02: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, 07:23 AM   #5
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
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, 07:28 AM   #6
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
the grub configuration file is located in /boot/grub
 
Old 12-14-2010, 11: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, 03:02 AM   #8
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
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, 04:42 AM   #9
nangua321
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
That is more interesting.
 
Old 12-17-2010, 02: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 03:18 PM.
 
Old 12-17-2010, 02:52 PM   #11
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
while rebooting,hold the shift key down and then press C to go to GRUB command line.
and type "vbeinfo".
 
Old 12-18-2010, 04: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 04:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:05 PM
grub: kernel parameter RO but filesystem still gets mounted rw browny_amiga Linux - General 1 01-13-2010 07:03 AM
LILO append parameter altermative in GRUB ? Vilius Linux - Software 4 03-05-2009 09:05 AM
root=UUID= parameter in GRUB? kushalkoolwal Ubuntu 4 05-18-2008 01:52 AM
What effect does the kernel parameter VGA=<MODE> have on an init 3 console ssenuta Linux - Hardware 3 07-29-2007 01:41 PM

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

All times are GMT -5. The time now is 05:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration