LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-24-2015, 09:46 PM   #1
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Rep: Reputation: 7
Best practice to disable a video card in CentOS/RedHat?


I have a system with two video cards, one I care about, and one I don't care about at all. I'd really like to disable the one I don't care about.

I am working in CentOS 5.11 which is...based on RedHat 5.11 if that helps. I'm thinking something can be done with the X configuration, but I'm not sure what that would be.
 
Old 02-24-2015, 11:20 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Have you checked BIOS settings? There may be an option. You can blacklist the concerned video card kernel module.

And why not remove one of them physically.
 
Old 02-25-2015, 02:10 AM   #3
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by veerain View Post
And why not remove one of them physically.
Hi...

If you're able and it's not a discrete or hybrid graphics sort of set up, I would agree this is probably the easiest way.

Regards...

Last edited by ardvark71; 02-25-2015 at 02:12 AM. Reason: Added information.
 
Old 02-25-2015, 02:12 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
For the older legacy rhel5

in your xorg.conf you have 2 cards set up
just disable the one in that file

-- for nvidia
Code:
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTS 240"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTS 240"
EndSection
 
1 members found this post helpful.
Old 02-25-2015, 07:56 AM   #5
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Original Poster
Rep: Reputation: 7
Brilliant! there we go, and sorry for the confusion, one of the video "cards" is on-board, and thus can't be removed, incidentally it's the one I don't want. Additionally, there's no BIOS setting that I can find to disable the on-board video. Oddly enough, my system is smart enough to push primary video output to whatever secondary card it finds at the pre-boot level.

JohnVV-

Thank you, by "disable" do you mean delete the device section for that card in the configuration?

Last edited by VolumetricSteve; 02-25-2015 at 07:57 AM.
 
Old 02-25-2015, 09:16 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by VolumetricSteve View Post
Brilliant! there we go, and sorry for the confusion, one of the video "cards" is on-board, and thus can't be removed, incidentally it's the one I don't want. Additionally, there's no BIOS setting that I can find to disable the on-board video. Oddly enough, my system is smart enough to push primary video output to whatever secondary card it finds at the pre-boot level.

JohnVV-
Thank you, by "disable" do you mean delete the device section for that card in the configuration?
I wouldn't delete the section, but just comment it out. Also, be aware that some built-in cards are the 'default' for booting/BIOS/console output, so when you fire that machine up, it may use the first one it finds as your console. Which may or may not be an issue.
 
1 members found this post helpful.
Old 02-25-2015, 09:18 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by veerain View Post
Have you checked BIOS settings? There may be an option. You can blacklist the concerned video card kernel module.
Please, stop posting things that are misleading or incorrect. I have NEVER seen a machine so far that has an option to disable a video card in the system BIOS. And giving the advice to blacklist the video card module is plain bad...especially since you never asked if both of the cards have the same chipset. If they're both nVidia cards, and you blacklist the nvidia module, what do you think will happen????
Quote:
And why not remove one of them physically.
Because that's not what the OP asked, and not what they want to do.
 
1 members found this post helpful.
Old 02-25-2015, 10:08 AM   #8
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by TB0ne View Post
Because that's not what the OP asked, and not what they want to do.
So you find that out by magic without OP saying it.
 
Old 02-25-2015, 10:09 AM   #9
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by TB0ne View Post
if both of the cards have the same chipset
That also by magic.

Last edited by veerain; 02-25-2015 at 10:11 AM.
 
Old 02-25-2015, 10:13 AM   #10
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
This link on arch may help atleast the generic part.
 
