PDA

View Full Version : [ubuntu] Unable to boot after running "sudo nvidia-xconfig"-command



Schtenne
September 3rd, 2011, 09:29 PM
The main reason is to have the latest working driver for my GPU (nVidia GeForce GT540M).

In System -> Administration -> Additional Drivers it says "This driver is activated but not currently in use" (see picture below).

http://s3.postimage.org/22clj1fd0/Screenshot_Additional_Drivers.jpg (http://postimage.org/image/22clj1fd0/)

As the headline says, I ran:
sudo nvidia-xconfig resulting in a new xorg.conf-file generated and replaced the current one.

But upon rebooting, Ubuntu refused booting. I'm currently running the Linux 2.6.39-020639rc4-generic x86_64-kernel. I tried booting older versions as well but in vain. So I went into failsafe mode and restored the original xorg.conf and it went back to normal again.

What in the newly generated xorg.conf could have ****** up the boot sequence ???

Original xorg.conf:


Section "Device"
Identifier "Default Device"
Option "NoLogo" "True"
EndSection
Generated xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 270.41.06 (buildmeister@swio-display-x86-rhel47-08.nvidia.com) Mon Apr 18 15:14:00 PDT 2011

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
By looking at the posted picture above, am I running the latest driver for my GPU ???

And shouldn't Additional Drivers display that the driver is not only activated, but also in use?
Or does Ubuntu interpret the driver as "not in use" when no application requiring explicit use of the driver is running?

infested999
September 3rd, 2011, 10:48 PM
What went wrong when it didn't boot? Did it get to the bootloader where it asks you if you want to launch Ubuntu or launch Recovery Mode?

Schtenne
September 4th, 2011, 03:05 PM
Yep, the bootloader did start, where I could choose 3 versions of the linux kernel including all 3 versions in recovery mode as well as Win7. and memory test. It's upon starting Ubuntu the problem appeared.

Scijox
September 4th, 2011, 08:12 PM
Do you have a sandy bridge processor with optimus technology. If so then installing the nvidia driver makes it so that you cant detect your own display when x is started. You should be able to see the error message by logging on using another virtual shell and using startx.

I also have the 540M card and have the same problem but I know mine is related to the Optimus technology.

Schtenne
September 5th, 2011, 07:51 PM
I don't think so, cause I can't find anything about that by running sysinfo. Here's my sysinfo-log so you can correct me if I'm wrong:


System information report, generated by Sysinfo: 9/5/2011 8:45:26 PM
http://sourceforge.net/projects/gsysinfo

SYSTEM INFORMATION
Running Ubuntu Linux, the Ubuntu 11.04 (natty) release.
GNOME: 2.32.1 (Ubuntu 2011-04-14)
Kernel version: 2.6.39-020639rc4-generic (#201104191410 SMP Tue Apr 19 14:19:01 UTC 2011)
GCC: 4.5.2 (x86_64-linux-gnu)
Xorg: 1.10.1 (11 August 2011 03:43:05PM)
Hostname: HondaPower
Uptime: 0 days 1 h 43 min

CPU INFORMATION
GenuineIntel, Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
Number of CPUs: 4
CPU clock currently at 800.000 MHz with 3072 KB cache
Numbering: family(6) model(42) stepping(7)
Bogomips: 4588.95
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid

MEMORY INFORMATION
Total memory: 5892 MB
Total swap: 4767 MB

STORAGE INFORMATION
SCSI device - scsi0
Vendor: ATA
Model: WDC WD6400BPVT-8
SCSI device - scsi1
Vendor: Slimtype
Model: DVD A DS8A5SH

HARDWARE INFORMATION
MOTHERBOARD
Host bridge
Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. Device 1277
PCI bridge(s)
Intel Corporation 2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
Intel Corporation 6 Series Chipset Family PCI Express Root Port 1 (rev b5) (prog-if 00 [Normal decode])
Intel Corporation 6 Series Chipset Family PCI Express Root Port 2 (rev b5) (prog-if 00 [Normal decode])
Intel Corporation 6 Series Chipset Family PCI Express Root Port 6 (rev b5) (prog-if 00 [Normal decode])
USB controller(s)
Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
ISA bridge
Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1277

GRAPHIC CARD
VGA controller
nVidia Corporation Device 0df4 (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 15f2

SOUND CARD
Multimedia controller
Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1ac3

NETWORK
Network controller
Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
Subsystem: AzureWave Device 2c37
Ethernet controller
Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1277

Pyho
September 5th, 2011, 08:09 PM
Have you tried outright deleting the xorg.conf file? When I ran nvidia-xconfig on my system, ubuntu would boot into tty1 mode. Only deleting the xorg.conf allowed X to start. I also stuck with the nouveau drivers. The proprietary didn't seem to work at all on my system.