Xorg crashes after log out

Hi everybody,

I am running Opensuse 12.1 on a new machine with a Geforce GT 440. I have installed the latest nvidia driver and the nvidia features work properly but I keep having the following problem:

  • when I log out xorg crashes and I can´t even use the other terminals any more (tty1 to 6). I can however, still ssh to my computer and inquiry the running processes and of course xorg is dead.

The problem does not appear when booting failsafe.
I am a newbie in linux so please answer foolproof!

Thanks in advance.

paulzsen,

do you have use of virtual consoles (ctrl-f1, etc) prior to xorg crashing? i ask because framebuffer issues exist for the nvidia drivers which make the virtual consoles flaky, or in my case, completely unusable. if you uncover that they don’t work on your setup, you can do the following:

as root, open /boot/grub/menu.lst and for your main boot entry, set: vga=normal

hopefully, this might also give you access to your machine (without ssh) after a xorg crash.

next thing to do would be to post the contents of /var/log/Xorg.0.log (use code tags as per forum rules to post the output).

Well, you can unset DISPLAY in the ssh terminal and restart X from there. You might be able to get the console back … not a solution though. The problem is that while exiting improperly (i.e crashing), X didn’t release the console (monitor + keyboard). Therefore you can neither type nor see.

Hi mrOz, thank you for your answer.
I first tried to do what please_try_again posted (thanks to you too!) to try to recover my console. For that, after crash I did ssh to my pc and typed:
“DISPLAY=”
I hope that´s what please_try_again meant with unsetting DISPLAY. Right afterwards I tried to restart my xorg typing startx and it didn´t work either.
I copy the Xorg.0.log at the end of the post. I don´t understand what you meant with code tags so I´m sorry if I post it wrong.

Thanks again


81902.513]
X.Org X Server 1.10.4
Release Date: 2011-08-19
81902.513] X Protocol Version 11, Revision 0
81902.513] Build Operating System: openSUSE SUSE LINUX
81902.513] Current Operating System: Linux ismpc52 3.1.10-1.16-default #1 SMP Wed Jun 27 05:21:40 UTC 2012 (d016078) x86_64
81902.513] Kernel command line: root=/dev/disk/by-id/ata-ST31000524AS_9VPDD2RG-part1 resume=/dev/disk/by-id/ata-ST31000524AS_9VPDD2RG-part2 splash=silent quiet nomodeset vga=0x31a
81902.513] Build Date: 10 November 2011 03:34:36PM
81902.513]
81902.513] Current version of pixman: 0.24.0
81902.513] Before reporting problems, check X.Org Wiki - Home
to make sure that you have the latest version.
81902.513] Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
81902.513] (==) Log file: “/var/log/Xorg.0.log”, Time: Tue Aug 7 13:33:39 2012
81902.514] (==) Using config file: “/etc/X11/xorg.conf”
81902.514] (==) Using config directory: “/etc/X11/xorg.conf.d”
81902.514] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
81902.514] (==) ServerLayout “Layout0”
81902.514] (
) |–>Screen “Screen0” (0)
81902.514] () | |–>Monitor “Monitor0”
81902.514] (
) | |–>Device “Device0”
81902.514] () |–>Input Device “Keyboard0”
81902.514] (
) |–>Input Device “Mouse0”
81902.514] (**) Option “Xinerama” “0”
81902.514] (==) Automatically adding devices
81902.514] (==) Automatically enabling devices
81902.514] (==) FontPath set to:
/usr/share/fonts/misc:unscaled,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/URW/,
/usr/share/fonts/cyrillic:unscaled,
/usr/share/fonts/truetype/,
built-ins
81902.514] (==) ModulePath set to “/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules”
81902.514] (WW) Hotplugging is on, devices using drivers ‘kbd’, ‘mouse’ or ‘vmmouse’ will be disabled.
81902.514] (WW) Disabling Keyboard0
81902.514] (WW) Disabling Mouse0
81902.514] (II) Loader magic: 0x7d9140
81902.514] (II) Module ABI versions:
81902.514] X.Org ANSI C Emulation: 0.4
81902.514] X.Org Video Driver: 10.0
81902.514] X.Org XInput driver : 12.2
81902.514] X.Org Server Extension : 5.0
81902.514] (–) PCI:*(0:1:0:0) 10de:0de0:1458:3518 rev 161, Mem @ 0xfa000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x???/524288
81902.515] (II) Open ACPI successful (/var/run/acpid.socket)
81902.515] (II) LoadModule: “extmod”
81902.515] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
81902.515] (II) Module extmod: vendor=“X.Org Foundation”
81902.515] compiled for 1.10.4, module version = 1.0.0
81902.515] Module class: X.Org Server Extension
81902.515] ABI class: X.Org Server Extension, version 5.0
81902.515] (II) Loading extension MIT-SCREEN-SAVER
81902.515] (II) Loading extension XFree86-VidModeExtension
81902.515] (II) Loading extension XFree86-DGA
81902.515] (II) Loading extension DPMS
81902.515] (II) Loading extension XVideo
81902.515] (II) Loading extension XVideo-MotionCompensation
81902.515] (II) Loading extension X-Resource
81902.515] (II) LoadModule: “dbe”
81902.515] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
81902.515] (II) Module dbe: vendor=“X.Org Foundation”
81902.515] compiled for 1.10.4, module version = 1.0.0
81902.515] Module class: X.Org Server Extension
81902.515] ABI class: X.Org Server Extension, version 5.0
81902.515] (II) Loading extension DOUBLE-BUFFER
81902.515] (II) LoadModule: “glx”
81902.516] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
81902.521] (II) Module glx: vendor=“NVIDIA Corporation”
81902.521] compiled for 4.0.2, module version = 1.0.0
81902.521] Module class: X.Org Server Extension
81902.521] (II) NVIDIA GLX Module 295.59 Wed Jun 6 21:40:44 PDT 2012
81902.521] (II) Loading extension GLX
81902.521] (II) LoadModule: “record”
81902.522] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
81902.522] (II) Module record: vendor=“X.Org Foundation”
81902.522] compiled for 1.10.4, module version = 1.13.0
81902.522] Module class: X.Org Server Extension
81902.522] ABI class: X.Org Server Extension, version 5.0
81902.522] (II) Loading extension RECORD
81902.522] (II) LoadModule: “dri”
81902.522] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
81902.522] (II) Module dri: vendor=“X.Org Foundation”
81902.522] compiled for 1.10.4, module version = 1.0.0
81902.522] ABI class: X.Org Server Extension, version 5.0
81902.522] (II) Loading extension XFree86-DRI
81902.522] (II) LoadModule: “dri2”
81902.522] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
81902.522] (II) Module dri2: vendor=“X.Org Foundation”
81902.522] compiled for 1.10.4, module version = 1.2.0
81902.522] ABI class: X.Org Server Extension, version 5.0
81902.522] (II) Loading extension DRI2
81902.522] (II) LoadModule: “nvidia”
81902.522] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
81902.523] (II) Module nvidia: vendor=“NVIDIA Corporation”
81902.523] compiled for 4.0.2, module version = 1.0.0
81902.523] Module class: X.Org Video Driver
81902.523] (II) NVIDIA dlloader X Driver 295.59 Wed Jun 6 21:21:24 PDT 2012
81902.523] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
81902.523] (–) using VT number 2

81902.524] (II) Loading sub module “fb”
81902.524] (II) LoadModule: “fb”
81902.524] (II) Loading /usr/lib64/xorg/modules/libfb.so
81902.524] (II) Module fb: vendor=“X.Org Foundation”
81902.524] compiled for 1.10.4, module version = 1.0.0
81902.524] ABI class: X.Org ANSI C Emulation, version 0.4
81902.524] (II) Loading sub module “wfb”
81902.524] (II) LoadModule: “wfb”
81902.525] (II) Loading /usr/lib64/xorg/modules/libwfb.so
81902.525] (II) Module wfb: vendor=“X.Org Foundation”
81902.525] compiled for 1.10.4, module version = 1.0.0
81902.525] ABI class: X.Org ANSI C Emulation, version 0.4
81902.525] (II) Loading sub module “ramdac”
81902.525] (II) LoadModule: “ramdac”
81902.525] (II) Module “ramdac” already built-in
81902.525] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
81902.525] (II) Loading /usr/lib64/xorg/modules/libwfb.so
81902.525] (II) Loading /usr/lib64/xorg/modules/libfb.so
81902.525] () NVIDIA(0): Depth 24, (–) framebuffer bpp 32
81902.525] (==) NVIDIA(0): RGB weight 888
81902.525] (==) NVIDIA(0): Default visual is TrueColor
81902.525] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
81902.525] (
) NVIDIA(0): Option “TwinView” “1”
81902.525] () NVIDIA(0): Option “MetaModes” “DFP: nvidia-auto-select +0+0, CRT: nvidia-auto-select +1680+0”
81902.525] (
) NVIDIA(0): Option “TwinViewXineramaInfoOrder” “DFP-0”
81902.525] (**) NVIDIA(0): Enabling 2D acceleration
81902.941] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
81902.941] (EE) NVIDIA(0): check your system’s kernel log for additional error
81902.941] (EE) NVIDIA(0): messages and refer to Chapter 8: Common Problems in the
81902.941] (EE) NVIDIA(0): README for additional information.
81902.941] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
81902.941] (II) UnloadModule: “nvidia”
81902.941] (II) Unloading nvidia
81902.941] (II) UnloadModule: “wfb”
81902.941] (II) Unloading wfb
81902.941] (II) UnloadModule: “fb”
81902.941] (II) Unloading fb
81902.941] (EE) Screen(s) found, but none have a usable configuration.
81902.941]
Fatal server error:
81902.941] no screens found
81902.941]
Please consult the The X.Org Foundation support
at X.Org Wiki - Home
for help.
81902.941] Please also check the log file at “/var/log/Xorg.0.log” for additional information.
81902.941]

Hi again,

I tried now setting vga=normal in the default boot menu entry (it was set to vga=0x31a). I noticed that the virtual consoles are now displayed with big fonts. Then I logged out and the problem persists. This is the corresponding log right after crash.

regards


169.690]
X.Org X Server 1.10.4
Release Date: 2011-08-19
169.690] X Protocol Version 11, Revision 0
169.690] Build Operating System: openSUSE SUSE LINUX
169.690] Current Operating System: Linux ismpc52 3.1.10-1.16-default #1 SMP Wed Jun 27 05:21:40 UTC 2012 (d016078) x86_64
169.690] Kernel command line: root=/dev/disk/by-id/ata-ST31000524AS_9VPDD2RG-part1 resume=/dev/disk/by-id/ata-ST31000524AS_9VPDD2RG-part2 splash=silent quiet nomodeset vga=normal
169.690] Build Date: 10 November 2011 03:34:36PM
169.690]
169.690] Current version of pixman: 0.24.0
169.690] Before reporting problems, check X.Org Wiki - Home
to make sure that you have the latest version.
169.690] Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
169.690] (==) Log file: “/var/log/Xorg.0.log”, Time: Tue Aug 7 13:53:28 2012
169.690] (==) Using config file: “/etc/X11/xorg.conf”
169.690] (==) Using config directory: “/etc/X11/xorg.conf.d”
169.690] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
169.691] (==) ServerLayout “Layout0”
169.691] (
) |–>Screen “Screen0” (0)
169.691] () | |–>Monitor “Monitor0”
169.691] (
) | |–>Device “Device0”
169.691] () |–>Input Device “Keyboard0”
169.691] (
) |–>Input Device “Mouse0”
169.691] (**) Option “Xinerama” “0”
169.691] (==) Automatically adding devices
169.691] (==) Automatically enabling devices
169.691] (==) FontPath set to:
/usr/share/fonts/misc:unscaled,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/URW/,
/usr/share/fonts/cyrillic:unscaled,
/usr/share/fonts/truetype/,
built-ins
169.691] (==) ModulePath set to “/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules”
169.691] (WW) Hotplugging is on, devices using drivers ‘kbd’, ‘mouse’ or ‘vmmouse’ will be disabled.
169.691] (WW) Disabling Keyboard0
169.691] (WW) Disabling Mouse0
169.691] (II) Loader magic: 0x7d9140
169.691] (II) Module ABI versions:
169.691] X.Org ANSI C Emulation: 0.4
169.691] X.Org Video Driver: 10.0
169.691] X.Org XInput driver : 12.2
169.691] X.Org Server Extension : 5.0
169.692] (–) PCI:*(0:1:0:0) 10de:0de0:1458:3518 rev 161, Mem @ 0xfa000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x???/524288
169.692] (II) Open ACPI successful (/var/run/acpid.socket)
169.692] (II) LoadModule: “extmod”
169.692] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
169.692] (II) Module extmod: vendor=“X.Org Foundation”
169.692] compiled for 1.10.4, module version = 1.0.0
169.692] Module class: X.Org Server Extension
169.692] ABI class: X.Org Server Extension, version 5.0
169.692] (II) Loading extension MIT-SCREEN-SAVER
169.692] (II) Loading extension XFree86-VidModeExtension
169.692] (II) Loading extension XFree86-DGA
169.692] (II) Loading extension DPMS
169.692] (II) Loading extension XVideo
169.692] (II) Loading extension XVideo-MotionCompensation
169.692] (II) Loading extension X-Resource
169.692] (II) LoadModule: “dbe”
169.693] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
169.693] (II) Module dbe: vendor=“X.Org Foundation”
169.693] compiled for 1.10.4, module version = 1.0.0
169.693] Module class: X.Org Server Extension
169.693] ABI class: X.Org Server Extension, version 5.0
169.693] (II) Loading extension DOUBLE-BUFFER
169.693] (II) LoadModule: “glx”
169.693] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
169.700] (II) Module glx: vendor=“NVIDIA Corporation”
169.700] compiled for 4.0.2, module version = 1.0.0
169.700] Module class: X.Org Server Extension
169.700] (II) NVIDIA GLX Module 295.59 Wed Jun 6 21:40:44 PDT 2012
169.700] (II) Loading extension GLX
169.700] (II) LoadModule: “record”
169.700] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
169.700] (II) Module record: vendor=“X.Org Foundation”
169.700] compiled for 1.10.4, module version = 1.13.0
169.700] Module class: X.Org Server Extension
169.700] ABI class: X.Org Server Extension, version 5.0
169.700] (II) Loading extension RECORD
169.700] (II) LoadModule: “dri”
169.700] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
169.700] (II) Module dri: vendor=“X.Org Foundation”
169.700] compiled for 1.10.4, module version = 1.0.0
169.700] ABI class: X.Org Server Extension, version 5.0
169.700] (II) Loading extension XFree86-DRI
169.700] (II) LoadModule: “dri2”
169.701] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
169.701] (II) Module dri2: vendor=“X.Org Foundation”
169.701] compiled for 1.10.4, module version = 1.2.0
169.701] ABI class: X.Org Server Extension, version 5.0
169.701] (II) Loading extension DRI2
169.701] (II) LoadModule: “nvidia”
169.701] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
169.701] (II) Module nvidia: vendor=“NVIDIA Corporation”
169.701] compiled for 4.0.2, module version = 1.0.0
169.701] Module class: X.Org Video Driver
169.701] (II) NVIDIA dlloader X Driver 295.59 Wed Jun 6 21:21:24 PDT 2012
169.701] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
169.701] (++) using VT number 7

169.704] (II) Loading sub module “fb”
169.704] (II) LoadModule: “fb”
169.704] (II) Loading /usr/lib64/xorg/modules/libfb.so
169.704] (II) Module fb: vendor=“X.Org Foundation”
169.704] compiled for 1.10.4, module version = 1.0.0
169.704] ABI class: X.Org ANSI C Emulation, version 0.4
169.704] (II) Loading sub module “wfb”
169.704] (II) LoadModule: “wfb”
169.704] (II) Loading /usr/lib64/xorg/modules/libwfb.so
169.704] (II) Module wfb: vendor=“X.Org Foundation”
169.704] compiled for 1.10.4, module version = 1.0.0
169.704] ABI class: X.Org ANSI C Emulation, version 0.4
169.704] (II) Loading sub module “ramdac”
169.704] (II) LoadModule: “ramdac”
169.704] (II) Module “ramdac” already built-in
169.704] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
169.704] (II) Loading /usr/lib64/xorg/modules/libwfb.so
169.704] (II) Loading /usr/lib64/xorg/modules/libfb.so
169.704] () NVIDIA(0): Depth 24, (–) framebuffer bpp 32
169.704] (==) NVIDIA(0): RGB weight 888
169.704] (==) NVIDIA(0): Default visual is TrueColor
169.704] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
169.704] (
) NVIDIA(0): Option “TwinView” “1”
169.704] () NVIDIA(0): Option “MetaModes” “DFP: nvidia-auto-select +0+0, CRT: nvidia-auto-select +1680+0”
169.704] (
) NVIDIA(0): Option “TwinViewXineramaInfoOrder” “DFP-0”
169.704] () NVIDIA(0): Enabling 2D acceleration
182.270] (II) NVIDIA(GPU-0): Display (BenQ GL2440H (CRT-1)) does not support NVIDIA 3D
182.270] (II) NVIDIA(GPU-0): Vision stereo.
182.301] (II) NVIDIA(GPU-0): Display (DELL 2208WFP (DFP-0)) does not support NVIDIA 3D
182.301] (II) NVIDIA(GPU-0): Vision stereo.
182.301] (II) NVIDIA(0): NVIDIA GPU GeForce GT 440 (GF108) at PCI:1:0:0 (GPU-0)
182.301] (–) NVIDIA(0): Memory: 1048576 kBytes
182.301] (–) NVIDIA(0): VideoBIOS: 70.08.4d.00.00
182.301] (II) NVIDIA(0): Detected PCI Express Link width: 16X
182.301] (–) NVIDIA(0): Interlaced video modes are supported on this GPU
185.304] (–) NVIDIA(0): Connected display device(s) on GeForce GT 440 at PCI:1:0:0
185.304] (–) NVIDIA(0): BenQ GL2440H (CRT-1)
185.304] (–) NVIDIA(0): DELL 2208WFP (DFP-0)
185.304] (–) NVIDIA(0): BenQ GL2440H (CRT-1): 400.0 MHz maximum pixel clock
185.304] (–) NVIDIA(0): DELL 2208WFP (DFP-0): 330.0 MHz maximum pixel clock
185.304] (–) NVIDIA(0): DELL 2208WFP (DFP-0): Internal Dual Link TMDS
185.304] (
) NVIDIA(0): TwinView enabled
185.304] (II) NVIDIA(0): Display Devices found referenced in MetaMode: CRT-1, DFP-0
185.304] () NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
185.304] (
) NVIDIA(0): device BenQ GL2440H (CRT-1) (Using EDID frequencies has
185.304] () NVIDIA(0): been enabled on all display devices.)
185.307] (
) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
185.307] () NVIDIA(0): device DELL 2208WFP (DFP-0) (Using EDID frequencies has
185.307] (
) NVIDIA(0): been enabled on all display devices.)
185.313] (II) NVIDIA(0): Assigned Display Devices: CRT-1, DFP-0
185.314] (II) NVIDIA(0): Validated modes:
185.314] (II) NVIDIA(0):
185.314] (II) NVIDIA(0): “DFP:nvidia-auto-select+0+0,CRT:nvidia-auto-select+1680+0”
185.314] (II) NVIDIA(0): Virtual screen size determined to be 3600 x 1080
185.333] (–) NVIDIA(0): DPI set to (92, 91); computed from “UseEdidDpi” X config
185.334] (–) NVIDIA(0): option
185.334] (–) Depth 24 pixmap format is 32 bpp
185.334] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
185.334] (II) NVIDIA: access.
188.341] (II) NVIDIA(0): Setting mode
188.341] (II) NVIDIA(0): “DFP:nvidia-auto-select+0+0,CRT:nvidia-auto-select+1680+0”

I meant:

unset DISPLAY

you could also have used:

DISPLAY=""

but not:

"DISPLAY="

Since 11.4, you have to restore the setuid bit if you want to run startx as user. See Release notes below:

**[noparse]

[/noparse]** 
...
some text 
....
**[noparse]

[/noparse]**