Bug 1404

Summary: yum update to kernel 2.6.34.6-54 breaks nvidia graphics driver.
Product: Fedora Reporter: Tim Veldhuizen <tim>
Component: nvidia-kmodAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED WORKSFORME    
Severity: major CC: fedora, marco.peterseil, s.adam
Priority: P2    
Version: 13   
Hardware: All   
OS: GNU/Linux   
namespace:
Attachments: Xorg.log
dmesg

Description Tim Veldhuizen 2010-09-12 14:54:02 CEST
After an update to kernel 2.6.34.6-54 and a reboot, the system could no longer find the nvidia graphics kernel module (some .ko file?)
It works fine if I reboot again and choose the 2.6.34.6-47 kernel.

Assuming the file simply failed to install in the proper location, I won't give a lot of information that might all be irrelevant. Though, as the system reports that it could not find a file, maybe this might help:

[root@novastar /]# find -name *nvidia*ko
./lib/modules/2.6.33.8-149.fc13.i686/kernel/drivers/video/backlight/mbp_nvidia_bl.ko
./lib/modules/2.6.33.8-149.fc13.i686/kernel/drivers/video/nvidia/nvidiafb.ko
./lib/modules/2.6.34.6-54.fc13.i686/kernel/drivers/video/backlight/mbp_nvidia_bl.ko
./lib/modules/2.6.34.6-54.fc13.i686/kernel/drivers/video/nvidia/nvidiafb.ko
./lib/modules/2.6.34.6-47.fc13.i686/extra/nvidia/nvidia.ko
./lib/modules/2.6.34.6-47.fc13.i686/kernel/drivers/video/backlight/mbp_nvidia_bl.ko
./lib/modules/2.6.34.6-47.fc13.i686/kernel/drivers/video/nvidia/nvidiafb.ko

Could it be I'm missing a /lib/modules/2.6.34.6-54.fc13.i686/extra/nvidia/nvidia.ko ?
I don't know if it's wise to try to copy the file manually, as that file may actually depend on the 2.6.34.6-47 kernel and give some unexpected behaviour when applied on a 2.6.34.6-54 kernel.
Comment 1 Nicolas Chauvet 2010-09-12 21:25:26 CEST
Can you tell us which packages related to nvidia are installed on your system ?
rpm -qa xorg-x11-drv-nvidia\*
rpm -qa kmod-nvidia\*

Thx
Also, does it solve things if you do:
yum clean all && yum update
Comment 2 Tim Veldhuizen 2010-09-12 23:38:54 CEST
(In reply to comment #1)
> Can you tell us which packages related to nvidia are installed on your system ?
> rpm -qa xorg-x11-drv-nvidia\*
> rpm -qa kmod-nvidia\*
> 
> Thx
> Also, does it solve things if you do:
> yum clean all && yum update
> 

[tim@novastar ~]$ rpm -qa xorg-x11-drv-nvidia\*
xorg-x11-drv-nvidia-libs-256.53-1.fc13.i686
xorg-x11-drv-nvidia-256.53-1.fc13.i686

[tim@novastar ~]$ rpm -qa kmod-nvidia\*
kmod-nvidia-2.6.34.6-47.fc13.i686-256.53-1.fc13.i686

Hmm, I'm not sure, but that looks like I'm missing a kmod-nvidia-2.6.34.6-54, or doesn't it?

Will try the yum clean all && yum update now.. I'll have to reboot though, because I'm using kernel 2.6.34.6-47.
Comment 3 Tim Veldhuizen 2010-09-12 23:51:33 CEST
(In reply to comment #1)
> Can you tell us which packages related to nvidia are installed on your system ?
> rpm -qa xorg-x11-drv-nvidia\*
> rpm -qa kmod-nvidia\*
> 
> Thx
> Also, does it solve things if you do:
> yum clean all && yum update
> 

[root@novastar tim]# yum -v clean all
Not loading "blacklist" plugin, as it is disabled
Loading "presto" plugin
Loading "refresh-packagekit" plugin
Not loading "whiteout" plugin, as it is disabled
Config time: 0.055
Yum Version: 3.2.28
Cleaning repos: adobe-linux-i386 fedora livna rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree
              : rpmfusion-nonfree-updates updates
Cleaning up Everything
0 delta-package files removed, by presto

--- Doesn't look to me as if this cleans up much.

[root@novastar tim]# yum -v update
Not loading "blacklist" plugin, as it is disabled
Loading "presto" plugin
Loading "refresh-packagekit" plugin
Not loading "whiteout" plugin, as it is disabled
Config time: 0.054
Yum Version: 3.2.28
Setting up Package Sacks
adobe-linux-i386                                                                           |  951 B     00:00     
adobe-linux-i386/primary                                                                   |  12 kB     00:00     
adobe-linux-i386                                                                                            18/18
fedora/metalink                                                                            |  31 kB     00:00     
fedora                                                                                     | 4.3 kB     00:00     
fedora/primary_db                                                                          |  10 MB     00:08     
livna                                                                                      | 3.2 kB     00:00     
livna/primary_db                                                                           | 3.0 kB     00:00     
rpmfusion-free                                                                             | 2.8 kB     00:00     
rpmfusion-free/primary_db                                                                  | 304 kB     00:00     
rpmfusion-free-updates                                                                     | 2.8 kB     00:00     
rpmfusion-free-updates/primary_db                                                          | 331 kB     00:00     
rpmfusion-nonfree                                                                          | 2.8 kB     00:00     
rpmfusion-nonfree/primary_db                                                               |  97 kB     00:00     
rpmfusion-nonfree-updates                                                                  | 2.8 kB     00:00     
rpmfusion-nonfree-updates/primary_db                                                       |  76 kB     00:00     
updates/metalink                                                                           |  25 kB     00:00     
updates                                                                                    | 4.5 kB     00:00     
updates/primary_db                                                                         | 3.7 MB     00:03     
pkgsack time: 26.184
rpmdb time: 0.000
Setting up Update Process
Updating Everything
Building updates object
up:Obs Init time: 0.565
up:simple updates time: 0.408
up:obs time: 0.007
up:condense time: 0.000
updates time: 1.896
No Packages marked for Update

--- Looks to me like this isn't going to help, as there were no packages marked for updating..
Comment 4 Marco 2010-09-14 07:36:34 CEST
Created attachment 490 [details]
Xorg.log
Comment 5 Marco 2010-09-14 07:36:58 CEST
Created attachment 491 [details]
dmesg
Comment 6 Marco 2010-09-14 07:41:07 CEST
(In reply to comment #0)
> After an update to kernel 2.6.34.6-54 and a reboot, the system could no longer
> find the nvidia graphics kernel module (some .ko file?)
> It works fine if I reboot again and choose the 2.6.34.6-47 kernel.
> 
> Assuming the file simply failed to install in the proper location, I won't give
> a lot of information that might all be irrelevant. Though, as the system
> reports that it could not find a file, maybe this might help:
> 
> [root@novastar /]# find -name *nvidia*ko
> ./lib/modules/2.6.33.8-149.fc13.i686/kernel/drivers/video/backlight/mbp_nvidia_bl.ko
> ./lib/modules/2.6.33.8-149.fc13.i686/kernel/drivers/video/nvidia/nvidiafb.ko
> ./lib/modules/2.6.34.6-54.fc13.i686/kernel/drivers/video/backlight/mbp_nvidia_bl.ko
> ./lib/modules/2.6.34.6-54.fc13.i686/kernel/drivers/video/nvidia/nvidiafb.ko
> ./lib/modules/2.6.34.6-47.fc13.i686/extra/nvidia/nvidia.ko
> ./lib/modules/2.6.34.6-47.fc13.i686/kernel/drivers/video/backlight/mbp_nvidia_bl.ko
> ./lib/modules/2.6.34.6-47.fc13.i686/kernel/drivers/video/nvidia/nvidiafb.ko
> 
> Could it be I'm missing a
> /lib/modules/2.6.34.6-54.fc13.i686/extra/nvidia/nvidia.ko ?
> I don't know if it's wise to try to copy the file manually, as that file may
> actually depend on the 2.6.34.6-47 kernel and give some unexpected behaviour
> when applied on a 2.6.34.6-54 kernel.
> 

I confirm this bug. Although I don't see anything wrong in the Xorg.log. Just 
"Failed to set DisplayPort power state", but I think this is about suspending.

# menu.lst
title Fedora (2.6.34.6-54.fc13.x86_64)
        root (hd0,4)
        kernel /boot/vmlinuz-2.6.34.6-54.fc13.x86_64 ro root=UUID=e7aa7c39-c51c-485c-a60f-17a722ca6d49 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=de nomodeset rhgb quiet nouveau.modeset=0 rdblacklist=nouveau
        initrd /boot/initramfs-2.6.34.6-54.fc13.x86_64.img

I've also altered the xorg.conf manually to disable the "Composite" and "AIGLX" features but that didn't help either.
Comment 7 Marco 2010-09-14 08:26:57 CEST
Problem fixed. It was thru the external monitor I connected to my notebook. On the notebook the nvidia driver worked flawless but the monitor didn't get any signal. I changed the nvidia configuration through the nvidia-settings and now it works.
Comment 8 Tim Veldhuizen 2010-09-14 19:41:52 CEST
What Marco described here sounds to me like a different problem than what I had.

Though, after I took another good look in the System > Administration > Add/Remove Software tool, I found a package called "nvidia kernel module(s) for 2.6.34.6-54.fc13.i686" which was not installed.. I wonder why, but maybe this happened when I tried to "reinstall" the driver when it stopped working after the update.
Could it be this package didn't install during the update because of a missing dependency? Or was I supposed to do some manual updating after the kernel update?
If so, then this issue can probably be closed.

Either way, I've got it working on the new kernel now, so if no one else has this problem, then by all means, close this issue..

Though, if I need to do this after every kernel update, then I would like to change this issue into a request to make this process automatic. I think it was though, with a previous kernel update..

=> WorksForMe / Fixed ?
Comment 9 Nicolas Chauvet 2010-09-14 19:56:36 CEST
The problem was related to both the module that took time to build and mirrors took time to sync. Both problems lead to have the kernel updated witout having the related kernel module available. At this time, there is no way to express a depencency relatively to the running kernel, but this little gap doesn't happen that often.

Once that said, if you feel really affected by the problem, you can install akmod-nvidia.