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?
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"
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
Ok great. Here is the output: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.
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.
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
- 10.2K All Categories
- 36 LFX Mentorship
- 89 LFX Mentorship: Linux Kernel
- 505 Linux Foundation Boot Camps
- 279 Cloud Engineer Boot Camp
- 104 Advanced Cloud Engineer Boot Camp
- 48 DevOps Engineer Boot Camp
- 41 Cloud Native Developer Boot Camp
- 2 Express Training Courses
- 2 Express Courses - Discussion Forum
- 1.8K Training Courses
- 17 LFC110 Class Forum
- 5 LFC131 Class Forum
- 20 LFD102 Class Forum
- 148 LFD103 Class Forum
- 13 LFD121 Class Forum
- 61 LFD201 Class Forum
- LFD210 Class Forum
- 1 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum
- 23 LFD254 Class Forum
- 570 LFD259 Class Forum
- 100 LFD272 Class Forum
- 1 LFD272-JP クラス フォーラム
- 1 LFS145 Class Forum
- 23 LFS200 Class Forum
- 739 LFS201 Class Forum
- 1 LFS201-JP クラス フォーラム
- 1 LFS203 Class Forum
- 46 LFS207 Class Forum
- 298 LFS211 Class Forum
- 53 LFS216 Class Forum
- 46 LFS241 Class Forum
- 41 LFS242 Class Forum
- 37 LFS243 Class Forum
- 10 LFS244 Class Forum
- 27 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- 131 LFS253 Class Forum
- 998 LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 87 LFS260 Class Forum
- 126 LFS261 Class Forum
- 31 LFS262 Class Forum
- 79 LFS263 Class Forum
- 15 LFS264 Class Forum
- 10 LFS266 Class Forum
- 17 LFS267 Class Forum
- 17 LFS268 Class Forum
- 21 LFS269 Class Forum
- 201 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- 212 LFW211 Class Forum
- 154 LFW212 Class Forum
- 899 Hardware
- 217 Drivers
- 74 I/O Devices
- 44 Monitors
- 115 Multimedia
- 208 Networking
- 101 Printers & Scanners
- 85 Storage
- 749 Linux Distributions
- 88 Debian
- 64 Fedora
- 14 Linux Mint
- 13 Mageia
- 24 openSUSE
- 133 Red Hat Enterprise
- 33 Slackware
- 13 SUSE Enterprise
- 355 Ubuntu
- 473 Linux System Administration
- 38 Cloud Computing
- 69 Command Line/Scripting
- Github systems admin projects
- 94 Linux Security
- 77 Network Management
- 108 System Management
- 49 Web Management
- 63 Mobile Computing
- 22 Android
- 27 Development
- 1.2K New to Linux
- 1.1K Getting Started with Linux
- 528 Off Topic
- 127 Introductions
- 213 Small Talk
- 20 Study Material
- 796 Programming and Development
- 264 Kernel Development
- 498 Software Development
- 923 Software
- 258 Applications
- 182 Command Line
- 2 Compiling/Installing
- 76 Games
- 316 Installation
- 54 All In Program
- 54 All In Forum
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)