Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-06-05, 01:44 PM   #13
ravalox
Registered User
 
Join Date: Aug 2004
Posts: 18
Default Re: Doom3 and linux, why doesn't this work?

Okay, this sounds like good information! I've never messed around with graphics libraries while I'm in flight, how would I go abut swapping this out. Should I uninstall the nvidia drivers and then reinstall them or can this be resolved by just copying over/deleting files on the file system?
ravalox is offline   Reply With Quote
Old 04-06-05, 05:07 PM   #14
erek
 
erek's Avatar
 
Join Date: Jan 2004
Location: USA
Posts: 220
Send a message via ICQ to erek Send a message via AIM to erek
Default Re: Doom3 and linux, why doesn't this work?

try using your distribution's method of uninstalling/installing the driver first.. otherwise just try using the .run itself manually... generally the distribution installs things where it wants them..and other things specific to their design..
__________________
[b]Linux localhost 2.6.11 #3 Sat Mar 19 14:50:03 EST 2005 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux[/b][center]
[color=blue]EPoX 9NDA3+ Socket 939 nForce 3 Ultra[/color][b] * [/b][color=blue]2x 512MB Mushkin Dual Basic PC3200 (@ CAS 2.0-3-3-6 1T)[/color][b] * [/b][color=blue]"BFG" GeForce 6800 GT "OC" (@OEM 370/1000)[/color][b] * [/b][color=blue]LSI Logic Ultra 160 SCSI-3 Single Channel 64-Bit Controller[/color][b] * [/b][color=blue]Creative Labs Soundblaster Audigy[/color][b] * [/b][color=blue]Intel Pro 100 S Desktop adapter[/color][b] * [/b][color=blue]Seagate Cheetah 15k.3 18GiB 15K RPM Ultra 320[/color][b] * [/b][color=blue]Seagate Cheetah X15 36LP 18GiB 15K RPM Ultra 160[/color][b] * [/b][color=blue]Samsung Spinpoint 40GiB 5400 RPM ATA100[/color][b] * [/b][color=blue]Samsung 48X ATA33 CD-ROM.[/color][/center][indent]
[b]Kernel[/b]: Vanilla [url="http://frozenarctic.com/erek/SERENA.txt"][u]2.6.11[/u][/url].
[b]Settings[/b]: 4kB stacks, regparm, pre-emptive, deadline i/o scheduler, fast writes on, sideband addressing on.
[b]Video/Sound drivers[/b]: NVIDIA x86-1.0-7174 / ALSA 1.0.9_rc3[/indent]
erek is offline   Reply With Quote
Old 04-06-05, 08:57 PM   #15
ravalox
Registered User
 
Join Date: Aug 2004
Posts: 18
Default Re: Doom3 and linux, why doesn't this work?

Quote:
Originally Posted by ifog
Do you have severals libGL.so ? (ie one in /usr/lib and one in /usr/X11R6/lib )
I do indeed have two libGL.so files in those two locations. I will try to remove the nvidia driver and see which one it deletes.
ravalox is offline   Reply With Quote
Old 04-07-05, 03:15 AM   #16
jlo
Registered User
 
Join Date: Mar 2005
Posts: 17
Default Re: Doom3 and linux, why doesn't this work?

I noticed same thing on my system, FC3:

$ ldd `which glxinfo` | grep GL
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x00876000)
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x00757000)
$ rpm -qf /usr/X11R6/lib/libGL.so.1
xorg-x11-Mesa-libGL-6.8.2-1.FC3.13
$ locate libGL.so.1
/usr/lib/libGL.so.1.0.7167
/usr/lib/libGL.so.1
/usr/X11R6/lib/libGL.so.1
/usr/X11R6/lib/libGL.so.1.2
$ rpm -qf /usr/lib/libGL.so.1
xorg-x11-Mesa-libGL-6.8.2-1.FC3.13
$ rpm -qf /usr/lib/libGL.so.1.0.7167
file /usr/lib/libGL.so.1.0.7167 is not owned by any package

There used to be init.d script to check and change settings between using nv or nvidia driver easily in FC2. I don't know where it came from, from nVidia package or from some 4th party rpm-package.
It worked simply by saying:
nvidia-<something> [enable|disable]
and it changed then "Driver" key in /etc/X11/Xorg.conf and also softlinking of libGl.so.* files so either one, Mesa or nVidia was in use.

Anyone know where to get that script or what sript it was? I reinstalled FC3 from scratch so don't have any more clues what it was.
jlo is offline   Reply With Quote
Old 04-07-05, 03:49 AM   #17
erek
 
erek's Avatar
 
Join Date: Jan 2004
Location: USA
Posts: 220
Send a message via ICQ to erek Send a message via AIM to erek
Default Re: Doom3 and linux, why doesn't this work?

xorg-x11-Mesa-libGL-6.8.2-1.FC3.13

that seems like a bad idea to mix with NVIDIA libs
__________________
[b]Linux localhost 2.6.11 #3 Sat Mar 19 14:50:03 EST 2005 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux[/b][center]
[color=blue]EPoX 9NDA3+ Socket 939 nForce 3 Ultra[/color][b] * [/b][color=blue]2x 512MB Mushkin Dual Basic PC3200 (@ CAS 2.0-3-3-6 1T)[/color][b] * [/b][color=blue]"BFG" GeForce 6800 GT "OC" (@OEM 370/1000)[/color][b] * [/b][color=blue]LSI Logic Ultra 160 SCSI-3 Single Channel 64-Bit Controller[/color][b] * [/b][color=blue]Creative Labs Soundblaster Audigy[/color][b] * [/b][color=blue]Intel Pro 100 S Desktop adapter[/color][b] * [/b][color=blue]Seagate Cheetah 15k.3 18GiB 15K RPM Ultra 320[/color][b] * [/b][color=blue]Seagate Cheetah X15 36LP 18GiB 15K RPM Ultra 160[/color][b] * [/b][color=blue]Samsung Spinpoint 40GiB 5400 RPM ATA100[/color][b] * [/b][color=blue]Samsung 48X ATA33 CD-ROM.[/color][/center][indent]
[b]Kernel[/b]: Vanilla [url="http://frozenarctic.com/erek/SERENA.txt"][u]2.6.11[/u][/url].
[b]Settings[/b]: 4kB stacks, regparm, pre-emptive, deadline i/o scheduler, fast writes on, sideband addressing on.
[b]Video/Sound drivers[/b]: NVIDIA x86-1.0-7174 / ALSA 1.0.9_rc3[/indent]
erek is offline   Reply With Quote
Old 04-07-05, 06:18 AM   #18
Thoreau
Registered User
 
Join Date: Dec 2002
Posts: 95
Default Re: Doom3 and linux, why doesn't this work?

As posted above. Remove the Mesa GL drivers. They overwrite the Nvidia libGL.so's. You don't need them.
Thoreau is offline   Reply With Quote
Old 04-07-05, 06:56 AM   #19
jlo
Registered User
 
Join Date: Mar 2005
Posts: 17
Default Re: Doom3 and linux, why doesn't this work?

Quote:
Originally Posted by Thoreau
As posted above. Remove the Mesa GL drivers. They overwrite the Nvidia libGL.so's. You don't need them.
Yes I do, because I have to restart X11-Windows back and forth between "nv" and "nvidia" drivers due to the fact "nvidia" driver doesn't allow to use rivatv and Video-In feature of the card. So when I need 3D, I have "nvidia" driver in use, and when I need Video-In and not especially good 3D performance, I have "nv" driver in use. Lately I've been using "nvidia" driver only with games and "nv" driver otherwise, because Video-in feature is important for me.

Or does the nVidia libGL libraries work with "nv" driver as well?

I think I cannot remove the Mesa libGLs, but some kind of soft linking script would easily switch between "nv" and "nvidia" configuration. Or then keep Mesa rpm available in /usr/src/redhat/RPMS/ and use "rpm -e --nodeps" and "rpm -i" to switch between them.

Have I meantioned, it sucks not to be able to use video in grabber with nvidia-driver?!
It is though easier and quicker to restart X11 than to reboot machine between MS-Windows and Linux.
jlo is offline   Reply With Quote
Old 04-07-05, 07:16 AM   #20
jlo
Registered User
 
Join Date: Mar 2005
Posts: 17
Default Re: Doom3 and linux, why doesn't this work?

I made the script which seem to work for me:

/usr/local/sbin/nvidia-use

#!/bin/sh
# Usage: nvidia-use <enable|disable>
# Switch between nvidia and nv use. You need to restart X for "nv"
# (c) GPL by jlo
VERSION="2005.04.07"

if [ "$1" == "enable" ]; then
ln -f -s ../../lib/libGL.so.1.0.7167 /usr/X11R6/lib/libGL.so.1
ln -f -s ../../lib/libGL.so.1.0.7167 /usr/X11R6/lib/libGL.so
perl -pe 's/^\s+Driver\s+\"nv\"\s*$/\tDriver "nvidia"\n/;' -i /etc/X11/xorg.conf
else
ln -f -s libGL.so.1.2 /usr/X11R6/lib/libGL.so.1
ln -f -s libGL.so.1.2 /usr/X11R6/lib/libGL.so
perl -pe 's/^\s+Driver\s+\"nvidia\"\s*$/\tDriver "nv"\n/;' -i /etc/X11/xorg.conf
fi

test:

# nvidia-use enable
$ ldd `which glxgears`|grep GL;ls -l /usr/X11R6/lib/libGL.so.1
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x00d5d000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x071b8000)
lrwxrwxrwx 1 root root 27 Apr 7 14:13 /usr/X11R6/lib/libGL.so.1 -> ../../lib/libGL.so.1.0.7167

# nvidia-use disable
$ ldd `which glxgears`|grep GL;ls -l /usr/X11R6/lib/libGL.so.1
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x00757000)
lrwxrwxrwx 1 root root 12 Apr 7 14:13 /usr/X11R6/lib/libGL.so.1 -> libGL.so.1.2

Disclaimer: This of course doesn't work if /usr is mounted read only, as it should be able to be. Would have to fiddle with /usr/local/lib to make it _right_.
jlo is offline   Reply With Quote

Old 04-07-05, 07:38 PM   #21
Thoreau
Registered User
 
Join Date: Dec 2002
Posts: 95
Default Re: Doom3 and linux, why doesn't this work?

I didn't know you were using that feature. My mistake.

Yea, you are in a tough spot with vid-in for this chipset. Reading through the forums, nvidia has said they would support it later if more people complained. I guess whining is always an option. You have a nice card, and it's a shame that the driver is gimped when it's available in GPL'd form.
Thoreau is offline   Reply With Quote
Reply


Thread Tools

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
Forum Jump


All times are GMT -5. The time now is 07:19 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.