Re: NVidia on Severn2 -> It works.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2003-10-04 at 01:31, Kyle Ramsey wrote:

> Although it's not advised, I used the "IGNORE_CC_MISMATCH=yes" environment 
> variable without incident. It was quick, painless and the driver and system 
> work well.

Yes, I've been using it too without problem, but now that I know better,
I'm doing it the right way.  ;-)

For anyone who's interested, I'm attaching a script to automatically
update your NVIDIA driver if, when you boot up, the driver is detected
to have been invalidated (either thru an XFree86/Mesa upgrade or a
kernel upgrade), which has worked wonderfully for me with all the
changes in Rawhide lately.  Note that it requires kernel-source and
gcc32 installed to work, and the kernel now must be one compiled w/ gcc
3.2.

And don't be surprised it if it breaks, it's really not made to be super
robust.  ;-)

Install instructions are in the script's comments.

> 
> Good luck.
> 
> _________________________________________________________________
> Frustrated with dial-up? Get high-speed for as low as $29.95/month 
> (depending on the local service providers in your area).  
> https://broadband.msn.com
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> http://www.redhat.com/mailman/listinfo/fedora-list
-- 
Sean Middleditch <elanthis@xxxxxxxxxxxxxxx>
AwesomePlay Productions, Inc.
#!/bin/sh
# chkconfig: 5 90 90
# description: Auto-updates NVIDIA driver.

# NVIDIA driver auto-update for Red Hat 9 and Fedora Core
# This code is released in the public domain.
# Original author: Sean Middleditch <elanthis@xxxxxxxxxxxxxxx>

# ** Warning: **
# This softwate could completely hose your system, delete all your data,
# send your personal information to Microsoft Corporation, or mail pictures
# of you in a tutu to all your friends.  USE THIS SOFTWARE AT YOUR OWN RISK!

# INSTALL:
# 1) Make executable: chmod +x nvidia-driver
# 2) Put in init.d: cp nvidia-driver /etc/init.d/
# 3) Add to startup: /sbin/chkconfig --add nvidia-driver

. /etc/init.d/functions

MODPROBE='/sbin/modprobe'
NVIDIA_INSTALLER='/usr/bin/nvidia-installer'
NVIDIA_MODULE='nvidia'

case $1 in 
	start)
		echo -n $"Loading the NVIDIA driver: "	
		OK='yes'

		# do we *have* nvidia-installer?
		if ! test -x "$NVIDIA_INSTALLER" ; then
			echo_warning
			echo
			echo "The NVIDIA driver does not appear to be installed."
			exit 1
		fi

		# sanity test
		if ! "$NVIDIA_INSTALLER" -s --sanity >/dev/null 2>&1 ; then
			OK='no'

		# try to load driver
		elif ! "$MODPROBE" "$NVIDIA_MODULE" ; then
			OK='no'
		fi

		# rebuild!
		if test "x$OK" != "xyes" ; then
			echo_warning
			echo

			echo -n $"Rebuilding the NVIDIA driver: "

			# try rebuild - RH uses GCC3.2
			if ! CC=gcc32 "$NVIDIA_INSTALLER" -s -f >/dev/null 2>&1 ; then
				echo_failed
				echo "Could not rebuild the NVIDIA driver; see /var/log/nvidia-installer.log for details."
				exit 1

			# try loading it now
			elif ! "$MODPROBE" nvidia >> /var/log/nvidia-installer.log 2>&1 ; then
				echo_failed
				echo "Could not rebuild the NVIDIA driver; see /var/log/nvidia-installer.log for details."
				exit 1
			fi
		fi

		# yay!
		echo_success
		echo
	;;
	stop)
	;;
esac

exit 0

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux