Monday, September 18, 2006

Ubuntu kernel update broke X11

Yesterday I installed an Ubuntu (Dapper Drake) kernel upgrade through the system upgrade mechanism. The new version is 2.6.15-27-686. Today, when I tried to boot, I just got a console logon, X11 refused to start because of problems with the configuration.

The following log was output to /var/log/Xorg.0.log, but from what I could see, the messages were contradictory. First the NVIDIA GPU is found and several messages from the module are displayed, but at the end of the log it says Failed to load the NVIDIA kernel module!.

(II) NVIDIA X Driver  1.0-8762  Mon May 15 13:09:21 PDT 2006
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01:00:0
(--) Chipset NVIDIA GPU found
(--) Chipset NVIDIA GPU found
...
(II) Setting vga for screen 0.
(II) Setting vga for screen 1.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "0"
(**) NVIDIA(0): Option "AllowGLXWithComposite" "true"
(**) NVIDIA(0): Option "UseDisplayDevice" "CRT"
(**) NVIDIA(0): Option "UseEdidDpi" "FALSE"
(**) NVIDIA(0): Enabling RENDER acceleration
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(**) NVIDIA(1): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(1): RGB weight 888
(==) NVIDIA(1): Default visual is TrueColor
(==) NVIDIA(1): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(1): Option "NoLogo" "0"
(**) NVIDIA(1): Option "AllowGLXWithComposite" "true"
(**) NVIDIA(1): Option "UseDisplayDevice" "DFP"
(**) NVIDIA(1): Option "UseEdidDpi" "FALSE"
(**) NVIDIA(1): Enabling RENDER acceleration
(EE) NVIDIA(1): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(1):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "ramdac"
(II) UnloadModule: "fb"
(II) UnloadModule: "nvidia"
(II) UnloadModule: "ramdac"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

It took me some time to notice that the automatic upgrade had only downloaded the new kernel package, but left out the linux-restricted-modules package. After manually installing a version matching the new kernel, I got X11 back immediately:

$ sudo apt-get install linux-restricted-modules-2.6.15-27-686

I do not know if this is "normal" behaviour, but I would definitely like to not have to repair my system after a seemingly flawless upgrade....

4 comments:

Anonymous said...

Thank you. This advice was really helpful, since I ran to the same problem today!

Anonymous said...

Worked like a charm. Thanks for posting this! I was trying to do solve the same problem on a different kernel.

Xorg.0.log:(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!

root@chili:/var/log# uname -a
Linux chili 2.6.15-28-386 #1 PREEMPT Thu May 10 09:45:43 UTC 2007 i686 GNU/Linux

But the restricted kernel modules package was linux-restricted-modules-2.6.15-27-686

so...

root@chili:/var/log# apt-get install linux-restricted-modules-2.6.15-28-386

And it works!

Anonymous said...

I just had the same problem today with 2.6.20-17-generic. Thanks very much for this posting!

Venkatraman.S said...

does this problem persist even in the newer version(Hardy) ?