Upgrading with nVidia Driver (Includes useful info for New Installs)

nVidia Driver Install (New Installs and Upgrades)

With due respect to the previous long thread on this topic,
http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/unreviewed-how-faq/467398-simple-howto-install-nvidia-driver-opensuse-12-1-a.html

IMO the path I describe is the most efficient and improves on the methods described in that thread, eliminating some unnecessary steps, like the nomodeset setting.
Besides the big problem with nVidia nouveau (default) drivers, this post also includes solutions for a few other problems you may run into.

This post is also based on the following bug report I submitted a few days ago (may be worth a read)
https://bugzilla.novell.com/show_bug.cgi?id=745149

Credit and references:
SDB:System upgrade - openSUSE
How To Upgrade OpenSUSE 11.4 To 12.1 (Desktop & Server) | HowtoForge - Linux Howtos and Tutorials

Steps to upgrade from 11.3 (or any other previous) to 12.1

  • Update your existing distro
$ zypper up

  • Disable your existing repositories
$ zypper modifyrepo --all --disable
  • Add only the openSUSE repos first. Only after you fully upgrade should you consider other third party or optional openSUSE distros
$ zypper addrepo --name "openSUSE-12.1 OSS" http://download.opensuse.org/distribution/12.1/repo/oss/ repo-12.1-oss
$ zypper addrepo --name "openSUSE-12.1 Non-OSS" http://download.opensuse.org/distribution/12.1/repo/non-oss/ repo-12.1-non-oss
$ zypper addrepo --name "openSUSE-12.1 Updates" http://download.opensuse.org/update/12.1/ repo-12.1-update

  • Doublecheck you won’t have power and network interruptions, and full Internet access. Now you’re ready to do the BIG UPGRADE
$ zypper dup

  • When it completes, you will still need to overcome at least the nVidia, and possibly systemd problems. At first after the upgrade completes, you will be presented with a command line asking for your root password. Reboot
$ shutdown -r now
  • On bootup, when you are presented with your first graphical screen asking you to select openSUSE 12.1,** click F5 and select “sysvinit”** - That will disable systemd and return you to the “old” boot method used by your old distro. Also, select the “Failsafe” desktop.

  • From the Failsafe desktop,

  • Open YAST

  • Open “Manage Repositories”

  • Select “Community Repositories”

  • Select “nVidia”

From a command, su to Root and do the following

$ zypper refresh
$ zypper update

If a driver is found automatically, then you can simply agree to the selection and skip the next steps that manually select and install a driver.
If zypper does not automatically find and list a new nVidia driver, do the following

$ zypper search nVidia

From the list, select an appropriate driver, most likely a “Desktop” – Or, if you’re a CUDA developer you may select the first driver without a machine use designation. Install the driver you selected

$ zypper in <driver name>

Reboot to a Normal (not Failsafe) desktop, remember you may still need the sysvinit option.
If you wish to permanently select sysvinit as default, use zypper or YAST to install the sysvinit package.

You’re golden! :slight_smile:

I’d like to know if anyone has gone this route and hears some feed back. I have done the zypper dup method in the past upgrading to 11.4

On 02/12/2012 11:16 PM, tsu2 wrote:
>
> nVidia Driver Install (New Installs and Upgrades)

all contributions are appreciated, but imo it is important to note that
this thread is a guide for updating the nVidia driver after a
successful distribution upgrade from one version to another…and, is
not a supported guide for the upgrade itself…

> ‘How To Upgrade OpenSUSE 11.4 To 12.1 (Desktop& Server) | HowtoForge -
> Linux Howtos and Tutorials’ (http://tinyurl.com/85s5vro)

because of the several potential failure nodes which might occur
during a distribution upgrade, recommend upgrade guides include
suggestions for the user/administrator to plan that the upgrade to may
fail and therefore backup/secure data and configurations prior to
beginning the process…

the above reference is therefore not a distribution upgrade guide i
would recommend instead of the community supported guides (referenced
below):

> Steps to upgrade from 11.3 (or any other previous) to 12.1

this thread’s how-to presents an unsupported method of performing a
distribution upgrade. that is, “zypper dup” is not supported when
skipping a version as in “from version 11.3 (or any other previous) to 12.1”

however the method advanced here may work perfectly for you, but be
advised that it is an addition to and not a replacement for the
approved, supported or community recommended distribution upgrade
methods laid out in the two following references (which include “zypper
dup” and do not support the skipping of versions):
http://tinyurl.com/35p966c
http://tinyurl.com/6kvoflv

additionally, there is a new (old and being recalled to duty) method
(the thread is in work and technically not yet vetted, as of the time of
this writing)–but, probably is ok to use with sufficient caution and
care. it is expected to be useful in successfully upgrading without
stepping though each intervening version: http://tinyurl.com/7l4m2td

while i would not personally recommend this thread’s how-to be used for
the distribution upgrade instead of those cited above, it might be
useful to pick up with it at this point:

  • When it completes, you will still need to overcome at least the
    nVidia, and possibly systemd problems. At first after the upgrade
    completes, you will be presented with a command line asking for your
    root password. Reboot

Code:

$ shutdown -r now

  • On bootup, when you are presented with your first graphical screen
    asking you to select openSUSE 12.1,* etc etc etc

and follow the remaining portions of the how-to to install a nVidia
driver immediately following a distribution upgrade…

however, i do not know if it is either better (or worse) than following
the nVidia install guide at http://forums.opensuse.org/2164522-post3.html


DD http://tinyurl.com/DD-Caveat
What does DistroWatch write about YOU?: http://tinyurl.com/SUSEonDW

I tried this method and it worked OK for me. I don’t think it’s the most direct way however. My first update was via zypper dup to 12.1 fro 11.4 then I simply used yast to install the Nividia repo and installed the Nividia binary from the software manger at that time.

while i would not personally recommend this thread’s how-to be used for
the distribution upgrade instead of those cited above, it might be
useful to pick up with it at this point:

  • When it completes, you will still need to overcome at least the
    nVidia, and possibly systemd problems. At first after the upgrade
    completes, you will be presented with a command line asking for your
    root password. Reboot

Code:

$ shutdown -r now

  • On bootup, when you are presented with your first graphical screen
    asking you to select openSUSE 12.1,* etc etc etc
    and follow the remaining portions of the how-to to install a nVidia
    driver immediately following a distribution upgrade…

however, i do not know if it is either better (or worse) than following
the nVidia install guide at http://forums.opensuse.org/2164522-post3.html


DD DD Caveat
What does DistroWatch write about YOU?: DistroWatch.com: openSUSE

thx DD for your insight and contribution to my post, I agree with everything you opined, my additionaly

  1. Yes, it’s a big risk to jump more than one version, particularly since fundamental system changes are exponentially more difficult to allow for with each passing version. In the case from 11.3>11.4 though I don’t think the changes were that earth-shattering which may have helped make one step upgrade possible. So, <should> all upgrades be made from only one version to the succeeding version? -YES. But, if you want to try it skipping a version (or more), it’s at your own risk and I’m saying that at least for 11.3>12.1 it’s been done.

  2. Your reference to the nVidia install guide is interesting when considering the myriad possible nVidia GPU issues and how to manually address, but IMO the manual methods described in that reference should be tried only after the procedure I described because

  • The reference describes numerous detailed configurations which must be made exactly
  • A number of different things must be attempted in turn until one of them (or combination) works
  • My recommended automated use of zypper and YAST is simple and works without risk of typos and other mistakes

Thx,
TS