You are not logged in.

#1 2016-11-08 16:19:48

Link64
Member
Registered: 2015-02-10
Posts: 10

Xorg crashes instantly after updating openchrome and kernel

Hello there,

I have an old laptop here with a VIA Chrome 9 graphic chipset and I've been running archlinux mainly as a test machine. I haven't used it for a while, so I updated it this week when I started it up again.

After rebooting later, Xorg didn't start anymore, instead the screen just turned black and the system was completely inoperable, I had to turn down power in order to do anything at all. I figured it would be xorg so I disabled lightdm and I came into a shell again.

I have not a single clue on why this happened. I updated everything that was available including xorg, openchrome and the linux kernel.

My Xorg.0.log is empty (?!) but there is an Xorg.0.log.old which seems to be the file that it's logging to. I can not check if that's actually the case because the moment Xorg start the system is not doing anything at all anymore. I have not tried to log in via SSH but I can try it if anyone things that might be helping.

Xorg.0.log.old:

[   232.029] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[   232.029] X Protocol Version 11, Revision 0
[   232.029] Build Operating System: Linux 4.5.4-1-ARCH i686 
[   232.029] Current Operating System: Linux amilo-arch 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 19:10:31 CET 2016 i686
[   232.029] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=b4f9750c-0385-4677-a733-076a2c8a0a17 rw
[   232.029] Build Date: 19 July 2016  05:56:07PM
[   232.029]  
[   232.029] Current version of pixman: 0.34.0
[   232.029] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   232.029] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   232.029] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Nov  6 13:22:34 2016
[   232.029] (==) Using config file: "/etc/X11/xorg.conf"
[   232.029] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   232.030] (==) ServerLayout "X.org Configured"
[   232.030] (**) |-->Screen "Screen0" (0)
[   232.030] (**) |   |-->Monitor "Monitor0"
[   232.030] (**) |   |-->Device "Card0"
[   232.030] (**) |-->Input Device "Mouse0"
[   232.030] (**) |-->Input Device "Keyboard0"
[   232.030] (==) Automatically adding devices
[   232.030] (==) Automatically enabling devices
[   232.030] (==) Automatically adding GPU devices
[   232.030] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   232.030] (**) FontPath set to:
	/usr/share/fonts/TTF,
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[   232.030] (==) ModulePath set to "/usr/lib/xorg/modules"
[   232.030] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   232.030] (WW) Disabling Mouse0
[   232.030] (WW) Disabling Keyboard0
[   232.030] (II) Loader magic: 0x82a96c0
[   232.030] (II) Module ABI versions:
[   232.030] 	X.Org ANSI C Emulation: 0.4
[   232.030] 	X.Org Video Driver: 20.0
[   232.030] 	X.Org XInput driver : 22.1
[   232.030] 	X.Org Server Extension : 9.0
[   232.032] (++) using VT number 1

[   232.032] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   232.034] (--) PCI:*(0:1:0:0) 1106:3371:1734:10f7 rev 1, Mem @ 0xa0000000/536870912, 0xc8000000/16777216, BIOS @ 0x????????/131072
[   232.034] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   232.034] (II) LoadModule: "glx"
[   232.034] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   232.036] (II) Module glx: vendor="X.Org Foundation"
[   232.036] 	compiled for 1.18.4, module version = 1.0.0
[   232.036] 	ABI class: X.Org Server Extension, version 9.0
[   232.036] (==) AIGLX enabled
[   232.036] (II) LoadModule: "openchrome"
[   232.036] (II) Loading /usr/lib/xorg/modules/drivers/openchrome_drv.so
[   232.036] (II) Module openchrome: vendor="http://www.freedesktop.org/wiki/Openchrome/"
[   232.036] 	compiled for 1.18.3, module version = 0.5.0
[   232.036] 	Module class: X.Org Video Driver
[   232.036] 	ABI class: X.Org Video Driver, version 20.0
[   232.036] (II) OPENCHROME: Driver for VIA Chrome chipsets: CLE266,
	KM400 / KM400A / KN400 / P4M800, K8M800 / K8N800,
	PM800 / PN800 / PM880 / CN333 / CN400, P4M800 Pro / VN800 / CN700,
	CX700 / VX700, P4M890 / VN890 / CN800, K8M890 / K8N890,
	P4M900 / VN896 / CN896, VX800 / VX820, VX855 / VX875, VX900
[   232.037] (!!) VIA Technologies does not support this driver in any way.
[   232.037] (!!) For support, please refer to http://www.freedesktop.org/wiki/Openchrome/.
[   232.037] (!!) (openchrome 0.5.0 release)
[   232.037] (II) CHROME(0): viaPreInit
[   232.037] (II) CHROME(0): VIAGetRec
[   232.037] (--) CHROME(0): Chipset: P4M900 / VN896 / CN896
[   232.037] (--) CHROME(0): Chipset revision: 0
[   232.199] (EE) CHROME(0): [drm] Failed to open DRM device for pci:0000:01:00.0: No such file or directory
[   232.199] (II) Loading sub module "vgahw"
[   232.199] (II) LoadModule: "vgahw"
[   232.200] (II) Loading /usr/lib/xorg/modules/libvgahw.so
[   232.200] (II) Module vgahw: vendor="X.Org Foundation"
[   232.200] 	compiled for 1.18.4, module version = 0.1.0
[   232.200] 	ABI class: X.Org Video Driver, version 20.0
[   232.200] (--) CHROME(0): Probed amount of VideoRAM = 262144 kB
[   232.200] (II) CHROME(0): Entered viaMapMMIO.
[   232.200] (--) CHROME(0): Mapping MMIO at address 0xC8000000 with size 52 KB.
[   232.200] (--) CHROME(0): Mapping 2D Host BitBLT space at address 0xC8200000 with size 2048 KB.
[   232.200] (--) CHROME(0): Mapping the frame buffer at address 0xA0000000 with size 262144 KB.
[   232.200] (EE) CHROME(0): Unable to map the frame buffer.
Error: Invalid argument (22)
[   232.200] (II) CHROME(0): Exiting viaMapMMIO.
[   232.200] (II) CHROME(0): VIAFreeRec
[   232.200] (II) CHROME(0): VIAFreeScreen
[   232.200] (II) CHROME(0): VIAFreeRec
[   232.200] (II) UnloadModule: "openchrome"
[   232.200] (II) UnloadSubModule: "vgahw"
[   232.200] (II) Unloading vgahw
[   232.201] (EE) Screen(s) found, but none have a usable configuration.
[   232.201] (EE) 
Fatal server error:
[   232.201] (EE) no screens found(EE) 
[   232.201] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   232.201] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   232.201] (EE) 
[   232.214] (EE) Server terminated with error (1). Closing log file.

xorg.conf

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	FontPath "/usr/share/fonts/TTF"
EndSection

Section "Module"
	Load "dri"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    30.0 - 53.0
	VertRefresh  50.0 - 60.0
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "openchrome"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
EndSection

viafb is blacklisted as suggested by the wiki because I had trouble installing back then.
PCI:1:0:0 is "VGA compatible controller: VIA Technologies, Inc. CN896/VN896/P4M900 [Chrome 9 HC] (rev 01)" according to lspci

If anyone has the slightest idea what might be the problem please tell me. Thank you.

Offline

#2 2016-11-08 17:49:08

seth
Member
Registered: 2012-09-03
Posts: 49,988

Re: Xorg crashes instantly after updating openchrome and kernel

Online

#3 2016-11-08 19:20:46

Link64
Member
Registered: 2015-02-10
Posts: 10

Re: Xorg crashes instantly after updating openchrome and kernel

Yes, installed it just now and no change.

I also just noticed now, that Xorg.0.log.old as well as Xorg.0.log are not being modified when it crashes. Thus the error in the log *might* be unrelated...

Last edited by Link64 (2016-11-08 19:26:50)

Offline

#4 2016-11-08 21:03:55

seth
Member
Registered: 2012-09-03
Posts: 49,988

Re: Xorg crashes instantly after updating openchrome and kernel

Notice that the Xorg log now either resides in /var/log or ~/.local/share/xorg - depending on how it's started.
ssh is oc a good idea if the log can no longer be synced eg. because it's less an Xorg and more of a kernel issue.

Online

#5 2016-11-08 21:39:44

Link64
Member
Registered: 2015-02-10
Posts: 10

Re: Xorg crashes instantly after updating openchrome and kernel

The one that I posted earlier is from /var/log, ~/.local/share/xorg does not exist.

Running lightdm over ssh starts xorg successfully on the machine.

If I run it locally it still results in the screen being shut off and nothing happening. Same happens, if I enable lightdm as service in systemd. Trying to connect via ssh after the screen turns off, doesn't give a response. Being connected while starting xorg results in a timeout after a few seconds.

What is going on? This seems kind of weird to me.

Last edited by Link64 (2016-11-08 22:01:27)

Offline

#6 2016-11-08 21:45:12

seth
Member
Registered: 2012-09-03
Posts: 49,988

Re: Xorg crashes instantly after updating openchrome and kernel

Running it locally implies having an open session on VT1 and try to get one on VT2 - does it?Is the "dead" system still accessible via ssh?
If so, is there a running X11 server?
If so, can you talk to it (ie. start eg. an xterm)?
What does "xrandr -q" say then?
If that's unsuspicious, do you get back a screen when stopping lightdm (and terminating the X11 server)?

You could try to use a VGA console (if you don't already)
https://wiki.archlinux.org/index.php/GR … ramebuffer

Online

#7 2016-11-08 22:02:05

Link64
Member
Registered: 2015-02-10
Posts: 10

Re: Xorg crashes instantly after updating openchrome and kernel

I have to correct myself: I was wrong.

It was not SSH that made it magically working, it was actually pluggin in a second monitor. I tried that earlier without success but now it seems to be working every time. So, if the second monitor is connected, the laptop monitor turns on when starting xorg. If the second monitor is not connected, it crashes every time, to the point that sshd does not give a response anymore and seemingly the entire system is entirely dead.

Stopping lightdm results in a frozen screen with some artifacts of the previously displayed image. I can not do anything at this point because I can not see anything anymore, but I can access the system via SSH and start xorg again, which works just fine.

xrandr -q output:

Screen 0: minimum 320 x 200, current 1280 x 800, maximum 2048 x 2048
LVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800      59.97*+
VGA-1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00 +  60.00  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x960      60.00  
   1280x800      59.81* 
   1152x864      75.00  
   1280x720      60.00  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    59.94  
   720x400       70.08

Grub was already set up with `linux vga=normal` so `GRUB_TERMINAL_OUTPUT=console` had no effect.

Last edited by Link64 (2016-11-08 22:21:08)

Offline

#8 2016-11-08 23:02:21

seth
Member
Registered: 2012-09-03
Posts: 49,988

Re: Xorg crashes instantly after updating openchrome and kernel

Tried to pass "modprobe.blacklist=viafb" to the kernel parameters or use a VGA console https://wiki.archlinux.org/index.php/GR … ramebuffer ?

Online

#9 2016-11-08 23:12:04

Link64
Member
Registered: 2015-02-10
Posts: 10

Re: Xorg crashes instantly after updating openchrome and kernel

Yes. As mentioned before, viafb is blacklisted and GRUB_TERMINAL_OUTPUT is set to console

Offline

Board footer

Powered by FluxBB