Jump to content

Help upgrading gfx card in Ubuntu


Serg

Recommended Posts

So I'm pretty sure my Ubuntu will die on me if I dare to unplug my GTX8800 and replace it with a GTX580, or at least play dead... Last time I tested "plug and play" with nvidia hardware on Ubuntu I ended up giving up and reinstalling Ubuntu. This time I want to do it right!

My current drivers are nvidia's closed source stuff, Linux-x86_64_195.36.24

Some pointers would be great, I'm scared to fubar this installation!

Thanks

S

Link to comment
Share on other sites

Depending on your version of Ubuntu, it'll either refuse to boot, boot and run with MESA, or work perfectly. You do need to update your Nvidia driver to one that supports the newer GTX580, so you're looking at a 270 series or above driver. It's a bit tricky, but here's how I do it:

1. Download the Linux Nvidia driver.

2. Change the permissions to execute chmod 544 NVIDIA-Linux-[driver-version].run

3. Reboot and either: enter maintenance mode or a non-X windows shell.

4. Login as root

5. run the command: init 3

6. For ubuntu: rm /lib/modules/[linux-version]/kernel/drivers/video/nvidia.ko , if it exists

7. run ./NVIDIA-Linux-[driver-version]run

8. ignore the warnings (runlevel, etc), unless it's a gcc version warning. Setenv CC to the appropriate gcc version if that occurs.

9. Once complete, ensure that the driver installed the kernel object, via /sbin/lsmod | grep nvidia

* If it did not, /sbin/insmod /lib/modules/[linux-version]/kernel/drivers/video/nvidia.ko

* run /sbin/depmod

* do an lsmod again to ensure it's installed this time

10. Reboot into X.

...replacing driver-version with the driver you downloaded and linux-version with your current kernel (uname -r). I'm currently using Ubuntu 9.10.

Link to comment
Share on other sites

I upgrade about once a month, and I occasionally need to refer to that list. It'd certainly be nice if the driver package could act more like the Windows version (install, create a startup script to finish the install on reboot, reboot).

I forgot to add: if you get into a bad state, it should still boot into Ubuntu's GUI but with MESA, and you can select UbuntuMenu > System > Hardware Drivers and re-enable the original Nvidia driver that the version of Ubuntu is paired with. So you should never be stuck with a broken OS the way you could several years ago.

Link to comment
Share on other sites

Thanks guys,

Happy to report the procedure went very smoothly. Fortunately Ubuntu went into basic graphics mode. From there I got my bearings as to where my nvidia.run was, went into non UI mode and closed gnome completely with a gdm stop command, and run the installer. Reboot, done.

Glad to see Ubuntu is less sensitive these days :)

Cheers

S

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...