Updating Nvidia Drivers - An Easy Way

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Updating Nvidia Drivers - An Easy Way

Postby Brodo » Jun 17th, '12, 08:28

For those who don't know, you can't update the proprietary Nvidia drivers in Mageia using the standard Nvidia .run packages due to internal conflicts in the OS.

To get around this Anssi Hannula developed a script (available here) that converts the Nvidia package to 5 RPM files suitable for installation in Mageia.

Unfortunately installing these files with urpmi is not always plain sailing, if you don't start with the right file the installation does not go smoothly and some portions of the driver are missed causing the computer user some grief and strife. The requests for help I've seen on these forums usually have highly technical answers involving modifying the xorg.conf, grepping and spending many hours in a console trying to sort it out.

This is a method that is easy and it works. I've used it to update 4 systems without a hitch
1) Download the required Nvidia .run file and the script mentioned above and store them in the same folder.

2) Run the script to create the rpms

3) In Mageia Control Centre, go to "Configure Media Sources" -> File -> Add a Custom Medium. Enter the path to the above folder in the drop box and click OK. Make a backup of your xorg.conf file

4) Now go to "Install & Remove Software", Set both selection boxes to All. Type in CUDA and uninstall it. I found that this is a necessary step as installing the new drivers breaks CUDA.

5) Type Nvidia into the search box, you will see the Nvidia driver you want in the results shown under the 'Release" column as "1custom.nvidia.mga1"(or 2 depending on your OS version). Tick the box, the install program will advise of the other packages that are needed (as normal), click OK on these and hit "Apply". The drivers will install as normal.

6) If you need it, reinstall CUDA, the current MGA packages work with the upgraded drivers so this is straight forward.

If you are upgrading an existing Nvidia driver go to step 7, If you are upgrading from "nouveau" go to step 8

7) Go to the "Boot" section of MCC, select "Set Up auto Login" and uncheck the "Launch the Graphical environment on start up" box. (this just makes it easier to debug if you have problems). I recommend disabling the X-server this way rather than through the "Set up graphical server" program under the Hardware tab. If your xorg.conf was working before the new drivers were installed restore it from the backup.

8) Upgrading From nouveau - Use the standard method. Go Hardware-> Set Up Graphical Server. When the program asks if you want to use the Nvidia driver click yes. Once again disable the "run x on boot up" function. MCC will install the new Nvidia driver in the normal manner.

9) Reboot and log in at the console, when you've logged in type "startx". If the X-server starts and operates as it should all is well and good and you can re-enable the auto start. If it freezes you can restart back to the console for debugging purposes.

I found this method particularly useful because I run multiple video cards and setting up multiple video cards from scratch is a PITA.Being able to re-use a working xorg.conf in a situation like this is a big plus.

Hope this helps someone
Brodo
Brodo
 
Posts: 25
Joined: May 18th, '12, 15:50

Re: Updating Nvidia Drivers - An Easy Way

Postby Lebarhon » Jun 17th, '12, 19:50

Thanks a lot, may be you should put this in the wiki.
Lebarhon
 
Posts: 408
Joined: Mar 22nd, '11, 22:24
Location: France

Re: Updating Nvidia Drivers - An Easy Way

Postby timosch » Jun 18th, '12, 01:50

if you have trouble to load your new nividia driver, run in a console box with su this command: nvidia-xconfig and reboot
timosch
 
Posts: 37
Joined: Jun 14th, '12, 06:05

Re: Updating Nvidia Drivers - An Easy Way

Postby oldcodger » Jun 18th, '12, 08:38

Or you could use nvidia-settings in a root konsole.
oldcodger
 
Posts: 78
Joined: Apr 29th, '11, 10:25
Location: England

Re: Updating Nvidia Drivers - An Easy Way

Postby Brodo » Jun 18th, '12, 09:56

oldcodger wrote:Or you could use nvidia-settings in a root konsole.

