Ubuntu Kernel Update & NVIDIA Driver

Earlier, I reported that Fedora failed miserably on booting w/ a new kernel with the NVIDIA graphics driver installed (which I want, for two-headed desktop).

I hadn't seen a problem with Ubuntu Kernel update, but that appears to only have been true for one update - but not the latest. The good news is Ubuntu detects and reports that NVIDIA complains, and nicely defaults to the default driver (and single-headed mode).

Since, effectively, Ubuntu (and it appears Debian in general) does not have a non-graphic multi-user mode akin to init 3, here's what I did:

  • Be sure to have _some_ nvidia driver available;
  • exit Gnome window manager:
  • sudo /etc/init.d/gdm stop
--------
UPDATE:
As of kernel 2.6.28.15, it doesn't appear that
gdm stop works (no terminal). This, however, seems to work for me:

  • sudo telinit 1
  • (login as root)
Alternately, if booting (Ubuntu, grub2), and you want to come up with the boot menu, then right-shift should get you there:  pick recovery mode, and boot into shell to accomplish the following.
--------

  • run the NVIDIA run script with the update option; this will get a newer driver from the NVIDIA ftp site if one is available:
  • sudo sh NVIDIA*.run --update
--------
UPDATE:
If running under telinit 1, NVIDIA driver will complain about potentially not being able to find files when searching in "init 1" - continue anyway (telinit 1 is not quite init 1 on other systems). When coming back up, you can telinit 3. I've found external USB hubs (e.g. printers, drives) are not re-initialized, so I prefer to reboot (but you can quickly telinit 3 to check video settings first, reboot later).
--------

If you came up graphical in Ubuntu before you discovered a problem w/ the kernel interface for the NVIDIA driver, then Ubuntu changed your config. When you come up (gdm start, or reboot if you like) then run the NVIDIA settings program to configure your monitors as you like as root:
  • sudo nvidia-settings

You need to do this as root to save the configuration for future boots.

0 comments:

Post a Comment