Well, finally, the drivers issues I met first, quite a while ago, on Fedora Core 3 have… just got bigger. To make a long story short, Fedora 12 comes with a new driver called “nouveau” (actually, it’s not exactly new, it was already here in some previous versions but didn’t cause problems yet) which loads itself very early during the boot, preventing another driver from taking its place. As more accurate details may be found on the previous tutorials (FC3 Fedora 11), I’ll just list the steps (and only detail the new ones).
- Get the required dependencies:
yum install kernel-devel gcc
- Grab the proper NVIDIA drivers there
- Get rid of nouveau. That’s the hard part. I found several methods but none of them worked. Most notably, most or all of them required me to install NVIDIA’s drivers (they propose to use the RPM Fusion repository, but I wanted to use the drivers straight from nvidia.com, in order to be more easily up-to-date) then follow some instructions to make it beat nouveau. The problem is: NVIDIA’s drivers from nvidia.com refused to install with nouveau already running, so I had to kill it first. The solution I found was:
- blacklist it: edit
/etc/modprobe.d/blacklist.conf
and addblacklist nouveau
at the end - blacklist it again in Grub: edit
/boot/grub/menu.lst
and addrdblacklist=nouveau
at the end of the line starting with “kernel” in the proper section (NB: I have this file because I’m using Grub from an old Ubuntu installation, but I was told that Fedora 12 uses Grub 2, which has a totally different configuration file structure… I don’t know it, sorry) - set the default init level to 3 (otherwise, nouveau will load when the GUI gets loaded): edit
/etc/inittab
and replaceid:5:initdefault:
withid:3:initdefault:
This is the only working solution I found. As long as the GUI gets loaded, nouveau will get loaded too and the NVIDIA drivers will refuse to install. You will easily know if nouveau is loaded by the size of the font in the console: if it’s a large font it’s okay, if it’s a small font because the console is like in high-resolution, you did something wrong and most likely NVIDIA’s drivers will refuse to install
- blacklist it: edit
- reboot
- run the NVIDIA drivers installer (during the process, when it asks you whether it should try to update config files, say yes)
- reboot
You’re now done. I chose to let the default init level to 3 because with every kernel update we have to reinstall the NVIDIA drivers (the version installed for the previous kernel will crash with a various severity, most likely preventing you from running the installer). To load the graphical desktop after booting in init level 3, just log in as root and type init 5
.
Sources I used:
- Fedora 12 – Nouveau + Nvidia Driver Solution
- Howto install nVidia driver on Fedora 12 (and just disable the nouveau driver)
- RPM fusion – nVidia – Nouveau compatibility
- RPM fusion – nVidia – Fedora 12
- Gnome Fedora 12 (Xorg 1.7.1) + 190.42 + Xv = instability
- Installing the Drivers as Provided by nVidia
Update (20 June 2010): added dependencies, this also works for Fedora 13.
Update (7 December 2010): this should work for Fedora 14 too but I didn’t test it, notably I don’t know if they finally used Grub 2 or if they’re still on the much easier Grub 1.
Regards GRUB version, Fedora 12 (and also the recently-released openSUSE 11.2) both use legacy GRUB (i.e. version 0.97). Of recent releases, only Ubuntu 9.10 ( and maybe Mint 8 ?) use the new GRUB2.
However GRUB2 at the moment is considered beta-software: see at http://www.dedoimedo.com/computers/grub-2.html
Thanks for the precision, I updated the post. It’s funny how for once Ubuntu uses brand new (and even still beta…) software while even Fedora sticks to the latest stable…
– after booting as described in your post:
# find /lib/modules/$(uname -r) -iname nouveau.ko -exec mv "{}" "{}.disabled" \;
this will disable the module for the current running kernel; after rebooting, there won’t be any more nouveau.
of course, every time you upgrade your kernel you will need to do this again.
Thanks for this posting — what a pain it was to get the nVidia proprietary legacy drivers installed (old Vanta card), but your post saved me 🙂
THANK YOU FOR POSTING THIS!!!!!!!! I have been making slow progress getting these two GeForce 9500GT’s working with Fedora 12.