CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Hardware Support
  Issues with Nvidia driver centos 5.3

 

 Bottom   Previous Topic   Next Topic
<123>
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  toracat
      toracat
Re: Issues with Nvidia driver centos 5.3
#21
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
Quote:

ohw0571 wrote:

(~): ls -l $(find /lib/modules -name nvidia.ko)
-rw-r--r-- 1 root root 13363717 Sep 13 02:42 /lib/modules/2.6.18-128.el5/extra/nvidia/nvidia.ko
lrwxrwxrwx 1 root root 43 Oct 26 11:16 /lib/modules/2.6.18-128.el5/weak-updates/nvidia.ko -> /lib/modules/2.6.18-164.el5/extra/nvidia.ko
lrwxrwxrwx 1 root root 50 Oct 26 11:24 /lib/modules/2.6.18-164.el5/weak-updates/nvidia/nvidia.ko -> /lib/modules/2.6.18-128.el5/extra/nvidia/nvidia.ko

Ooooops.... These cross-links between modules of different kernels look VERY suspicious They got created today, during/after installation of the kmod package!

This is exactly how it is supposed to work.

For a detailed explanation of the kABI, please see Alan's description here:

http://wiki.centos.org/HowTos/Custom_Kernel#head-566abc4208fceb902d41ee82633f509dbf386a4d
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/10/26 18:20
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: Issues with Nvidia driver centos 5.3
#22
Professional Board Member
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4294
Err, yes and no.

Symbolic linking, yes. The actual symbolic links created in this case, no.

Look again --

(~): find /lib/modules -name nvidia.ko
/lib/modules/2.6.18-164.el5/weak-updates/nvidia/nvidia.ko
/lib/modules/2.6.18-128.el5/weak-updates/nvidia.ko
/lib/modules/2.6.18-128.el5/extra/nvidia/nvidia.ko

(~): ls -l $(find /lib/modules -name nvidia.ko)
-rw-r--r-- 1 root root 13363717 Sep 13 02:42 /lib/modules/2.6.18-128.el5/extra/nvidia/nvidia.ko
lrwxrwxrwx 1 root root 43 Oct 26 11:16 /lib/modules/2.6.18-128.el5/weak-updates/nvidia.ko -> /lib/modules/2.6.18-164.el5/extra/nvidia.ko
lrwxrwxrwx 1 root root 50 Oct 26 11:24 /lib/modules/2.6.18-164.el5/weak-updates/nvidia/nvidia.ko -> /lib/modules/2.6.18-128.el5/extra/nvidia/nvidia.ko

I am very surprised to see the lines that I have highlighted in red.

toracat (or Ned) -- any comments? I wonder if that is dkms residue?
_________________
Alan.

100% CentOS, Linux & Unix. Co-founder of ELRepo.
Posted on: 2009/10/27 11:10
Create PDF from Post Print
Top
  •  ohw0571
      ohw0571
Re: Issues with Nvidia driver centos 5.3
#23
Jr Board Member
Joined: 2008/10/5
From
Posts: 44
Hi Alan,

I understand that after a kernel update, a link should be created referring to the nvidia module installed under a previous kernel, and not the other way around.
Just checked on a second system: I observed that after deinstallation of dkms-nvidia-x11-drv and dkms itself, the actual nvidia.ko module (under .128.xxx) has been removed, but all the links are still present! ("Reverse" linking is not present at this point).
Is it advisable to just delete them manually, before proceeding with installation of the kmod version?

Regards,
Oliver
Posted on: 2009/10/28 17:38
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Issues with Nvidia driver centos 5.3
#24
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
That red-colored link is almost certainly from the dkms action. I noticed dkms does not do a clean uninstallation and tends to leave broken symlinks. It should be safe to manually remove those symlinks. Just make sure you are not deleting anything installed by the kmod package.
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/10/29 0:12
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: Issues with Nvidia driver centos 5.3
#25
Professional Board Member
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4294
Oliver,

Yes, having read toracat's comments, I'll say just go ahead and delete the symlink that I highlighted in red and any other "orphaned" dkms residues that you find..

To see what the kmod package provides, use a rpm -ql kmod-nvidia command.

To understand how the symbolic links are created, use a rpm -q --scripts kmod-nividia command. This will, in turn, lead you to the bash script /sbin/weak-modules.
_________________
Alan.

100% CentOS, Linux & Unix. Co-founder of ELRepo.
Posted on: 2009/10/29 11:50
Create PDF from Post Print
Top
  •  adebened
      adebened
Re: Issues with Nvidia driver centos 5.3
#26
Regular Board Member
Joined: 2007/4/16
From
Posts: 236
Quote:

toracat wrote:
Quote:

adebened wrote:
Hi All,

I'd like to add that I also switched a few weeks ago from the NVidia supplied version to the elrepo-testing version and have had no problems with it. I haven't tried it across a kernel update yet, but I am assuming that you can just keep the machine in run-level 5 when you reboot into a new kernel and it will work.
Cheers,

Yes, it should work that way. Please keep us posted.

Just getting back to this request. I upgraded to 2.6.18-164.2.1.el5 today and the kmod-nvidia worked flawlessly across the upgrade.
Posted on: 2009/10/31 16:21
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Issues with Nvidia driver centos 5.3
#27
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
Quote:

adebened wrote:

Just getting back to this request. I upgraded to 2.6.18-164.2.1.el5 today and the kmod-nvidia worked flawlessly across the upgrade.

Thank you for posting back. The nvidia driver package is finally out of testing and now is in the ELRepo main repository as announced here:

http://lists.elrepo.org/pipermail/elrepo/2009-October/000101.html

The command to install the driver is:

yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia nvidia-x11-drv
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/10/31 17:37
Create PDF from Post Print
Top
  •  r_hartman
      r_hartman
Re: Issues with Nvidia driver centos 5.3
#28
Peeking in the Member Window
Joined: 2009/3/23
From Netherlands
Posts: 24
Just a quick remark that this morning I upgraded my notebook to the latest kernel (2.6.18-164.2.1.el5) and had NO issues with the kmod-nvidia package whatsoever! Great work and thanks for this convenient ElRepo package.
Posted on: 2009/11/1 18:00
Create PDF from Post Print
Top
  •  NedSlider
      NedSlider
Re: Issues with Nvidia driver centos 5.3
#29
Moderator
Joined: 2005/10/28
From UK
Posts: 2673
Quote:

r_hartman wrote:
Just a quick remark that this morning I upgraded my notebook to the latest kernel (2.6.18-164.2.1.el5) and had NO issues with the kmod-nvidia package whatsoever! Great work and thanks for this convenient ElRepo package.


Great

BTW, I've just updated the nvidia packages to v190.42 as per the latest upstream release. These are in elrepo-testing and will be pushed to the main repo once were happy with them.
_________________
CentOS - The Sysadmins Choice
ELRepo.org - The Community Enterprise Linux Repository
Posted on: 2009/11/1 20:56
Create PDF from Post Print
Top
  •  adebened
      adebened
Re: Issues with Nvidia driver centos 5.3
#30
Regular Board Member
Joined: 2007/4/16
From
Posts: 236
Quote:

NedSlider wrote:

BTW, I've just updated the nvidia packages to v190.42 as per the latest upstream release. These are in elrepo-testing and will be pushed to the main repo once were happy with them.


Thanks! I appreciate all the work you've done on this. I'm using your latest kmod 190.42 right now and so far so good. Cheers.
Posted on: 2009/11/2 3:23
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Issues with Nvidia driver centos 5.3
#31
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
I have also updated to 190.42 and all looking good. The kernel is 2.6.18-164.2.1.el5.plus.x86_64.
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/11/2 5:26
Create PDF from Post Print
Top
  •  NedSlider
      NedSlider
Re: Issues with Nvidia driver centos 5.3
#32
Moderator
Joined: 2005/10/28
From UK
Posts: 2673
Great - thanks for the feedback!

...in which case we can probably push it out into the main repo. Perhaps toracat could do the honours?
_________________
CentOS - The Sysadmins Choice
ELRepo.org - The Community Enterprise Linux Repository
Posted on: 2009/11/2 12:50
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Issues with Nvidia driver centos 5.3
#33
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
Done

The 190.42 driver is now in the main repo.
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/11/3 1:49
Create PDF from Post Print
Top
  •  jlehtone
      jlehtone
Re: Issues with Nvidia driver centos 5.3
#34
Professional Board Member
Joined: 2007/12/11
From
Posts: 276
Wonderful

... and not

I have a "pure x86_64" installation, no "i?86" whatsoever. And I've been using
packages directly from nvidia. But now finally elrepo looked like an option.

Two issues:

1. yum install kmod-nvidia-190.42-1.el5.elrepo.x86_64 pulls in
nvidia-x11-drv-190.42-1.el5.elrepo.x86_64 as expected,
BUT nvidia-x11-drv requires:

libgcc-4.1.2-46.el5_4.1.i386
glibc-2.5-42.i686
libXau-1.0.1-3.1.i386
zlib-1.2.3-3.i386
libXdmcp-1.0.1-2.1.i386
libX11-1.0.3-11.el5.i386
libXext-1.0.1-2.1.i386

Which is a result of nvidia-x11-drv containing both 32 and 64 bit libs.
cf. Nvidia 64-bit package installer asks whether 32-bit support is desired.


2. Installing packages at runlevel 3 followed by 'telinit 5' results in X start failure,
because required /dev/nv* do not exist. The udev rules were there, but mere
'modprobe nvidia' did not call them. Solved trivially by a reboot, but not neat.
Posted on: 2009/11/3 8:41
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Issues with Nvidia driver centos 5.3
#35
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
Quote:

jlehtone wrote:

2. Installing packages at runlevel 3 followed by 'telinit 5' results in X start failure,
because required /dev/nv* do not exist. The udev rules were there, but mere
'modprobe nvidia' did not call them. Solved trivially by a reboot, but not neat.

Thanks for the feedback. Let me answer (or ask about?) the second note. I think it is necessary to remove the existing driver first:

modprobe -r nvidia ; modprobe nvidia

At least I did not need to reboot. But we recommend rebooting anyway.
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/11/3 11:52
Create PDF from Post Print
Top
  •  jlehtone
      jlehtone
Re: Issues with Nvidia driver centos 5.3
#36
Professional Board Member
Joined: 2007/12/11
From
Posts: 276
I did do (approximately):
1. nvidia-installer --uninstall
2. yum update kernel
3. ***reboot***
4. yum remove kernel-{oldversion}
5. yum install kmod-nvidia
6. telinit 5 ==> fail X
7. rmmod nvidia
8. modprobe nvidia
9. not remembering how to master 'udev': ***reboot***

So there should not have been "old module" in the picture.
Posted on: 2009/11/3 12:31
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Issues with Nvidia driver centos 5.3
#37
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
Thank you for yet another useful note. I suppose we should keep the "reboot" as a required step of the installation/update of the elrepo nvidia package (unfortunately).
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/11/3 12:54
Create PDF from Post Print
Top
  •  r_hartman
      r_hartman
Re: Issues with Nvidia driver centos 5.3
#38
Peeking in the Member Window
Joined: 2009/3/23
From Netherlands
Posts: 24
Unfortunately yum update fails on the new ElRepo package (FIXED, see EDIT):

yum -y update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.liteserver.nl
* base: mirror.liteserver.nl
* extras: mirror.liteserver.nl
* rpmforge: fr2.rpmfind.net
* updates: mirror.liteserver.nl
448 packages excluded due to repository priority protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package iptables.x86_64 0:1.3.5-5.3.el5_4.1 set to be updated
---> Package iptables-ipv6.x86_64 0:1.3.5-5.3.el5_4.1 set to be updated
--> Processing Dependency: nvidia-kmod = 185.18.36-2.el5.elrepo for package: nvidia-x11-drv
--> Processing Dependency: nvidia-kmod = 185.18.36-2.el5.elrepo for package: nvidia-x11-drv
---> Package kmod-nvidia.x86_64 0:190.42-1.el5.elrepo set to be updated
--> Processing Dependency: nvidia-x11-drv = 190.42-1.el5.elrepo for package: kmod-nvidia
---> Package lvm2.x86_64 0:2.02.46-8.el5_4.2 set to be updated
--> Finished Dependency Resolution
nvidia-x11-drv-185.18.36-2.el5.elrepo.x86_64 from installed has depsolving problems
--> Missing Dependency: nvidia-kmod = 185.18.36-2.el5.elrepo is needed by package nvidia-x11-drv-185.18.36-2.el5.elrepo.x86_64 (installed)
kmod-nvidia-190.42-1.el5.elrepo.x86_64 from elrepo has depsolving problems
--> Missing Dependency: nvidia-x11-drv = 190.42-1.el5.elrepo is needed by package kmod-nvidia-190.42-1.el5.elrepo.x86_64 (elrepo)
Error: Missing Dependency: nvidia-kmod = 185.18.36-2.el5.elrepo is needed by package nvidia-x11-drv-185.18.36-2.el5.elrepo.x86_64 (installed)
Error: Missing Dependency: nvidia-x11-drv = 190.42-1.el5.elrepo is needed by package kmod-nvidia-190.42-1.el5.elrepo.x86_64 (elrepo)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest


I've done a 'yum clean all' and tried the suggested remedies except the --skip-broken, to no avail. I could probably uninstall and reinstall, but that should not be normal practice. I've stopped the installaton here so I could still try suggestions you may have, or reïnstall after fixes have been made..

As a side note to jlehtone's issue: as I read it he uninstalled the native driver (in runlevel 3) and installed the ElRepo kmod package as a first, still in runlevel 3. I would expect a reboot requirement in that case. Future updates would probably only become active after a reboot anyway, as the kernel mod needs reloading. As I now encounter the issue above, I cannot verify this at this stage.

EDIT:
On re-examination I noticed the ElRepo repo was not listed in the above output. When I did 'yum -y --disablerepo=\* --enablerepo=elrepo update' everything went fine.

Seems to be an issue with the priorities plugin, as I have ElRepo enabled:
cat /etc/yum.repos.d/elrepo.repo
### Name: ElRepo.org Community Enterprise Linux Repository for el5
### URL: http://elrepo.org/

[elrepo]
name=ElRepo.org Community Enterprise Linux Repository - el5
baseurl=http://elrepo.org/linux/elrepo/el5/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
protect=0
priority=12

[elrepo-fasttrack]
name=ElRepo.org Community Enterprise Linux Fasttrack Repository - el5
baseurl=http://elrepo.org/linux/fasttrack/el5/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
protect=0

[elrepo-testing]
name=ElRepo.org Community Enterprise Linux Testing Repository - el5
baseurl=http://elrepo.org/linux/testing/el5/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
protect=0


EDIT:
After I removed 'protect=0' from elrepo.repo, ElRepo showed up in the normal yum update command.
Posted on: 2009/11/3 15:33
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Issues with Nvidia driver centos 5.3
#39
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
Could you try with the --disablerepo=\* --enablerepo=elrepo option?
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/11/3 15:55
Create PDF from Post Print
Top
  •  r_hartman
      r_hartman
Re: Issues with Nvidia driver centos 5.3
#40
Peeking in the Member Window
Joined: 2009/3/23
From Netherlands
Posts: 24
OK. I can confirm that there are definitely issues with upgrading from runlevel 5. While the installation completes OK, Gnome's behaviour is identical to when the kernel upgraded from 164 to 164.2.1: The menus no longer respond and the status bar freezes. I had no issues with open programs, those continued to respond normally.
The 'desktop switcher' still works, as does the NetworManager applet and rghtclicking on the desktop to get the context menu and e.g. starting a terminal. Logging off is no longer possible as the menus and any icons next to the menus no longer respond.

I need to be logged on to Gnome, as otherwise I don't have network (wireless only w/ NetworkManager). But it seems best to sign on, not start any programs and then run yum update from a console session and reboot immediately after the update, as X will fail when forcing a restart of the X-server (Alt-Ctrl-BackSpace).

So yes, it seems we will need to accept to have to reboot after a NVidia driver update. Still, the kmod is (much) more convenient than having to recompile.
Posted on: 2009/11/3 16:24
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic
<123>

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com