Welcome to the Linux Foundation Forum!
Need help removing nvidia driver
Today I decided to install a nvidia driver for my 32-bit fedora 11 machine, graphics card (fx5200). Everything went well until I rebooted and found out I installed the wrong driver. I tried to install the correct driver using yum but that conflicted with the existing driver installed. Is there a simple way just to revert to the nouveau driver?
0
Comments
-
Actually it's not that simple, but is pretty easy. Question is, how did you install the drivers to start out with. If you installed them from the nVidia site, reverting back to nouveau is a bit harder than if you installed them from the rpmfusion repo. So, ... how did you install the drivers.0
-
I ran "yum install kmod-nvidia", I don't know if that accesses the rpmfusion repo. I'm still learning linux.0
-
Hi, well, if you do in a terminal:
su -c "yum remove kmod-nvidia"
that's a start. Installing that driver also blacklisted nouveau so you have to:
su -c "rm /etc/modprobe.d/blacklist-nouveau.conf"
then,
su -c "rm /etc/X11/xorg*"
to remove the xorg.conf file and other remnants of the nvidia setup.
Then all you have to do as reboot and you should be back into nouveau.
You can copy and paste those lines into your terminal, but if you decide to just type them out, just make sure that X11 is a capital "X", everybody makes that mistake.
BTW - if you decide to reinstall nVidia drivers, ask and we'll tell you the steps you need to do it successfully. It takes more than just installing kmod-nvidia, because Fedora ties it's kernel so close to the nouveau drivers.
Any questions, just post back, especially if your uncertain about anything. Also, you should type and execute all commands before rebooting, or else you'll get a black screen.0 -
Ok thanks for all of the help! I should have also mentioned due to the incorrect driver installed the GUI on Fedora fails to load.0
-
Well I tried what you suggested but it still failed to load up the GUI. I should have also mentioned that yum installed a kernel version when as a dependency for the nvidia driver. Just when the GUI would normally load the screen flickers rapidly for about 10 seconds and it gets stuck on jexec services.0
-
OK, well, when I first used Fedora I made the same mistake. The default installation loaded a PAE kernel instead of the regular kernel. So when I installed kmod-nvidia it also pulled in a regular kernel. For your install you probably would have had to load up kmod-nvidia-PAE. What you will have to do to clean up the installation is remove the kernel that came in with the kmod-nvidia driver and reset everything using the old kernel. OR. If it is a new installation, just do a reinstall. The choice is up to you. Since I made the same mistake, I can help you fix it. If this is what you want to do, let me know if you see the grub screen when you are booting up, so we can stop the boot from going into gnome and go directly into terminal.
We can also use the live cd to do the repair. But if you can stop the boot at grub, it might be easier because we can just boot into init 3 (by adding 3 to the kernel line) and work from there.
A default Fedora install sets grub to a timeout of zero so that's why I'm asking if you can see it while booting up.0 -
I would like to reset everything using the old kernel. I do not see the grub screen when it boots up.0
-
I am moving this thread to the fedora section because it has to do more with fedora's package management functions than drivers themself.0
-
Thanks mfillpot, it really does belong in Fedora.
@win2tank Fedora, as I said before, sets the timer on grub to zero, so, it's hard to catch. Experiment by hitting escape occasionally while it is booting up and see if you can catch grub. If you hit it at the right spot, we can work on it from there. Since we are going back and forth on the forum, I'll try and tell you some things in advance, in case we don't catch each other here at the same time.
If escape works and you can catch grub, press "e" when it appears and add a "3" (without quotes) to the kernel line so we can boot up into init 3, which will leave you at a terminal screen with a prompt.
If you can't catch grub with escape, you will need a LiveCD of Fedora, or, actually almost any other Linux distro. Let me know what you have and we'll go from there.
I'm first trying to get a copy of your grub.conf so I can see what kernels are installed and at the same time I'll help you fix grub so it shows up during boot.
If escape does work and you get to a prompt type in:su -c "cat /boot/grub/grub.conf"
I need the output from that command to get us started.
I'll leave it at that for now, let me know how you make out.0 -
I took a picture of the output I got from cat /boot/grub/grub.conf. Sorry for the small image, the site would not let me load a much larger file size.0
-
Good news, you didn't install the wrong type of kernel, you just installed a newer kernel. Nothing to do here, but, lets make sure you can see grub the next time you boot up.
su -c "nano /boot/grub/grub.conf" will open up that file for you.
Change timeout=0 to timeout=3 , and
put a hash mark in from of hiddenmenu (make it #hiddenmenu)
Then hitting ctrl-x and then "y" will save the file for you.
You should be back to a prompt at this point, so lets see what you have.
Let me see the output of
dir /etc/modprobe.d/
and
dir /etc/X11/0 -
-
ok, you still have an xorg.conf that didn't get removed.
su -c "yum remove /etc/X11/xorg*"
Don't forget the asterisk after xorg, it helps remove the xorg.conf and it's backup file.
You can try rebooting after that. Keep your fingers crossed.0 -
I tried that command if it found both file but I got something like no argument associated with both files.0
-
Sorry, I had a brain fart. The command should have been
su -c "rm /etc/X11/xorg*"
I guess I had yum on the brain to much the last couple of days.0 -
I ran that command but upon reboot the files 'magically' restored themselves.0
-
Well, sometimes they do that, but with info pertaining to nouveau. You did remove the kmod-nvidia drivers right? What was the outcome of letting it boot all the way? Did you get a black screen with a blinking cursor in the upper left hand corner of the monitor?
Lets see what xorg.conf has in it.
su -c "cat /etc/X11/xorg.conf"0 -
when I originally ran yum remove kmod-nvidia it said that the driver is on the system but not installed, according to the boot log the nvidia driver is still being used. Thanks for taking the time to help me btw.0
-
No problem, Removing the kmod-nvidia might not have removed xorg-x11-drv-nvidia, so, if we just repeat everything once more it hopefully will work this time.
Repeat these commands again and then reboot. Make sure the asterisks are in the commands.su -c "yum remove kmod-nvidia*" su -c "yum remove xorg-x11-drv-nvidia*" su -c "rm /etc/X11/xorg*" su -c "rm /etc/modprobe.d/blacklist-nouveau.conf"
If xorg rebuilds itself during boot, it's okay, but it might insert "vesa" in where "nouveau" should go, but that's easy to fix. I've done this operation a few times so it should work.
If you get a "no file found" while doing the commands, it's ok, it means they're gone.0 -
Yahooo! It worked! The GUI is up and running! Thanks a million. The main reason I was trying to install the nvidia driver was that I wanted to be able to use some of the more advanced graphical effects in Fedora and such.0
-
YES.....I'm doing the Snoopy dance.....YES!!!!!
OK, enjoy, have fun. Any other questions feel free to ask.
:-)0 -
Hey win
BTW - When your ready - start a new thread here in Fedora asking how to install the Nvidia drivers, and I'll help you through it. I promise, it's a lot easier than trying to fix them when they break.
Tom0 -
The only issue that I have noticed when everything was up and running is that my sound volume is extremely low even though my speakers and the volume settings are set to max. Could this be an issue with the updated kernel that was installed?
EDIT: Never mind I was able to uncover a hidden audio control and it's working now.0
Categories
- All Categories
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 795 Linux Foundation IT Professional Programs
- 355 Cloud Engineer IT Professional Program
- 179 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 127 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 112 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 35 LFD102 Class Forum
- 227 LFD103 Class Forum
- 14 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 152 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 33 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 102 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 42 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 154 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 111 LFS260 Class Forum
- 159 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 24 LFS268 Class Forum
- 29 LFS269 Class Forum
- 1 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 9 LFW111 Class Forum
- 260 LFW211 Class Forum
- 182 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 743 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 507 Programming and Development
- 285 Kernel Development
- 204 Software Development
- 1.8K Software
- 211 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)