LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-15-2012, 01:42 PM   #1
zaczek
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Rep: Reputation: 0
? Installing both ATI and NVIDIA drivers together ?


I have a question about installing both ATI and NVIDIA Graphics drivers together and then having the system detect which to use based on the computer hardware - this is to be used in an external drive that has Scientific Linux installed and is expected to be moved from one computer to another and I need to be able to support having both NVIDIA and ATI hardware.

I posted this same question in the Scientific Linux forums but I believe this is general enough so I am reposting here. Here is the SL link: http://scientificlinuxforum.org/inde...showtopic=1845

So here are the questions I have about how to get this to work.

1) Can I install the ATI and NVIDIA drivers together without conflict? I know that the NVIDIA drivers have the following installed filed: http://us.download.nvidia.com/XFree8...omponents.html...I can't find a similar listing for ATI as of yet. From this list I notice that the OpenGL library (/usr/lib/libGL.so) is replaced by NVIDIA and I suspect it would likely conflict with ATI if it does the same type of install. If anyones knows, can you confirm or deny my assumption?

I was hoping that by having both drivers install and no conflicting with each other (i.e. over-writing the same files) I figured to switch between ATI and NVIDIA would be as simple as detecting the current graphics card at boot and then applying the appropriate /etc/X11/xorg.conf that matches the config. This was suggested in the following post I found:

http://ubuntuforums.org/showthread.p...78#post8107778

Quote:
#!/bin/bash
# copy appropriate xorg.conf for your videocard
cp /etc/X11/default.conf /etc/X11/xorg.conf
if lspci | grep "VGA compatible controller: nVidia"
then
# nVidia card
nvidia-xconfig
fi
if lspci | grep "VGA compatible controller: ATI Technologies"
then
# ATI card, loading opensource ati driver
cp /etc/X11/ati.conf /etc/X11/xorg.conf
fi
2) Alternatively I heard mention of drivers called "nouveau" (?) that are not proprietary NVIDIA drivers and could possibly work along side of ATI? I know nothing about this so if you can enlighten me I would appreciate it.

3) FYI: the default Scientific Linux install includes a standard graphics driver and this driver worked when the drive was plugged in both ATI and in NVIDIA systems. BUT the performance under NVIDIA was horrible - some OGRE 3D demos gave me 10 frames/sec. When I installed the proprietary NVIDIA driver this jumped to 500 frames/sec. And since my development involves graphics, I can't get by with 10 fps....so sticking to the default driver is not an option.

4) Lastly, the only other option I thought about was configuring the boot process to reinstall the driver at each boot if it detects a change from the previous driver - i.e. basically add some script that will popup the ATI or NVIDIA installer and ask you to install the driver to match the system. Something like this was suggested for updating the driver when a kernel update occurs ... see this link:

http://scientificlinuxforum.org/inde...showtopic=1109

Anyway, I would appreciate any help or suggestions.
 
Old 08-15-2012, 10:23 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
use the opensource ati driver that IS part of the os
and use the open nouveau nividia driver that is also part of the default install in SL6.3
PS. you HAVE TO USE THE NVIDIA nouveau driver that IS built in to the OS for the SL6 boot loader !!!!
the boot loader REQUIRES the DEFAULT nouveau driver to be installed
-- or no fancy boot graphics

if you are going to be moving it around then DO NOT use the proprietary nvidia and AMD-ATI drivers
DO NOT use the " kmod " or .run drivers

Last edited by John VV; 08-15-2012 at 10:25 PM.
 
