Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] Uninstalling non-gentoo nvidia drivers

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
1veedo
Apprentice
Apprentice
Posts: 152
Joined: Mon Dec 19, 2005 12:16 am

[solved] Uninstalling non-gentoo nvidia drivers

  • Quote

Post by 1veedo » Fri Dec 11, 2009 7:01 pm

At one point in time my motherboard's built in network card was only supported by the git sources. Because I was using git sources, gentoo's built in nvidia-drivers never worked so I always had to get special hacks to get it working (which portage had a tendency to break whenever I did a full system update which is why I'm trying to switch over now).

I'm getting similar error that I used to get and the only reason I can think of is that the old drivers left some stuff broken.

Code: Select all

undefined symbole: _nv000008gl
I've tried removing libGL/libGLcore and re-linking those files but nothing seems to be working. Is there any sure way to completely uninstall or overwrite all openGL and nvidia stuff?
Last edited by 1veedo on Sat Dec 12, 2009 5:37 am, edited 1 time in total.
Top
causality
Apprentice
Apprentice
Posts: 246
Joined: Sat Jun 03, 2006 7:56 pm

  • Quote

Post by causality » Fri Dec 11, 2009 7:24 pm

With this sort of thing it's hard to determine what is actually causing that error. You didn't specify the source of that error message but I am guessing that it must be coming from the kernel module. What follows is not intended to diagnose that error so much as to remove the nVidia binary driver that you have been using and replace it with the one from the Portage tree.

You should probably close X entirely and do this from the console.

If you install the nVidia binary drivers manually, the installer is in the form of an executable script with a name like NVIDIA-Linux-x86-190.42-pkg0.run. If you don't have this, you can download it from nvidia.com. It has its own uninstall command. You can run it with a command like this:

Code: Select all

localhost ~ # ./NVIDIA-Linux-x86-190.42-pkg0.run --uninstall
At this point you may want to make sure the kernel module is not still loaded in memory:

Code: Select all

localhost ~ # lsmod
Module                  Size  Used by
nvidia               8872171  52
localhost ~ # rmmod nvidia
localhost ~ #
Then you can install the one in Portage:

Code: Select all

localhost ~ # emerge x11-drivers/nvidia-drivers
This will build a new kernel module from source and install the binary GLX driver.

At the end of that installation procedure, Portage itself will execute the command "eselect opengl set nvidia". This will establish several symlinks that tell your system which libGL/libGLcore to use. It'll know where to find those once you are using the nvidia-drivers from the Portage tree. When you run X again, it should automatically load the kernel module Portage just built.

Hopefully that will get everything working for you.
Top
vincent-
Retired Dev
Retired Dev
User avatar
Posts: 415
Joined: Sat Jan 13, 2007 12:38 am
Location: Valencia (Spain)

  • Quote

Post by vincent- » Fri Dec 11, 2009 7:29 pm

Better if you add VIDEO_CARDS="nvidia" to your make.conf and then do:

Code: Select all

emerge -DNua world
That will rebuild automatically x11-base/xorg-drivers with nvidia flag and install x11-drivers/nvidia-drivers dependence.
Top
1veedo
Apprentice
Apprentice
Posts: 152
Joined: Mon Dec 19, 2005 12:16 am

  • Quote

Post by 1veedo » Fri Dec 11, 2009 7:54 pm

Well X doesn't wrok so I'm posting from links. That's why I didn't include a very long error message. I'm getting a bunch of version mismatch errors as well but I think those will go away if I can update my system.

--unstall did work though. I tried looking for an option like that using -h but couldn't find anything. Thanks :)
Top
causality
Apprentice
Apprentice
Posts: 246
Joined: Sat Jun 03, 2006 7:56 pm

  • Quote

Post by causality » Fri Dec 11, 2009 9:15 pm

For the upstream nVidia installer (the one you could download from nvidia.com), uninstall only shows up when you use -A for "advanced options".

Just my opinion, but I am glad that you did uninstall it first. It's quite possible that the upstream nVidia installer may have placed some files in different locations than what Portage would have specified. Removing those first is your best bet for a clean reinstallation when you later install the nVidia drivers from Portage. Once the old driver is uninstalled, then either the commands I gave or the suggestion from Peratu will install the drivers from Portage.

Adding VIDEO_CARDS="nvidia" to your make.conf is also a good idea, but for other reasons. If you don't specify your video card with a line like that, then building xorg-server will also build all of the Xorg drivers, which will waste time compiling them and space storing them. Adding that to make.conf will just build the one you need.
Top
1veedo
Apprentice
Apprentice
Posts: 152
Joined: Mon Dec 19, 2005 12:16 am

  • Quote

Post by 1veedo » Sat Dec 12, 2009 5:37 am

I already had VIDEO_CARDS="nvidia" in my make.conf. Thanks for the suggestion though. Things work a lot better when you let portage handle everything.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic