PDA

View Full Version : Nvidia users - avoid kernel.2.6.23.1-10



beartech
30th October 2007, 02:38 PM
Hi there, a warning to people trying to install the latest kernel who have Nvidia cards;

there seems to be a problem when trying to compile the Nvidia drivers (as supplied by Nvidia and not by livna; so I suspect the kmod guys will be scratching their heads) against the 2.6.23.1-10 release.

I've backed out to the 2.6.22.9-91 version and will await developments before installing any more updates, I suggest that other Nvidia users do the same.

--Simon Fonceca
Beartech Ltd

Lindy
30th October 2007, 02:49 PM
The kmod-nvidia package is now available for the 2.6.23 kernel

leigh123linux
30th October 2007, 02:51 PM
The kmod-nvidia package is now available for the 2.6.23 kernel

They have been available for a couple of months now


[root@localhost ~]# rpm -qa | grep nvidia
kmod-nvidia-100.14.19-14.lvn8
kmod-nvidia-2.6.23.1-30.fc8-100.14.19-12.lvn8
xorg-x11-drv-nvidia-libs-32bit-100.14.19-3.lvn8
kmod-nvidia-2.6.23.1-37.fc8-100.14.19-14.lvn8
xorg-x11-drv-nvidia-100.14.19-3.lvn8
kmod-nvidia-100.14.19-1.2.6.23.1_41.fc8
kmod-nvidia-2.6.23.1-35.fc8-100.14.19-13.lvn8
[root@localhost ~]# rpm -qa | grep kernel
kernel-2.6.23.1-37.fc8
kernel-2.6.23.1-30.fc8
kernel-headers-2.6.23.1-41.fc8
kernel-2.6.23.1-41.fc8
kernel-devel-2.6.23.1-41.fc8
kernel-2.6.23.1-35.fc8
[root@localhost ~]#


[leigh@localhost ~]$ rpm -qa | grep nvidia
kmod-nvidia-100.14.19-1.2.6.23.1_10.fc7
kmod-nvidia-100.14.19-1.2.6.23.1_4.fc7
xorg-x11-drv-nvidia-libs-32bit-100.14.19-3.lvn7
xorg-x11-drv-nvidia-100.14.19-3.lvn7
[leigh@localhost ~]$ rpm -qa | grep kernel
kernel-headers-2.6.23.1-10.fc7
kernel-2.6.23.1-4.fc7
kernel-devel-2.6.23.1-10.fc7
kernel-2.6.23.1-10.fc7
[leigh@localhost ~]$

I have been running kernel-2.6.23.1-10.fc7 since 2007-10-19 with no problems

beartech
30th October 2007, 03:28 PM
Thanks for the prompt replies.

but what happens to people NOT using kmod ? Does this mean that (effectively) the 2.6.23.xxx and above kernels will no longer compile with the NVIDIA supplied (legacy) drivers and that users are then forced to adopt livna ?

(The only reason I've not installed the livna drivers is because I'm worried about losing my screen completely - debugging/internet-access whilst in text mode is not my idea of fun.)

Couple this with the fact that I found out (the hard way) when initially trying to install my graphics card that the X11 configuration (gnome-controls-somewhere? http://www.fedoraforum.org/forum/showthread.php?t=170398
) didn't alter xorg.conf; I lost confidence in sitting back and letting someone else render this machine unusable - I can do that myself quite nicely- thank you.

But this only confuses me - how can I upgrade to the livna drivers it in such a way that if it fails, I can fall-back to the manufacturer's supplied drivers ?

--Simon

leigh123linux
30th October 2007, 05:26 PM
Thanks for the prompt replies.

but what happens to people NOT using kmod ? Does this mean that (effectively) the 2.6.23.xxx and above kernels will no longer compile with the NVIDIA supplied (legacy) drivers and that users are then forced to adopt livna ?

(The only reason I've not installed the livna drivers is because I'm worried about losing my screen completely - debugging/internet-access whilst in text mode is not my idea of fun.)

Couple this with the fact that I found out (the hard way) when initially trying to install my graphics card that the X11 configuration (gnome-controls-somewhere? http://www.fedoraforum.org/forum/showthread.php?t=170398
) didn't alter xorg.conf; I lost confidence in sitting back and letting someone else render this machine unusable - I can do that myself quite nicely- thank you.

But this only confuses me - how can I upgrade to the livna drivers it in such a way that if it fails, I can fall-back to the manufacturer's supplied drivers ?

--Simon

I don't think they will ever do a module for the legacy driver

nick.stumpos
30th October 2007, 06:27 PM
im running the nvidia drivers with 2.6.23 over here, its a vanilla kernel though, so it must be a fedora specific patch thats causing the problem

baffa
31st October 2007, 06:18 PM
Ive got the 2.6.23.1-10.fc7 kernel and the exact same problem however i think as the nvidia driver installer compiles the kernel right, and so needs to have access to the source. I dont believe there is an available kernel-source rpm right now so thats a bit poo!!! until then i think people using the proprietary drivers will have to wait till there is one! thats the conclusin ive come to please correct me if im wrong tho! :)

leigh123linux
31st October 2007, 06:21 PM
please correct me if im wrong tho! :)
Wrong :)

try

su
yum install kernel-devel



[leigh@localhost ~]$ rpm -qa | grep kernel
kernel-headers-2.6.23.1-10.fc7
kernel-2.6.23.1-4.fc7
kernel-devel-2.6.23.1-10.fc7
kernel-2.6.23.1-10.fc7
[leigh@localhost ~]$

FriedChips
31st October 2007, 06:21 PM
sure there is source available for compiling from:

yum install kernel-devel

baffa
31st October 2007, 07:17 PM
oh damn it :(

oh ok well when i try and compile the "nvidia kernel" it seems to screw up and say that this could not be compiled. What the hell? so i tried doing the

yum install kernel-devel and that updated from previos kernel, but why wont the nvidia kernel compile? it was working fiine till i updated

beartech
31st October 2007, 07:19 PM
Ive got the 2.6.23.1-10.fc7 kernel and the exact same problem however i think as the nvidia driver installer compiles the kernel right, and so needs to have access to the source. I dont believe there is an available kernel-source rpm right now so thats a bit poo!!! until then i think people using the proprietary drivers will have to wait till there is one! thats the conclusin ive come to please correct me if im wrong tho! :)

That's what I was trying to get across; on my system I'm using the kernel to compile the drivers from (to produce nvidia.ko)

What I was attempting to say was that the kernel itself was the problem here, changes introduced in the 2.6.23.xx code causes black-box code to fail and is therefore not backward compatable. What looks to me like a show-stopping API change in the kernel should not be given such a minor version number increase. Not acceptable in my book.


# rpm -qa | grep kernel
kernel-headers-2.6.23.1-10.fc7
kernel-2.6.23.1-10.fc7
kernel-devel-2.6.23.1-10.fc7
kernel-2.6.22.9-91.fc7
kernel-devel-2.6.22.9-91.fc7

leigh123linux
31st October 2007, 07:21 PM
oh damn it :(

oh ok well when i try and compile the "nvidia kernel" it seems to screw up and say that this could not be compiled. What the hell? so i tried doing the

yum install kernel-devel and that updated from previos kernel, but why wont the nvidia kernel compile? it was working fiine till i updated

What nvidia version are you trying to compile ?

beartech
31st October 2007, 07:54 PM
NVIDIA-Linux-x86-1.0-9639-pkg1.run

leigh123linux
31st October 2007, 08:03 PM
NVIDIA-Linux-x86-1.0-9639-pkg1.run

This driver pre dates the 2.6.23 kernel so it would need patching to compile with the new kernel.

There is a patched driver available from livna now

http://livna-dl.reloumirrors.net/fedora/7/i386/kmod-nvidia-96xx-96.43.01-1.2.6.23.1_10.fc7.i686.rpm


http://livna-dl.reloumirrors.net/fedora/7/i386/xorg-x11-drv-nvidia-96xx-96.43.01-1.lvn7.i386.rpm

bradchaus
31st October 2007, 11:41 PM
why be frightened of livna? ... its kmod-nvidia rpm is tailored for fedora, and does not kludge over files like the vanilla nvidia tar does.

ryptyde
1st November 2007, 12:56 AM
I used to build nvidia kmods when I was running FC5 but when the pre-builts became available from Livna for FC6 and F7 and now F8 it is just a yum away.


$ rpm -qa | grep kernel
kernel-xen-devel-2.6.20-2936.fc7
kernel-xen-2.6.20-2936.fc7
kernel-xen-2.6-doc-2.6.20-2936.fc7
kernel-debug-devel-2.6.22.9-91.fc7
kernel-headers-2.6.23.1-10.fc7
kernel-xen-devel-2.6.20-2934.fc7
kernel-devel-2.6.23.1-10.fc7
kernel-xen-2.6.20-2934.fc7
kernel-devel-2.6.22.9-91.fc7
kernel-doc-2.6.23.1-10.fc7
kernel-2.6.23.1-10.fc7
kernel-debug-devel-2.6.23.1-10.fc7


$ rpm -qa | grep nvidia
kmod-nvidia-100.14.19-1.2.6.23.1_10.fc7
xorg-x11-drv-nvidia-100.14.19-3.lvn7
xorg-x11-drv-nvidia-devel-100.14.19-3.lvn7
kmod-nvidia-100.14.19-1.2.6.22.9_91.fc7

baffa
1st November 2007, 02:11 PM
i was trying to compile the x86_64-100.14.11 driver however i found this morning that Nvidia had released a new driver a week or so ago (i forget how long now) the 100.14.19, so i thought screw it, give it ago. Cleaned anything that was to do with Nvidia and installed this new driver. Worked first time no worries. ive run the glxgears and compiled and run some of my own OpenGL code and they ran fine so all is good!

Check this out for more info:

http://www.nvnews.net/vbulletin/showthread.php?t=98635

Edit:

Oh ye i forgot to mention i am using the proprietary drivers because i need to program in CUDA for my uni project, id assume that the livna drivers wouldnt work with this? I have no quibbles with livna drivers as i used them on on my machine with a 7 series GPU in and they work all gravy, with beryl and what not.

leigh123linux
1st November 2007, 02:26 PM
i was trying to compile the x86_64-100.14.11 driver however i found this morning that Nvidia had released a new driver a week or so ago (i forget how long now) the 100.14.19, so i thought screw it, give it ago. Cleaned anything that was to do with Nvidia and installed this new driver. Worked first time no worries. ive run the glxgears and compiled and run some of my own OpenGL code and they ran fine so all is good!

Check this out for more info:

http://www.nvnews.net/vbulletin/showthread.php?t=98635

Edit:

Oh ye i forgot to mention i am using the proprietary drivers because i need to program in CUDA for my uni project, id assume that the livna drivers wouldnt work with this? I have no quibbles with livna drivers as i used them on on my machine with a 7 series GPU in and they work all gravy, with beryl and what not.

The livna driver is built from 100.14.19 and has exactly the same functions

beartech
1st November 2007, 09:01 PM
This driver pre dates the 2.6.23 kernel so it would need patching to compile with the new kernel.

There is a patched driver available from livna now

http://livna-dl.reloumirrors.net/fedora/7/i386/kmod-nvidia-96xx-96.43.01-1.2.6.23.1_10.fc7.i686.rpm


http://livna-dl.reloumirrors.net/fedora/7/i386/xorg-x11-drv-nvidia-96xx-96.43.01-1.lvn7.i386.rpm

I'll give this a try .... but if you don't hear back it'll be because my system is having to be rebuilt from scratch. :eek:

later....



Well, that didn't work.... & now I've lost openGL for both kernel versions (at least I do get a GUI on the old kernel) .

I installed the kmon-nvidia and that went in OK
yum.log:-
Nov 01 20:09:03 Installed: livna-config-display - 0.0.18-1.lvn7.noarch
Nov 01 20:09:30 Installed: kmod-nvidia - 100.14.19-1.2.6.23.1_10.fc7.i686
Nov 01 20:10:17 Installed: xorg-x11-drv-nvidia - 100.14.19-3.lvn7.i386

Xorg.o.log.old :-
(II) Primary Device is: PCI 01:00:0
(WW) NVIDIA(0): The NVIDIA GeForce2 MX/MX 400 GPU installed in this system is
(WW) NVIDIA(0): supported through the NVIDIA 96.43.xx Legacy drivers.
(WW) NVIDIA(0): Please visit http://www.nvidia.com/object/unix.html for
(WW) NVIDIA(0): more information. The 100.14.19 NVIDIA driver will ignore
(WW) NVIDIA(0): this GPU. Continuing probe...
(EE) No devices detected.

ARGHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!


This is EXACTLY why I didn't want to move to livna.

beartech
1st November 2007, 11:05 PM
Ok, I managed to fix it by getting the latest drivers from NVIDIA (I've yet to purge kmod-nvidia since that does not work for me).


Drivers from NVIDIA (http://www.nvidia.com/object/linux_display_x86_96.43.01.html)

I then booted into the latest kernel, let it crash gdm, run the drivers package (which compile OK) & gdm-restart


Kudos to baffa for pointing me in the right direction.

--Simon

beartech
2nd November 2007, 03:53 PM
Ok, I managed to fix it by getting the latest drivers from NVIDIA (I've yet to purge kmod-nvidia since that does not work for me).


Drivers from NVIDIA (http://www.nvidia.com/object/linux_display_x86_96.43.01.html)

I then booted into the latest kernel, let it crash gdm, run the drivers package (which compile OK) & gdm-restart


Kudos to baffa for pointing me in the right direction.

--Simon

Oh well, spoke too soon.

The installation did not survive a cold restart (not a clue why) and I've spent most of today trying to get both kernels up.

what I found worked (I hope) was to deinstall kmod-nvidia and xorg-x11-drv-nvidia as well as yum-protectbase (I'm unsure if the latter removal is necessary); booting into each of the kernels and running NVIDIA-Linux-x86-96.43.01-pkg1.run against each of them.

After several attempts, I managed to get both kernels to function and they both seem to survive hot-restarts. I'm going to leave it until tomorrow before testing the cold-restarts (wasted far too much time over this already).



[reboot ... X server crashes]
[CTRL-ALT-1] # switch to command window
[log into root]
init 3 # change to runlevel 3; stopping gdm
sh NVIDIA-Linux-x86-96.43.01-pkg1.run # build the drivers
init 5 # or reboot

northcornice
3rd November 2007, 05:21 AM
Works fine for me.


Northcornice :D

beartech
3rd November 2007, 02:02 PM
Works fine for me.


Northcornice :D

Well it works for me now, after 48 hours of frustration and compilations, just a friendly warning for those with older machines - upgrade to the latest Nvidia patch if you need to.

Offending Hardware:-
nVidia Corporation NV11 [GeForce2 MX/MX 400]

lordamus
6th November 2007, 04:36 PM
I installed latest kernel 23.1.10 via yum then my x server crashed it doesnt find nvidia kernel module also kmod-nvidia-100.14.19-1.2.6.23.1_10.fc7 installed.. Whats the prblem ? I can boot with 22.9_91 kernel without prblems..

kafros
7th November 2007, 08:03 PM
When i turn on my pc i get a warning saying that nvidia.ko for kernel 2.6.23.1-10.fc7 was not loaded or was not found or something like that (i couldn't read it all it went out too fast) i tried reinstalling the drivers but i got an error message on yum (it said Another app is currently holding the yum lock; waiting for it to exit)
what can i do about the drivers? also it seems like gnome is disabled because the windows cannot be moved my workspaces are gone.. :S

Captn
9th November 2007, 06:44 AM
When I Shut down X & type nvidia-config-display enable Im getting bash: nvidia-config-display: command not found. Is there another command to enable the livna nvidia drivers? Thank you in advance.


I used this to go by: http://www.fedorafaq.org/#nvidia

leadgolem
9th November 2007, 06:57 AM
One thing I don't think has been mentioned here yet. You absolutely have to restart the system after installing the nvidia driver for it to work correctly. Regardless of how you installed it.

If your not sure that the driver is setup for use open system/admin/display/ Hardware tab. Click configure next to video card. If nvidia - Vendor-supplied driver for nvidia cards, is highlighted then your system is setup to use the nvidia proprietary driver.

Also, there is a bug in the livna nvidia packaging method that may not alway get all the pieces you need to run the driver. This is not a problem for Fedora 7 or earlier. So, you may want to make sure you have everything installed.
yum install kmod-nvidia xorg-x11-drv-nvidia kmod-nvidia-2.6.23.1-42.fc8 livna-config-displayRemeber to change the kernel version in kmod-nvidia-2.6.23.1-42.fc8 if "uname -r" does not show "2.6.23.1-42.fc8".

jcopenhaver
11th November 2007, 12:09 AM
It didn't work for me...

[root@k-r-m ~]# uname -r
2.6.23.1-42.fc8
[root@k-r-m ~]# yum install kmod-nvidia xorg-x11-drv-nvidia kmod-nvidia-2.6.23.1-42.fc8 livna-config-display
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package kmod-nvidia-2.6.23.1-42.fc8.x86_64 0:100.14.19-17.lvn8 set to be updated
---> Package livna-config-display.noarch 0:0.0.19-1.lvn8 set to be updated
---> Package xorg-x11-drv-nvidia.x86_64 0:100.14.19-4.lvn8 set to be updated
---> Package kmod-nvidia.x86_64 0:100.14.19-18.lvn8 set to be updated
--> Processing Dependency: kmod-nvidia-2.6.23.1-49.fc8 for package: kmod-nvidia
--> Running transaction check
---> Package kmod-nvidia-2.6.23.1-49.fc8.x86_64 0:100.14.19-18.lvn8 set to be updated
--> Processing Dependency: kernel-x86_64 = 2.6.23.1-49.fc8 for package: kmod-nvidia-2.6.23.1-49.fc8
--> Finished Dependency Resolution
Error: Missing Dependency: kernel-x86_64 = 2.6.23.1-49.fc8 is needed by package kmod-nvidia-2.6.23.1-49.fc8
[root@k-r-m ~]#

beartech
11th November 2007, 02:24 AM
One thing I don't think has been mentioned here yet. You absolutely have to restart the system after installing the nvidia driver for it to work correctly. Regardless of how you installed it.

Erm..... I didn't have to and it worked for me.

I did close down gdm by changing runlevels (init 3)during install and changing back after (init 5) but I'm not using the kmod package at this time (partly after having had problems with it, but mainly so that I do not have to go online to rebuild the drivers)

--Simon

leadgolem
11th November 2007, 05:55 AM
It's not that the drive won't load at all. It's that it won't work exactly right. It seems like not all the config files are loaded properly when you init 3, init 5. Or when you ctrl+alt+backspace.
Error: Missing Dependency: kernel-x86_64 = 2.6.23.1-49.fc8 is needed by package kmod-nvidia-2.6.23.1-49.fc8For some reason kmod-nvidia is pointing to a kernel version that is not yet available. At present I am unable to update my nvidia driver for the same reason.

EDIT:
Captn: If you want to run the livna configuration again later you can run "livna-config-display", but I think the livna package runs that automatically on installation anyway.

baffa
11th November 2007, 01:15 PM
ye im starting to think that it mite just be easier to get rid of any kmod nvidia stuffs and just get the nvidia drivers.

If u have tried to install the nvidia drivers take a look at this and use the uninstall command as shown in the readme which can be found here:

http://us.download.nvidia.com/XFree86/Linux-x86/100.14.19/README/chapter-04-section-04.html

Ive found that readme pretty handy in the past, even when first learning about all this linux wizardry!!

I forget now as i havn't done it for ages, use yum to get rid of the livna drivers i think. I would probably suggest that if theres been loads of hassle trying to get things to work then get rid start again. Thats probably what id do anyway. Then....

1. download the newest drivers from the nvidia website here:
http://www.nvidia.com/Download/index.aspx?lang=en-us

2. Make sure u have your kernel-devel package installed.
[CODE] yum install kernel-devel[\CODE]

3. Switch to run level 3 (i do this just by editing my GRUB boot line and sticking the number 3 on the end) and fire up the driver and all should be fine.

Im nt the most experienced linux user by any means but if i can help thats what i did :D

jcopenhaver
11th November 2007, 03:39 PM
I hope everyone has better luck than I did trying to use the nVidia drivers than I did. Even after doing everything baffa suggests, I still couldn't get their software to load. At first, it complained that it could not find the kernel-devel files. I had to look them up and specity their location in the sh command. It didn't like that either. It then started complaining about not finding kernel-source.

It has long since passed the point where I simply need to spend some additional money and get something that actually works.

baffa
11th November 2007, 04:30 PM
hmm that sounds like a bit similar to the messages i had. Ah damn it! it was a week or so ago i did this and ive forgotern exactly what happened now. I think (repeat think!), i did a yum remove on the previous kernel-devel as well as all the nvidia stuff aswell, when i got that error. Then installed the new kernel-devel again. It was almost when it updated it didnt update properly the first time and then once i did this it seemed to work fine.