1 members found this post helpful.
Old 08-15-2012, 10:56 PM   #3
zaczek
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I am using SL 6.2 ... the default drivers that were installed (can't say what they were, other than all I see is "vesa" in xorg.conf) were horrible. I had 10 FPS in an OGRE demo...when I added the proprietary drivers it went to 500 FPS!!!! Are you saying that maybe I need to have SL 6.3 or did I miss that 6.2 also has nouveau drivers? Sorry, been a while for me on linux and so I hope I'm making sense now.

Assuming I don't have the nouveau drivers, can I simply uninstall the current NVIDIA one and then download the nouveau and install? I'm guessing that was a stupid question and the answer is probably yes, but do you have any other advice? thanks.
 
Old 08-16-2012, 12:29 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
no, you DO have the nouveau driver installed if you have a nvidia card ( you ALSO have the ati open driver also installed
- they are by DEFAULT installed

unless
you installed the .run and rebuilt the boot image
then it is still installed but just not used

the "vesa" driver is a 2d ONLY -- no 3d support in it
you might want to read the man page
Code:
man xorg.conf 
-- and ---
man xorg

replace vesa with nouveau as the driver in the "xorg.conf" file
 
1 members found this post helpful.
Old 08-16-2012, 03:37 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The proprietary AMD and Nvidia drivers will not play together on one system. You can use the free radeon and nouveau drivers (installed by default and automatically chosen if the hardware is detected), but, as you figured out yourself already, performance is (dependent on which video card is in the system) ranging from sub-optimal to horrible yet.
I would recommend to set up a dual boot system, one SL install with the AMD drivers (where you launch amdconfig --initial in rc.local to detect the actual video card) and one install with the Nvidia drivers (where you launch nvidia-xconfig in rc.local to detect the video hardware). To make things easier configure the systems in the same way and set up a shared /home partition.
 
1 members found this post helpful.
Old 08-16-2012, 08:51 AM   #6
zaczek
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you for your inputs, JohnVV and TobiSGD.

A couple of questions:

1) Since I've already installed the NVIDIA proprietary drivers will I have to first uninstall those and then switch my xorg.conf to the "nouveau" drivers? I ask because I know 3D stuff is typically OpenGL and the NVIDIA driver installs its own copy of libGL.so - wouldn't anything needing libGL be pointing to the proprietary NVIDIA driver I had even though I may have nouveau selected in xorg now?

1.5) If I didn't uninstall the NVIDIA driver and just wanted to test the nouveau driver by changing the 'xorg.conf' would it work or do I have to do an uninstall? Also, does the uninstall get me back to my pre-install state (I mean, will it return any of the .so files it may have overwritten)?

2) Clearly my 10 FPS demo was running through the "vesa" driver - do you think I'll get even half the performance of the NVIDIA drivers (it was 500 FPS) if I simply switch to the nouveau? I guess the answer is just to try it.

3) How do I check if I truly have the nouveau and open source ATI drivers installed - just to make sure?

4) Say I try the dual OS setup - besides sharing my /home, can I share my /usr/local as well and install my software just once and have it work across both - I'm guessing yes because there isn't some crazy registry like in Windows.

Thank you.

Last edited by zaczek; 08-16-2012 at 08:53 AM.
 
Old 08-16-2012, 09:13 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
1 + 1.5) Yes, you need to have to uninstall the Nvidia driver. There should be an uninstall script somewhere, but I currently don't have a Nvidia card, so I don't know how it is named and where it is located.

2) The vesa driver doesn't support any kind of acceleration, so most likely you were using the nouveau driver. The nouveau driver currently has problems on newer cards to set thei GPU frequency to its nominal value and lacks performance in general. Which performance you get is highly dependent on the used video card and the software.

3) Exactly, the answer would be: Just try it.

4) Yes.
 
1 members found this post helpful.
Old 08-16-2012, 10:31 AM   #8
zaczek
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
So I did the uninstall using the .run file and adding the '--uninstall' flag ... did this from run level 3. It says it completed but then I looked at the log file and there were some warnings, etc that had me a bit worried.

Here are a couple examples:
Quote:
-> The previously installed file '/usr/lib64/libGL.so.304.37' has a different checksum (3360028061) than when it was installed (1935444666). /usr/lib64/libGL.so.304.37 will not be uninstalled.
There were a few more like this for nvidia-xconfig, nvidia-settings, etc, etc. I know why this happened but I'm not sure it even matters. It happened because the driver was initially installed on a different NVIDIA based machine and it was uninstalled on a second NVIDIA machine - hence the checksums fail.

Ok, so now that it was uninstalled I decided to try the 'nouveau' drivers but the boot didn't detect any devices and failed. Here is what the Xorg.0.log says about it:

Quote:
[ 35.828] (II) LoadModule: "nouveau"
[ 35.828] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[ 35.828] (II) Module nouveau: vendor="X.Org Foundation"
[ 35.828] compiled for 1.10.4, module version = 0.0.16
[ 35.828] Module class: X.Org Video Driver
[ 35.828] ABI class: X.Org Video Driver, version 10.0
[ 35.828] (II) NOUVEAU driver
[ 35.828] (II) NOUVEAU driver for NVIDIA chipset families :
[ 35.828] RIVA TNT (NV04)
[ 35.828] RIVA TNT2 (NV05)
[ 35.828] GeForce 256 (NV10)
[ 35.828] GeForce 2 (NV11, NV15)
[ 35.828] GeForce 4MX (NV17, NV18)
[ 35.828] GeForce 3 (NV20)
[ 35.828] GeForce 4Ti (NV25, NV28)
[ 35.828] GeForce FX (NV3x)
[ 35.828] GeForce 6 (NV4x)
[ 35.828] GeForce 7 (G7x)
[ 35.829] GeForce 8 (G8x)
[ 35.829] GeForce GTX 200 (NVA0)
[ 35.829] GeForce GTX 400 (NVC0)
[ 35.829] (--) using VT number 7
[ 35.846] drmOpenDevice: node name is /dev/dri/card0
[ 35.857] drmOpenByBusid: Searching for BusID pci:0000:01:00.0
[ 35.857] drmOpenDevice: node name is /dev/dri/card0
[ 35.862] drmOpenByBusid: drmOpenMinor returns -1
[ 35.862] drmOpenDevice: node name is /dev/dri/card1
[ 35.868] drmOpenByBusid: drmOpenMinor returns -1
[ 35.941] drmOpenDevice: node name is /dev/dri/card0
[ 35.949] drmOpenDevice: node name is /dev/dri/card0
[ 35.955] drmOpenDevice: node name is /dev/dri/card1
[ 35.961] drmOpenDevice: node name is /dev/dri/card2
[ 35.968] drmOpenDevice: node name is /dev/dri/card3
[ 35.974] drmOpenDevice: node name is /dev/dri/card4
[ 35.980] drmOpenDevice: node name is /dev/dri/card5
[ 35.987] drmOpenDevice: node name is /dev/dri/card6
[ 35.993] drmOpenDevice: node name is /dev/dri/card7
[ 35.999] drmOpenDevice: node name is /dev/dri/card8
[ 36.005] drmOpenDevice: node name is /dev/dri/card9
[ 36.012] drmOpenDevice: node name is /dev/dri/card10
[ 36.018] drmOpenDevice: node name is /dev/dri/card11
[ 36.024] drmOpenDevice: node name is /dev/dri/card12
[ 36.030] drmOpenDevice: node name is /dev/dri/card13
[ 36.036] drmOpenDevice: node name is /dev/dri/card14
[ 36.042] drmOpenDevice: node name is /dev/dri/card15
[ 36.048] (EE) [drm] failed to open device
[ 36.051] (EE) No devices detected.
[ 36.051]
Fatal server error:
[ 36.051] no screens found
[ 36.052]
Please consult the Scientific Linux support
at https://www.scientificlinux.org/maillists
So, it hung at the boot screen and I had to ctrl-alt-F2 to log in and switch back to 'vesa'.

Do you think the cause was the possible incomplete uninstall that that nvidia-installer.log is telling me - ie that the checksums didn't match so certain files were not uninstalled? I guess I should be able to repeat the uninstall process by going back to the original NVIDIA machine where the checksums should match - maybe. sigh.
 
Old 08-16-2012, 10:42 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The checksums shouldn't change on different machines. I would recommend to re-install all packages that contain files that the Nvidia installer does not uninstall.
 
1 members found this post helpful.
Old 08-16-2012, 10:52 AM   #10
zaczek
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I could see why the checksums were different - I guess I assume they base the checksum on the hardware signature because nothing else has changed on this system. I literally only installed the proprietary NVIDIA driver and that is it until this attempt to uninstall it. But, as I said, I installed in on Machine #1 and uninstalled it on Machine #2.

I can't think of which packages that could be...the only one would likely be related to the graphics driver and that would be nouveau ... I guess I should just try to install it again?

fyi, I booted the drive using the 'vesa' driver on my ATI machine (Machine #3) and the performance is bad as expected. What is the way to enable the included ATI drivers on that machine?
 
Old 08-16-2012, 11:28 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by zaczek View Post
I could see why the checksums were different - I guess I assume they base the checksum on the hardware signature because nothing else has changed on this system. I literally only installed the proprietary NVIDIA driver and that is it until this attempt to uninstall it. But, as I said, I installed in on Machine #1 and uninstalled it on Machine #2.
Checksums on files are not dependent on hardware, if the checksum is mismatching then the file was altered, not the hardware.

Quote:
I can't think of which packages that could be...the only one would likely be related to the graphics driver and that would be nouveau ... I guess I should just try to install it again?
The uninstall process gave you a list which files were not uninstalled. I don't know much about yum, but I think there will be an option that shows you which package a file belongs to. Re-install those packages.

Quote:
fyi, I booted the drive using the 'vesa' driver on my ATI machine (Machine #3) and the performance is bad as expected. What is the way to enable the included ATI drivers on that machine?
You don't need to. If you don't have a xorg.conf file the X server will automatically choose the correct driver. Of course this will lead to problems with the AMD driver if you still have relevant parts of the Nvidia driver installed.
 
1 members found this post helpful.
Old 08-16-2012, 12:54 PM   #12
zaczek
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
thank you very much for the info. It looks to me like my 3D graphics performance is just not going to be good with the default drivers. I'll try to reinstall any packages directly affected by the NVIDIA driver and see - thanks for that suggestion.

btw, I removed the xorg.conf and had the system choose the driver and it basically selected some poor performing driver that still has my demos at about 10 FPS. I think in the end I'll just have to either pick the proprietary NVIDIA or ATI and stick with one - or I do a separate OS install for each config.

Thanks again.
 
Old 08-16-2012, 01:05 PM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Maybe not what you want to hear, but wouldn't it be easier just to use a laptop for your presentations instead of doing this on your clients machines?
Even if you go for the dual-boot solution you may come across situations where your client has somewhat recent videocards that are nonetheless not supported by the proprietary drivers (more likely to happen with AMD drivers), leaving you with the vesa driver only, which will not run 3D applications.
 
1 members found this post helpful.
Old 08-16-2012, 01:30 PM   #14
zaczek
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I am actually doing this on a laptop but we are not allowed to alter out laptop configs and so the only solution we found was using an external drive. This is actually not a company or an educational institution..cough, cough. We've all been using Exceed-on-Demand (from a Windows PC) to connect to a centralized blade server and that has either had no graphics performance or poor graphics performance. Unfortunately we will be needing graphics eventually to do analysis so it seems like the best solution is for people to just install linux on external drives, but then it turned out that we had multiple hardware configs to deal with due to recent contract changes and we thought that Linux would save us all. I guess not.

I'm still surprised it is this difficult to get graphics to work properly on Linux, but I guess that's really no different than Windows - though there is less command line stuff you have to do in Windows.

BTW, I managed to kill my GLX extension somehow when I reinstalled the libGL and ligGLw...so now under NVIDIA I don't get the graphics demo to come up at all..sigh.
 
Old 08-16-2012, 01:34 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Most OSes are not made to constantly be run on changed hardware. There are many things involved. Even if you have two systems with the exactly same videocard they may end up as different PCI devices on different mainboards.
Maybe you should talk with your admins/bosses/whoever about the situation and that you are not able to do your work effectively under the current conditions.
 
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
Problem installing Nvidia 180.51 drivers for Nvidia Quadro 290 njfife Linux - Newbie 7 05-26-2011 04:45 AM
ATI or nVidia - who has best drivers atm? forrest44 Linux - Hardware 18 09-14-2009 10:31 AM
UNinstalling proprietry mandriva nVidia drivers and installing new nVidia drivers deathman Linux - Hardware 3 11-18-2006 05:10 AM
ATI vs NVIDIA Linux Drivers Synesthesia Linux - General 9 10-22-2005 09:15 PM
nvidia and ati drivers Palamides Linux - Laptop and Netbook 4 01-11-2005 02:23 AM

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

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