There are many ways of doing this but not everyone is a console wizard. This is simple and it's quick (it takes less than 15 minutes to complete), and has a 100% success rate. As I said in the title, it's an easy way ;)

Brodo
Brodo
 
Posts: 25
Joined: May 18th, '12, 15:50

Re: Updating Nvidia Drivers - An Easy Way

Postby timosch » Jun 18th, '12, 10:01

thats true, but helpfull is when we collect all possible ways to solve a problem and each user has a choice... no?

feel free to add the command to ur main post, it is helpfull
timosch
 
Posts: 37
Joined: Jun 14th, '12, 06:05

Re: Updating Nvidia Drivers - An Easy Way

Postby dubigrasu » Jun 18th, '12, 11:40

Just curious, why do you run multiple video cards?
User avatar
dubigrasu
 
Posts: 258
Joined: Apr 27th, '11, 22:34

Re: Updating Nvidia Drivers - An Easy Way

Postby Brodo » Jun 18th, '12, 13:40

dubigrasu wrote:Just curious, why do you run multiple video cards?

Because I crunch CUDA for various BOINC projects.

Brodo
Brodo
 
Posts: 25
Joined: May 18th, '12, 15:50

Re: Updating Nvidia Drivers - An Easy Way

Postby dubigrasu » Jun 18th, '12, 13:47

Ah, I see. I thought I smelled bitcoins :)
User avatar
dubigrasu
 
Posts: 258
Joined: Apr 27th, '11, 22:34

Re: Updating Nvidia Drivers - An Easy Way

Postby vatbier » Jun 27th, '12, 22:50

Brodo wrote:7) Go to the "Boot" section of MCC, select "Set Up auto Login" and uncheck the "Launch the Graphical environment on start up" box. (this just makes it easier to debug if you have problems). I recommend disabling the X-server this way rather than through the "Set up graphical server" program under the Hardware tab. If your xorg.conf was working before the new drivers were installed restore it from the backup.
Brodo

The last sentence is unclear to me, Brodo. What exactly do you mean?
Do you mean that if on reboot X-server with the new drivers fails that then you can restore your backed up xorg.conf? And I assume you also have to uninstall the new nvidia drivers and restore the old nvida drivers?
Or do you mean that we should use the backed up xorg.conf with the new nvidia drivers?
Or do you mean something else?

Sorry for nitpicking but I don't like unclear things in "easy ways".
And thanks for the info!
vatbier
 
Posts: 20
Joined: Aug 29th, '11, 23:45

Re: Updating Nvidia Drivers - An Easy Way

Postby Brodo » Jun 28th, '12, 04:04

vatbier wrote:
Brodo wrote:7) Go to the "Boot" section of MCC, select "Set Up auto Login" and uncheck the "Launch the Graphical environment on start up" box. (this just makes it easier to debug if you have problems). I recommend disabling the X-server this way rather than through the "Set up graphical server" program under the Hardware tab. If your xorg.conf was working before the new drivers were installed restore it from the backup.
Brodo

The last sentence is unclear to me, Brodo. What exactly do you mean?
Do you mean that if on reboot X-server with the new drivers fails that then you can restore your backed up xorg.conf? And I assume you also have to uninstall the new nvidia drivers and restore the old nvida drivers?
Or do you mean that we should use the backed up xorg.conf with the new nvidia drivers?
Or do you mean something else?

Sorry for nitpicking but I don't like unclear things in "easy ways".
And thanks for the info!

I meant you should restore your xorg.conf from the backup that was taken earlier. If you are only doing a driver update this should not be necessary.

Sorry for not being clearer

Brodo
Brodo
 
Posts: 25
Joined: May 18th, '12, 15:50

Re: Updating Nvidia Drivers - An Easy Way

Postby doktor5000 » Jun 29th, '12, 23:27

Actually xorg.conf should only be used if you want to override default settings, so if you want to use default settings and dynamic detection of those, just move away xorg.conf and also everything which has been added below /etc/X11/xorg.conf.d/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest