You are not logged in.

#1 2016-04-14 14:40:20

Mesopotamian
Member
Registered: 2016-04-11
Posts: 11

[Solved]Arch Xorg Problem: startx failed

I installed Arch in Virtualbox and followed the General recommendations Wiki, but startx failed:

[  1888.867] 
X.Org X Server 1.18.3
Release Date: 2016-04-04
[  1888.868] X Protocol Version 11, Revision 0
[  1888.868] Build Operating System: Linux 4.2.5-1-ARCH x86_64 
[  1888.869] Current Operating System: Linux localhost 4.5.0-1-ARCH #1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016 x86_64
[  1888.869] Kernel command line: initrd=\initramfs-linux.img root=PARTUUID=ee8b6f99-c11f-4f2c-883d-6ad5a4ae3c01 rw
[  1888.870] Build Date: 05 April 2016  05:24:02PM
[  1888.870]  
[  1888.870] Current version of pixman: 0.34.0
[  1888.871] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  1888.871] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1888.875] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr 14 18:48:39 2016
[  1888.876] (==) Using config file: "/etc/X11/xorg.conf"
[  1888.877] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1888.878] (==) ServerLayout "X.org Configured"
[  1888.878] (**) |-->Screen "Screen0" (0)
[  1888.878] (**) |   |-->Monitor "Monitor0"
[  1888.878] (**) |   |-->Device "Card0"
[  1888.878] (**) |-->Input Device "Mouse0"
[  1888.878] (**) |-->Input Device "Keyboard0"
[  1888.878] (==) Automatically adding devices
[  1888.878] (==) Automatically enabling devices
[  1888.878] (==) Automatically adding GPU devices
[  1888.878] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1888.878] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  1888.878] 	Entry deleted from font path.
[  1888.878] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  1888.878] 	Entry deleted from font path.
[  1888.878] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  1888.878] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  1888.878] 	Entry deleted from font path.
[  1888.878] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  1888.878] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  1888.878] 	Entry deleted from font path.
[  1888.878] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  1888.878] 	Entry deleted from font path.
[  1888.878] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  1888.878] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  1888.878] 	Entry deleted from font path.
[  1888.878] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  1888.878] (**) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[  1888.878] (**) ModulePath set to "/usr/lib/xorg/modules"
[  1888.878] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  1888.878] (WW) Disabling Mouse0
[  1888.878] (WW) Disabling Keyboard0
[  1888.878] (II) Loader magic: 0x819d20
[  1888.878] (II) Module ABI versions:
[  1888.878] 	X.Org ANSI C Emulation: 0.4
[  1888.878] 	X.Org Video Driver: 20.0
[  1888.878] 	X.Org XInput driver : 22.1
[  1888.878] 	X.Org Server Extension : 9.0
[  1888.879] (++) using VT number 1

[  1888.879] (--) controlling tty is VT number 1, auto-enabling KeepTty
[  1888.880] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[  1888.888] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0x80000000/16777216
[  1888.888] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  1888.888] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  1888.888] (II) LoadModule: "glx"
[  1888.888] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1888.894] (II) Module glx: vendor="X.Org Foundation"
[  1888.894] 	compiled for 1.18.3, module version = 1.0.0
[  1888.894] 	ABI class: X.Org Server Extension, version 9.0
[  1888.894] (==) AIGLX enabled
[  1888.895] (II) LoadModule: "modesetting"
[  1888.895] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  1888.896] (II) Module modesetting: vendor="X.Org Foundation"
[  1888.896] 	compiled for 1.18.3, module version = 1.18.3
[  1888.896] 	Module class: X.Org Video Driver
[  1888.896] 	ABI class: X.Org Video Driver, version 20.0
[  1888.896] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1888.901] (EE) open /dev/dri/card0: No such file or directory
[  1888.901] (WW) Falling back to old probe method for modesetting
[  1888.901] (EE) open /dev/dri/card0: No such file or directory
[  1888.901] (EE) Screen 0 deleted because of no matching config section.
[  1888.901] (II) UnloadModule: "modesetting"
[  1888.901] (EE) Device(s) detected, but none match those in the config file.
[  1888.901] (EE) 
Fatal server error:
[  1888.901] (EE) no screens found(EE) 
[  1888.901] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  1888.901] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1888.901] (EE) 
[  1888.906] (EE) Server terminated with error (1). Closing log file.
 

Any help?

Last edited by Mesopotamian (2016-04-17 00:48:28)

Offline

#2 2016-04-14 14:42:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,556
Website

Re: [Solved]Arch Xorg Problem: startx failed

The page you link to (or at least the pages linked from it about installing Xorg) have many informational/diagnostic tests as well as many conditional things to install (e.g., video driver).

Please post the output of the diagnostics/informational commands and tell us which packages (e.g., video drivers) you actually installed.

Mod note: moved to N.C.

EDIT: I missed that this is a virtual box install, so I think that pretty much dictates which driver you should be using.  But the rest of my questions still apply.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2016-04-14 14:42:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,598

Re: [Solved]Arch Xorg Problem: startx failed

Why do you have /etc/X11/xorg.conf?

Offline

#4 2016-04-14 14:47:01

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,961

Re: [Solved]Arch Xorg Problem: startx failed

[  1888.876] (==) Using config file: "/etc/X11/xorg.conf"
xorg wiki page wrote:

  Note: Arch supplies default configuration files in /usr/share/X11/xorg.conf.d, and no extra configuration is necessary for most setups.

How was xorg.conf created and what is in it ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2016-04-15 04:46:35

boban_dj
Member
Registered: 2015-03-17
Posts: 150

Re: [Solved]Arch Xorg Problem: startx failed

Came across same problem when updating some vbox to kernel 4.0.1.5. See this https://bugs.archlinux.org/task/48598
Running same vbox  with linux-lts started normally.
just to be clear: my vbox host is running 4.1.21-1-lts and the vbox guest (with the issue) kernel 4.0.1.5

See this post for the same issue and a workaround: https://bbs.archlinux.org/viewtopic.php … 5#p1619975

Last edited by boban_dj (2016-04-15 04:55:09)

Offline

#6 2016-04-15 08:06:15

Mesopotamian
Member
Registered: 2016-04-11
Posts: 11

Re: [Solved]Arch Xorg Problem: startx failed

Lone_Wolf wrote:
[  1888.876] (==) Using config file: "/etc/X11/xorg.conf"
xorg wiki page wrote:

  Note: Arch supplies default configuration files in /usr/share/X11/xorg.conf.d, and no extra configuration is necessary for most setups.

How was xorg.conf created and what is in it ?

Since startx failed, I mannually created xorg.conf(it doesn't exist at first). But startx still failed, and I got the log which I already posted.
Thanks for the Note, I'll remove the xorg.conf, try to startx again and post the log later.
smile

Offline

#7 2016-04-15 08:07:09

Mesopotamian
Member
Registered: 2016-04-11
Posts: 11

Re: [Solved]Arch Xorg Problem: startx failed

Scimmia wrote:

Why do you have /etc/X11/xorg.conf?

I mannually created it. I'll remove it and try again.

Offline

#8 2016-04-15 08:33:46

Mesopotamian
Member
Registered: 2016-04-11
Posts: 11

Re: [Solved]Arch Xorg Problem: startx failed

Trilby wrote:

The page you link to (or at least the pages linked from it about installing Xorg) have many informational/diagnostic tests as well as many conditional things to install (e.g., video driver).

Please post the output of the diagnostics/informational commands and tell us which packages (e.g., video drivers) you actually installed.

Mod note: moved to N.C.

EDIT: I missed that this is a virtual box install, so I think that pretty much dictates which driver you should be using.  But the rest of my questions still apply.

Here is what I installed:

pacman -S xorg-server, xf86-video-vesa, xf86-video-fbdev,xorg-xinit, xterm, xorg-twm

and I removed the xorg.conf, now startx worked and I get an X environment with xterm available.

Thank you all.

BTW, I guess one of the xf86-video-* is not necessary, am I right and how can I know which one?

Last edited by Mesopotamian (2016-04-15 08:34:27)

Offline

#9 2016-04-15 08:48:40

Mesopotamian
Member
Registered: 2016-04-11
Posts: 11

Re: [Solved]Arch Xorg Problem: startx failed

boban_dj wrote:

Came across same problem when updating some vbox to kernel 4.0.1.5. See this https://bugs.archlinux.org/task/48598
Running same vbox  with linux-lts started normally.
just to be clear: my vbox host is running 4.1.21-1-lts and the vbox guest (with the issue) kernel 4.0.1.5

See this post for the same issue and a workaround: https://bbs.archlinux.org/viewtopic.php … 5#p1619975

I did not use vbox-guest-addition, and startx succeeded, so I guess it's not the same problem.
Thanks anyway.

Offline

#10 2016-04-15 13:56:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,556
Website

Re: [Solved]Arch Xorg Problem: startx failed

Mesopotamian wrote:

BTW, I guess one of the xf86-video-* is not necessary, am I right and how can I know which one?

You shouldn't be using either of those, they are fallback drivers and will not give you good quality or resolution.  You should follow the wiki:
https://wiki.archlinux.org/index.php/Xorg
https://wiki.archlinux.org/index.php/Vi … nux_guests


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2016-04-15 18:12:03

Mesopotamian
Member
Registered: 2016-04-11
Posts: 11

Re: [Solved]Arch Xorg Problem: startx failed

Trilby wrote:
Mesopotamian wrote:

BTW, I guess one of the xf86-video-* is not necessary, am I right and how can I know which one?

You shouldn't be using either of those, they are fallback drivers and will not give you good quality or resolution.  You should follow the wiki:
https://wiki.archlinux.org/index.php/Xorg
https://wiki.archlinux.org/index.php/Vi … nux_guests

I won't need either of them, provided that I installed the vbox kernel thing. But the thing is that I did not install any vbox stuff as listed in the Virtualbox Wiki, so under this circumstance, xf86-video-* is necessary, right?

Xorg will use VBoxVideo instead of xf86-video-* if I installed vbox stuff, but startx failed again with this log:

[   775.485] 
X.Org X Server 1.18.3
Release Date: 2016-04-04
[   775.486] X Protocol Version 11, Revision 0
[   775.487] Build Operating System: Linux 4.2.5-1-ARCH x86_64 
[   775.489] Current Operating System: Linux localhost 4.5.0-1-ARCH #1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016 x86_64
[   775.490] Kernel command line: initrd=\initramfs-linux.img root=PARTUUID=ee8b6f99-c11f-4f2c-883d-6ad5a4ae3c01 rw
[   775.492] Build Date: 05 April 2016  05:24:02PM
[   775.493]  
[   775.494] Current version of pixman: 0.34.0
[   775.495] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   775.495] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   775.497] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 16 02:10:09 2016
[   775.497] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   775.497] (==) No Layout section.  Using the first Screen section.
[   775.497] (==) No screen section available. Using defaults.
[   775.497] (**) |-->Screen "Default Screen Section" (0)
[   775.497] (**) |   |-->Monitor "<default monitor>"
[   775.497] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   775.497] (==) Automatically adding devices
[   775.497] (==) Automatically enabling devices
[   775.497] (==) Automatically adding GPU devices
[   775.497] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   775.497] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   775.497] 	Entry deleted from font path.
[   775.497] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   775.497] 	Entry deleted from font path.
[   775.497] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   775.497] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   775.497] 	Entry deleted from font path.
[   775.497] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   775.497] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[   775.497] (==) ModulePath set to "/usr/lib/xorg/modules"
[   775.497] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   775.497] (II) Loader magic: 0x819d20
[   775.497] (II) Module ABI versions:
[   775.497] 	X.Org ANSI C Emulation: 0.4
[   775.497] 	X.Org Video Driver: 20.0
[   775.497] 	X.Org XInput driver : 22.1
[   775.497] 	X.Org Server Extension : 9.0
[   775.498] (++) using VT number 1

[   775.498] (--) controlling tty is VT number 1, auto-enabling KeepTty
[   775.500] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   775.500] (II) xfree86: Adding drm device (/dev/dri/card0)
[   775.500] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[   775.505] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0x80000000/16777216
[   775.506] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   775.506] (II) LoadModule: "glx"
[   775.506] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   775.507] (II) Module glx: vendor="X.Org Foundation"
[   775.507] 	compiled for 1.18.3, module version = 1.0.0
[   775.507] 	ABI class: X.Org Server Extension, version 9.0
[   775.507] (==) AIGLX enabled
[   775.507] (==) Matched vboxvideo as autoconfigured driver 0
[   775.507] (==) Matched vboxvideo as autoconfigured driver 1
[   775.507] (==) Matched modesetting as autoconfigured driver 2
[   775.507] (==) Matched fbdev as autoconfigured driver 3
[   775.507] (==) Matched vesa as autoconfigured driver 4
[   775.507] (==) Assigned the driver to the xf86ConfigLayout
[   775.507] (II) LoadModule: "vboxvideo"
[   775.507] (II) Loading /usr/lib/xorg/modules/drivers/vboxvideo.so
[   775.507] (II) Module vboxvideo: vendor="Oracle Corporation"
[   775.507] 	compiled for 1.18.1, module version = 1.0.1
[   775.507] 	Module class: X.Org Video Driver
[   775.507] 	ABI class: X.Org Video Driver, version 20.0
[   775.507] (**) Load address of symbol "VBOXVIDEO" is 0x7f21b441a3e0
[   775.507] (II) LoadModule: "modesetting"
[   775.507] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   775.508] (II) Module modesetting: vendor="X.Org Foundation"
[   775.508] 	compiled for 1.18.3, module version = 1.18.3
[   775.508] 	Module class: X.Org Video Driver
[   775.508] 	ABI class: X.Org Video Driver, version 20.0
[   775.508] (II) LoadModule: "fbdev"
[   775.508] (WW) Warning, couldn't open module fbdev
[   775.508] (II) UnloadModule: "fbdev"
[   775.508] (II) Unloading fbdev
[   775.508] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   775.508] (II) LoadModule: "vesa"
[   775.508] (WW) Warning, couldn't open module vesa
[   775.508] (II) UnloadModule: "vesa"
[   775.508] (II) Unloading vesa
[   775.508] (EE) Failed to load module "vesa" (module does not exist, 0)
[   775.508] (II) VBoxVideo: guest driver for VirtualBox: vbox
[   775.508] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   775.508] (WW) Falling back to old probe method for modesetting
[   775.508] (II) VBoxVideo(0): VirtualBox guest additions video driver version 5.0.16_OSEr105871
[   775.508] (II) Loading sub module "ramdac"
[   775.508] (II) LoadModule: "ramdac"
[   775.508] (II) Module "ramdac" already built-in
[   775.508] (II) Loading sub module "fb"
[   775.508] (II) LoadModule: "fb"
[   775.508] (II) Loading /usr/lib/xorg/modules/libfb.so
[   775.508] (II) Module fb: vendor="X.Org Foundation"
[   775.508] 	compiled for 1.18.3, module version = 1.0.0
[   775.508] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   775.508] (II) Loading sub module "shadowfb"
[   775.508] (II) LoadModule: "shadowfb"
[   775.508] (II) Loading /usr/lib/xorg/modules/libshadowfb.so
[   775.508] (II) Module shadowfb: vendor="X.Org Foundation"
[   775.508] 	compiled for 1.18.3, module version = 1.0.0
[   775.508] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   775.508] (II) Loading sub module "vgahw"
[   775.508] (II) LoadModule: "vgahw"
[   775.508] (II) Loading /usr/lib/xorg/modules/libvgahw.so
[   775.508] (II) Module vgahw: vendor="X.Org Foundation"
[   775.508] 	compiled for 1.18.3, module version = 0.1.0
[   775.508] 	ABI class: X.Org Video Driver, version 20.0
[   775.508] (II) Loading sub module "dri2"
[   775.508] (II) LoadModule: "dri2"
[   775.508] (II) Module "dri2" already built-in
[   775.508] (II) VBoxVideo(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   775.508] (==) VBoxVideo(0): Depth 24, (--) framebuffer bpp 32
[   775.508] (--) VBoxVideo(0): Virtual size is 32766x32766 (pitch 32766)
[   775.508] (**) VBoxVideo(0):  Built-in mode "800x600": 29.3 MHz (scaled from 0.0 MHz), 36.4 kHz, 60.0 Hz
[   775.508] (II) VBoxVideo(0): Modeline "800x600"x0.0   29.31  800 802 804 806  600 602 604 606 (36.4 kHz b)
[   775.508] (**) VBoxVideo(0):  Built-in mode "800x600": 29.3 MHz (scaled from 0.0 MHz), 36.4 kHz, 60.0 Hz
[   775.508] (II) VBoxVideo(0): Modeline "800x600"x0.0   29.31  800 802 804 806  600 602 604 606 (36.4 kHz b)
[   775.508] (II) VBoxVideo(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0
[   775.508] (==) VBoxVideo(0): RGB weight 888
[   775.508] (==) VBoxVideo(0): Default visual is TrueColor
[   775.508] (==) VBoxVideo(0): Using gamma correction (1.0, 1.0, 1.0)
[   775.509] (==) VBoxVideo(0): DPI set to (96, 96)
[   775.509] (II) UnloadModule: "modesetting"
[   775.509] (II) Unloading modesetting
[   775.509] (--) Depth 24 pixmap format is 32 bpp
[   775.509] (EE) 
Fatal server error:
[   775.509] (EE) AddScreen/ScreenInit failed for driver 0
[   775.509] (EE) 
[   775.509] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   775.509] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   775.509] (EE) 
[   775.512] (EE) Server terminated with error (1). Closing log file.

Offline

#12 2016-04-16 04:02:14

boban_dj
Member
Registered: 2015-03-17
Posts: 150

Re: [Solved]Arch Xorg Problem: startx failed

Mesopotamian wrote:

I did not use vbox-guest-addition, and startx succeeded, so I guess it's not the same problem.
Thanks anyway.

Mesopotamian wrote:

I won't need either of them, provided that I installed the vbox kernel thing. But the thing is that I did not install any vbox stuff as listed in the Virtualbox Wiki, so under this circumstance, xf86-video-* is necessary, right?


It seems you did not read the virtualbox wiki carefully (links provided by Trilby). Install vbox in guest and host accordingly. Try install the lts kernel and boot from it.

Last edited by boban_dj (2016-04-16 04:02:32)

Offline

Board footer

Powered by FluxBB