During upgrade of kernel - X doesn't start if you use nvidia

Bug #816635 reported by Dejan
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers (Ubuntu)
Invalid
High
Alberto Milone

Bug Description

Hi,

When I upgrade kernel (for last two times - from 3.0.0.5->3.0.0.6->3.0.0.7), my X doesn't start because I am using nvidia graphic drivers and they are not in kernel.
My workaround is to login as root (Alt-F1) and run command: apt-get install --reinstall nvidia-current, which then incorporates nvidia driver into kernel.

Maybe dkms something would be enough to fix this problem.

Thanks
Dejan

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: xorg 1:7.6+7ubuntu6
ProcVersionSignature: Ubuntu 3.0.0-7.8-generic 3.0.0
Uname: Linux 3.0.0-7-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 275.09.07 Wed Jun 8 14:16:46 PDT 2011
 GCC version: gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-5ubuntu2)
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,maximumize,imgjpeg,decor,shift,imgsvg,gnomecompat,move,resize,regex,put,loginout,imgpng,wobbly,cube,rotate,switcher,unityshell,ring]
CompositorRunning: None
Date: Tue Jul 26 22:30:15 2011
DistUpgraded: Log time: 2011-07-15 00:29:12.641212
DistroCodename: oneiric
DistroVariant: ubuntu
GraphicsCard:
 nVidia Corporation G86 [GeForce 8400 GS] [10de:0422] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: LeadTek Research Inc. Device [107d:20c9]
JockeyStatus:
 xorg:nvidia_173 - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
 xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, Not in use)
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.0.0-7-generic root=UUID=681508d6-2f72-4714-8b8b-2554cef10234 ro quit splash vga=795 quit splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UdevDb: Error: [Errno 2] No such file or directory
UpgradeStatus: Upgraded to oneiric on 2011-07-15 (11 days ago)
dmi.bios.date: 05/16/2007
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 6.00 PG
dmi.board.name: K8NF4X-AM2
dmi.board.vendor: Albatron
dmi.chassis.type: 3
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr6.00PG:bd05/16/2007:svn:pn:pvr:rvnAlbatron:rnK8NF4X-AM2:rvr:cvn:ct3:cvr:
version.compiz: compiz 1:0.9.5.0-0ubuntu1
version.ia32-libs: ia32-libs 20090808ubuntu13
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11~1-0ubuntu4
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11~1-0ubuntu4
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu6
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.2-1ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.0-3ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

Revision history for this message
Dejan (dejan-rodiger) wrote :
Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Dennis New (dennisn) wrote :

I believe I ran into a similar problem, but with the older 2.6.38 kernel -- (re)installing nvidia-173 wouldn't build the kernel module. It turns out it needs the linux-headers for that particular kernel, to build :p. I believe that's a bug in nvidia-173 -- failing to install the linux-headers as a dependency? I didn't try reinstalling nvidia-current... but I'm guessing if that works, it does have the proper dependencies?

Revision history for this message
danizmax (danizmax) wrote :

I have linux-headers installed and the nvidia module never builds, I tried also reinstalling nvidia-current and linux-headers with no luck.

Revision history for this message
Bryce Harrington (bryce) wrote :

When reporting build failures for proprietary modules, you need to include the dkms build files that show what the error is.

So you need to reproduce the problem and then gather /var/lib/dkms/*/*/build/make.log and the output of `dkms status`

Changed in nvidia-graphics-drivers (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
danizmax (danizmax) wrote :
Download full text (50.8 KiB)

When running sudo apt-get install nvidia-current:

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  nvidia-current
0 upgraded, 1 newly installed, 0 to remove and 95 not upgraded.
Need to get 0 B/31.6 MB of archives.
After this operation, 92.7 MB of additional disk space will be used.
Selecting previously deselected package nvidia-current.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 244597 files and directories currently installed.)
Unpacking nvidia-current (from .../nvidia-current_280.13-0ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up nvidia-current (280.13-0ubuntu1) ...
Loading new nvidia-current-280.13 DKMS files...
Building only for 3.0.0-8-generic-pae
Building for architecture i686
Building initial module for 3.0.0-8-generic-pae
Done.

nvidia-current:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.0.0-8-generic-pae/updates/dkms/

depmod....

DKMS: install Completed.
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...

make.log was found in /var/lib/dkms/nvidia-current/kernel-3.0.0-8-generic-pae-i686/log though :

DKMS make.log for nvidia-current-280.13 for kernel 3.0.0-8-generic-pae (i686)
Tue Aug 23 07:12:36 CEST 2011
NVIDIA: calling KBUILD...
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
 echo; \
 echo " ERROR: Kernel configuration is invalid."; \
 echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
 echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
 echo; \
 /bin/false)
mkdir -p /var/lib/dkms/nvidia-current/280.13/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-current/280.13/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/nvidia-current/280.13/build
  cc -Wp,-MD,/var/lib/dkms/nvidia-current/280.13/build/.nv.o.d -nostdinc -isystem /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.6.1/include -I/usr/src/linux-headers-3.0.0-8-generic-pae/arch/x86/include -Iarch/x86/include/generated -Iinclude -include include/generated/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-prot...

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks. Looks like the module is building ok, but perhaps isn't installing where it's supposed to. Assigning to alberto to see what's going on.

Changed in nvidia-graphics-drivers (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
status: Incomplete → Triaged
Revision history for this message
danizmax (danizmax) wrote :

Btw, not sure if that's related, but after the system boots, the screen turnes off.

Revision history for this message
Alberto Milone (albertomilone) wrote :

I don't see the headers for the kernel in use in the DpkgLog.txt of the original reporter. This means that the module was never built because he didn't install the required headers.

As for danizmax, the module was built and installed correctly:
nvidia-current, 280.13, 3.0.0-8-generic-pae, i686: installed

If modprobe doesn't load the module, then it means that his card is simply not supported by nvidia-current.

I'm marking this bug report as invalid.

Changed in nvidia-graphics-drivers (Ubuntu):
status: Triaged → Invalid
Revision history for this message
danizmax (danizmax) wrote :

Not true! modprobe nvidia says the driver does not exist...

Also on the followinf link you can see that my graphic card GTS 250 is supported by this driver:

http://www.nvidia.com/object/linux-display-ia32-280.13-driver.html

None of official nvidia drivers work for me at the moment, only open source drivers...

Revision history for this message
Alberto Milone (albertomilone) wrote :

danizmax: is "cryptsetup" cryptsetup installed on your system?

If not, can you attach the output of this command, please?

cat /usr/share/initramfs-tools/conf-hooks.d/*

Revision history for this message
Alberto Milone (albertomilone) wrote :

sorry, I meant to say the "cryptsetup" package.

Revision history for this message
danizmax (danizmax) wrote :

Sorry I already have cryptsetup installed at the newest version 2:1.1.3-4ubunt.

If you need anything else let me know...

Revision history for this message
Incze GASPAR (inczegaspar) wrote :

The 11.10 Beta1 update trashed my Ubuntu, I would be delighted if you could share some useful tips how to recover it.

I already tried to purge and reinstall nvidia-173 and nvidia-current with no success (video card: Nvidia GeForce 8400M GS)

Revision history for this message
Alberto Milone (albertomilone) wrote :

@danizmax: then you're facing bug #839524

@Incze: not in this bug report, please. Feel free to file a new bug report about your problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.