On Tuesday 29 November 2005 10:46, ashley maher wrote:
> G'day,
>
> Distro: Ubuntu Breezy amd64
>
> I made the mistake of upgrading my kernel and the nvidia package a
> couple of days ago using ubuntu packages.
>
> >From the logs:
>
> Script started on Tue 29 Nov 2005 10:23:49 EST
> [EMAIL PROTECTED]:~$ more /var/log/gdb[Km/\:0.log
>
> <snip>
>
> Error: API mismatch: the NVIDIA kernel module is version 1.0.7174, but
> this X module is version 1.0.7667. Please be sure that your kernel
> module and all NVIDIA driver files have the same driver version.
>
> <snip>
>
> Script done on Tue 29 Nov 2005 10:24:37 EST
>
>
> Hints on fixing this one greatfully received.
Welcome to the "binary drivers are not evil" lie :P As Matt has suggested,
your kernel module was compiled for the 7174 NVidia driver, but your driver
is 7667. You don't happen to have a TNT2 card do you? These require the
older (7174 IIRC) driver as NVidia dropped support for it after that.
If you card is more recent (Geforce et al) then you need to install the
restricted kernel modules, OR remove all the Ubuntu NVidia packages, download
the NVidia driver from www.nvidia.com (it comes with its own installer) and
install it by hand.
I opted for the latter option on my AMD64+FX5700 machine as the manual install
process is simple, and kernel revisions don't change that regularly with
Ubuntu. Keep in mind that the default gcc on Ubuntu Breezy is gcc-4 BUT the
kernel was compiled with gcc-3.4. You'll need to "export
CC=/usr/bin/gcc-3.4" BEFORE running the NVidia installer (via sudo).
Here's a short(ish) checklist:
Option #1 - Use Ubuntu Packages ("sudo apt-get install <package>" - #1-#3):
0. Shutdown Xserver and KDM/GDM/XDM/etc
1. linux-restricted-modules-2.6.12-10-386 (substitute "-386" for your arch)
2. nvidia-glx
3. nvidia-kernel-common
4. Restart Xserver (see #8 below)
Option #2 - Use NVidia's Driver + Installer
0. Shutdown Xserver and KDM/GDM/XDM/etc
1. Uninstall packages from #1 with the "--purge" option:
sudo apt-get --purge remove <packages>
2. Remove existing NVidia kernel module:
sudo modprobe -rv nvidia
3. Download the latest NVidia driver (assuming you don't have a TNT2)
4. Install gcc 3.4:
sudo apt-get install gcc-3.4 gcc-3.4-base
5. Set CC environment variable:
export CC=/usr/bin/gcc-3.4
6. Run the NVidia installer:
sudo sh /path/to/nvinstaller
7. Assuming #6 went OK, load the nvidia kernel module:
sudo modprobe -v nvidia
8. Restart your Xserver:
startx or,
sudo /etc/init.d/gdm start (or kdm/xdm/... etc)
Voila!
Have fun,
James
--
QOTD:
"It's hard to tell whether he has an ace up his sleeve or if
the ace is missing from his deck altogether."
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html