Old 02-25-2015, 10:29 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by veerain View Post
So you find that out by magic without OP saying it.
No, I find that out by READING AND UNDERSTANDING what the OP said. Very first post..."I'd really like to disable the one I don't care about." See the word "disable"?? That means DISABLE...not REMOVE.
Quote:
Originally Posted by veerain
That also by magic.
No, that's pointing out the bad advice you gave. You didn't ask ANYTHING about the cards, and just blindly telling someone to blacklist a module without knowing ANYTHING about that module/hardware/system is NOT A GOOD THING. Again, you didn't (and DON'T) have enough information to even suggest that.
Quote:
Originally Posted by veerain
This link on arch may help atleast the generic part.
Nope, not at all, since that deals with Arch Linux (the OP has CentOS), and hybrid graphics (which the OP doesn't have). So NONE of that applies.

Again, PLEASE STOP posting misleading/incorrect/incomplete/potentially damaging advice. Pay attention to what the OP is saying and asking.
 
1 members found this post helpful.
Old 02-25-2015, 11:33 AM   #12
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by VolumetricSteve View Post
one of the video "cards" is on-board, and thus can't be removed, incidentally it's the one I don't want. Additionally, there's no BIOS setting that I can find to disable the on-board video.
Are you sure it isn't disabled? Most BIOS's I have used default to disabling the on-board video when there is also an external card.

I typically use lspci to find out which video is enabled.

On the main question, I used to understand these things in the old days when the info unconditionally came from the xorg.conf file and your choice was leave an automatically generated xorg.conf alone or edit it. Either way, you could look at it and know what was there.

So far as I understand, you can still override things by creating an xorg.conf, but its mere existence does not prevent defaults from coming from other places that I don't understand. If some aspect is undefined in xorg.conf, I don't really understand where the defaults come from. I don't know how you find out what the defaults were if you want to tweak them rather than reinvent whole cloth. I don't know what you need to put in xorg.conf to really suppress some defaults vs. just supplement them.

Maybe Centos 5 is what I was describing as those "old days". So what you see in xorg.conf is what X is actually using. My memory isn't perfect and I have tweaked quite a lot of problem video set ups since the last time I did so for Centos 5.

Quote:
Originally Posted by TB0ne View Post
Please, stop posting things that are misleading or incorrect.
Back at you.

Quote:
Originally Posted by TB0ne View Post
I have NEVER seen a machine so far that has an option to disable a video card in the system BIOS.
So you are looking at a very different pool of machines than I have looked at. Your experience is far short of universal.

Quote:
hybrid graphics (which the OP doesn't have)
That was far from clear to me. You may be reading the OP's mind better than I am (or worse).

Last edited by johnsfine; 02-25-2015 at 11:42 AM.
 
Old 02-25-2015, 11:56 AM   #13
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Every desktop system I've seen with onboard video has had some means of disabling that in the BIOS. Sometimes it's buried a bit in the setup screens (Setup -> Advanced -> Internal Graphics Configuration -> Internal Grahics Mode : Disabled), but it's always been there. My laptops don't have that, but they have no provision for adding a video card either, so what would be the point?
 
Old 02-25-2015, 12:00 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by johnsfine View Post
Are you sure it isn't disabled? Most BIOS's I have used default to disabling the on-board video when there is also an external card. I typically use lspci to find out which video is enabled.

On the main question, I used to understand these things in the old days when the info unconditionally came from the xorg.conf file and your choice was leave an automatically generated xorg.conf alone or edit it. Either way, you could look at it and know what was there.

So far as I understand, you can still override things by creating an xorg.conf, but its mere existence does not prevent defaults from coming from other places that I don't understand. If some aspect is undefined in xorg.conf, I don't really understand where the defaults come from. I don't know how you find out what the defaults were if you want to tweak them rather than reinvent whole cloth. I don't know what you need to put in xorg.conf to really suppress some defaults vs. just supplement them.
There is ample documentation about the new X configuration process which can clear things up for you.
http://www.x.org/releases/X11R7.7/do...g.conf.5.xhtml
Quote:
Quote:
Originally Posted by TB0ne
Please, stop posting things that are misleading or incorrect.
Back at you.
And where does this come from? Why???
Quote:
Quote:
Originally Posted by TB0ne
I have NEVER seen a machine so far that has an option to disable a video card in the system BIOS.
So you are looking at a very different pool of machines than I have looked at. Your experience is far short of universal.
I never said my experience was 'universal'...just said what I have seen. I've got several machines at the house, and NONE of them have any BIOS options to disable the built-in video.
Quote:
Quote:
Originally Posted by TB0ne
hybrid graphics (which the OP doesn't have)
That was far from clear to me. You may be reading the OP's mind better than I am (or worse).
I'm reading what the OP SAID...which is "I have a system with two video cards", along with "one of the video "cards" is on-board"..meaning the second one IS NOT on board. Hybrid systems share a good bit of hardware, and have to be integrated with each other on a hardware level.
 
1 members found this post helpful.
Old 02-25-2015, 12:02 PM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by rknichols View Post
Every desktop system I've seen with onboard video has had some means of disabling that in the BIOS. Sometimes it's buried a bit in the setup screens (Setup -> Advanced -> Internal Graphics Configuration -> Internal Grahics Mode : Disabled), but it's always been there. My laptops don't have that, but they have no provision for adding a video card either, so what would be the point?
I'm not disputing that it could be there..just that I've not seen it. Maybe because I haven't looked in the right place, too, or that the systems I've used haven't had on-board graphics. Since I deal with mostly server-type machines (most don't even HAVE monitors, and many are blades), that's certainly a possibility.
 
1 members found this post helpful.
  


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
[SOLVED] No QXL video mode in 6.5 CentOS/RedHat Virt Manager myc5 Linux - Virtualization and Cloud 6 02-05-2014 09:19 AM
Disable video card ritesh82 Linux - Newbie 1 01-15-2012 11:48 AM
video card problem(disable nouvear and enable nvidia) georgie99 Linux - Newbie 3 02-27-2010 02:43 PM
Video card issues, unable to boot CentOS 4.2 kryptondog Linux - Hardware 0 01-15-2006 12:44 PM
Video Card for Redhat please_help Linux - Hardware 1 04-14-2003 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:31 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