LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-18-2019, 05:06 PM   #1
etpoole60
Member
 
Registered: Jan 2008
Posts: 111

Rep: Reputation: 0
A Better Way To Do vga=


I have the following parameter on my CentOS 6.10 grub kernel parameter:

kernel /vmlinuz-2.6.32-754.10.1.el6.x86_64 ro … rhgb quiet vga=34A

(the vga=34A parm)

However when I reboot I have to reenter this parm every time.
BTW, the vga=34A parm gives me a 1600x1200x32 VESA resolution.

But, even though it's coded during reboot the message comes up:
Undefined Video Mode Number: 22
So I have to enter 34A manually.

Why does it accept this parm when I enter it manually and not automatically?
How can I set this as a permanant setting and where do I set it?

And better yet, when I move to CentOS 7 how do I or do I need to set this on grub2?
TIA
Gene
 
Old 02-18-2019, 05:25 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
I see that you already have the option in the menu.lst. As far as I know the correct number for your mode is
vga=834

https://en.wikipedia.org/wiki/VESA_BIOS_Extensions

I don't know if you need to do the same but here are the steps.

CentOS 7 uses grub2. Edit the /boot/grub/grub.cfg and add your option to the GRUB_CMDLINE_LINUX_DEFAULT line. Run grub-mkconfig -o /boot/grub/grub.cfg to regenerate the grub.cfg file.

https://wiki.archlinux.org/index.php...arameters#GRUB

Last edited by michaelk; 02-18-2019 at 05:53 PM.
 
1 members found this post helpful.
Old 02-18-2019, 06:30 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I would think CentOS 7 will use kernels that implement KMS - the vga parameter will conflict IIRC.
 
Old 02-18-2019, 06:41 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Your probably correct but I have also read that CentOS7 still recognizes the vga kernel parameter.
 
Old 02-19-2019, 08:01 AM   #5
CaptainFreeze
LQ Newbie
 
Registered: Feb 2010
Posts: 5

Rep: Reputation: 1
You can manually add vga=ask to see all of the possible video modes.
You can use grubby to set the desired vga= parameter
 
1 members found this post helpful.
Old 02-19-2019, 09:04 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <CentOS> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
1 members found this post helpful.
Old 02-19-2019, 05:41 PM   #7
etpoole60
Member
 
Registered: Jan 2008
Posts: 111

Original Poster
Rep: Reputation: 0
Thank you all!
I've tested the solutions you gave and it is working just fine.
As far as the move to CentOS 7, that will have to wait because I've just become a great-grandfather and that is more important than any IT work.
TIA
Gene
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Black screen, works on VGA to monitor but not on VGA to TV junkjunk Ubuntu 14 07-07-2009 05:32 AM
onboard VGA adapter Vs VGA Card mrpc_cambodia Linux - Hardware 6 12-31-2004 07:29 AM
if i get an nforce mobo with built-in VGA... will the built in vga work in linux? kublador Linux - Hardware 2 11-10-2003 08:26 PM
VGA to VGA cards Stephanie Linux - General 3 02-07-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:42 PM.

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