[SOLVED] startx command gives error xorg windows can't open X -configure
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
startx command gives error xorg windows can't open X -configure
Hello there,
i just completed 24section in BLFS 7.9 after that i try to execute
Code:
startx
command it gives me error which is
Quote:
root [ / ]# startx
xauth: file /root/.serverauth.17599 does not exist
xauth: (argv):1: bad display name "skyline:0" in "list" command
xauth: (stdin):1: bad display name "skyline:0" in "add" command
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
Invalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable
xinit: server error
xauth: (argv):1: bad display name "skyline:0" in "remove" command
when i try to generate the xorg.conf file with
Code:
X -configure or Xorg -configure
the similar error i geting
Quote:
root [ / ]# Xorg -configure
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
what can i do ? is this any drivers issue ? my lspci as follows
Quote:
root [ / ]# lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 10)
i installed all drivers in Xorg drivers section.could any body suggest me what can i do.i am using Slackware 14.1 64bit as my host Os thanks in advance.
[ 25653.339] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[ 25653.339] _XSERVTransMakeAllCOTSServerListeners: server already running
[ 25653.339] (EE)
Fatal server error:
[ 25653.339] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
[ 25653.339] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 25653.339] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 25653.339] (EE)
[ 25653.339] (EE) Server terminated with error (1). Closing log file.
So it is already running. At least it looks like....
You either need to stop it first or you can also try:
startx -- :1
i try as your suggested sorry no change my xorg.1.log file contains the following info
Quote:
[ 23.907]
X.Org X Server 1.18.1
Release Date: 2016-02-08
[ 23.910] X Protocol Version 11, Revision 0
[ 23.911] Build Operating System: Linux 3.10.17 x86_64
[ 23.912] Current Operating System: Linux skyline 4.4.2 #5 SMP Mon Sep 5 17:23:34 IST 2016 x86_64
[ 23.912] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.2-lfs-7.9 root=/dev/sda4 ro
[ 23.914] Build Date: 05 September 2016 04:59:43PM
[ 23.915]
[ 23.915] Current version of pixman: 0.34.0
[ 23.917] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 23.917] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 23.921] (==) Log file: "/var/log/Xorg.1.log", Time: Wed Sep 7 01:21:40 2016
[ 23.969] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 23.970] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 24.030] Data incomplete in file /etc/X11/xorg.conf.d/xkb-defaults.conf
Undefined Screen "Screen0" referenced by ServerLayout "DefaultLayout".
[ 24.031] (EE) Problem parsing the config file
[ 24.031] (EE) Error parsing the config file
[ 24.031] (EE)
Fatal server error:
[ 24.033] (EE) no screens found(EE)
[ 24.034] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 24.037] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[ 24.038] (EE)
[ 24.039] (EE) Server terminated with error (1). Closing log file.
when i tried to enable [*] Enable modesetting on intel by default [CONFIG_DRM_I915_KMS]for Xorg Intel Driver-0340718 in kernel i don't find this option i only find and enable this Enable preliminary support for prerelease Intel hardware by default in kernel.
X with Intel driver will not work without KMS, and, BTW, X -configure will not work with KMS.
thanks for the reply,My lspci output is
Quote:
root [ ~ ]# lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 10)
which driver i need to install ? i thought my driver is VESA but there is no VESA driver in BLFS 7.9.X with Intel driver will not work without KMS, and, BTW, X -configure will not work with KMS could you suggest me then what can i do ? thanks in advance.
While in make menuconfig hit Z to see all options, even those not available because of disabled dependencies. Hit / to search. Hit ? to see all dependencies required to enable chosen option, you may need to use arrow right to see all of them.
Anyhow, KMS is enabled by default, there is no option for it any more.
If you see /dev/dri/card0 you have successfully loaded the kernel driver.
While in make menuconfig hit Z to see all options, even those not available because of disabled dependencies. Hit / to search. Hit ? to see all dependencies required to enable chosen option, you may need to use arrow right to see all of them.
Anyhow, KMS is enabled by default, there is no option for it any more.
If you see /dev/dri/card0 you have successfully loaded the kernel driver.
thanks for replay,
i know these option previous i tried before,now i reinstalled 24th section in BLFS book but this won't help to solve my problem i think the problem in video drivers but why X -configure command is not working it gives similar error as startx
From the very beginning the server says : "Please also check the log file at "/var/log/Xorg.0.log" for additional information." Why haven't you post this file here?
From the very beginning the server says : "Please also check the log file at "/var/log/Xorg.0.log" for additional information." Why haven't you post this file here?
.
sorry for late reply, Here is Xorg.0.log file information.
Quote:
[ 20284.329]
X.Org X Server 1.18.1
Release Date: 2016-02-08
[ 20284.331] X Protocol Version 11, Revision 0
[ 20284.332] Build Operating System: Linux 3.10.17 x86_64
[ 20284.332] Current Operating System: Linux jamalpur 4.4.2 #7 SMP Thu Sep 8 05:01:09 IST 2016 x86_64
[ 20284.332] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.2-lfs-7.9 root=/dev/sda4 ro
[ 20284.334] Build Date: 05 September 2016 04:59:43PM
[ 20284.335]
[ 20284.335] Current version of pixman: 0.34.0
[ 20284.337] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 20284.337] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 20284.340] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 8 11:21:58 2016
[ 20284.340] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 20284.341] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 20284.341] (==) ServerLayout "DefaultLayout"
[ 20284.341] (==) No screen section available. Using defaults.
[ 20284.341] (**) |-->Screen "Default Screen Section" (0)
[ 20284.341] (**) | |-->Monitor "<default monitor>"
[ 20284.341] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 20284.341] (**) | |-->Device "radeon"
[ 20284.341] (**) | |-->GPUDevice "name of your graphics card here"
[ 20284.341] (**) | |-->GPUDevice "Intel Graphics"
[ 20284.341] (**) | |-->GPUDevice "Card0"
[ 20284.341] (**) | |-->GPUDevice "nvidia"
[ 20284.341] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 20284.341] (**) Option "Xinerama"
[ 20284.341] (==) Automatically adding devices
[ 20284.341] (==) Automatically enabling devices
[ 20284.341] (==) Automatically adding GPU devices
[ 20284.341] (**) Xinerama: enabled
[ 20284.341] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 20284.342] (==) FontPath set to:
/usr/share/fonts/X11/misc/,
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/,
/usr/share/fonts/X11/100dpi/,
/usr/share/fonts/X11/75dpi/
[ 20284.342] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 20284.342] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 20284.342] (II) Loader magic: 0x808c20
[ 20284.342] (II) Module ABI versions:
[ 20284.342] X.Org ANSI C Emulation: 0.4
[ 20284.342] X.Org Video Driver: 20.0
[ 20284.342] X.Org XInput driver : 22.1
[ 20284.342] X.Org Server Extension : 9.0
[ 20284.342] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 20284.343] (--) PCI:*(0:0:2:0) 8086:0102:8086:2017 rev 9, Mem @ 0xfe000000/4194304, 0xe0000000/268435456, I/O @ 0x0000f000/64
[ 20284.343] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 20284.343] (II) LoadModule: "glx"
[ 20284.343] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 20284.344] (II) Module glx: vendor="X.Org Foundation"
[ 20284.344] compiled for 1.18.1, module version = 1.0.0
[ 20284.344] ABI class: X.Org Server Extension, version 9.0
[ 20284.344] (==) AIGLX enabled
[ 20284.344] (II) LoadModule: "ati"
[ 20284.344] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[ 20284.344] (II) Module ati: vendor="X.Org Foundation"
[ 20284.344] compiled for 1.18.1, module version = 7.6.1
[ 20284.344] Module class: X.Org Video Driver
[ 20284.344] ABI class: X.Org Video Driver, version 20.0
[ 20284.344] (II) LoadModule: "modesetting"
[ 20284.344] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 20284.344] (II) Module modesetting: vendor="X.Org Foundation"
[ 20284.344] compiled for 1.18.1, module version = 1.18.1
[ 20284.344] Module class: X.Org Video Driver
[ 20284.344] ABI class: X.Org Video Driver, version 20.0
[ 20284.344] (II) LoadModule: "intel"
[ 20284.344] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 20284.345] (II) Module intel: vendor="X.Org Foundation"
[ 20284.345] compiled for 1.18.1, module version = 2.99.917
[ 20284.345] Module class: X.Org Video Driver
[ 20284.345] ABI class: X.Org Video Driver, version 20.0
[ 20284.345] (II) LoadModule: "vesa"
[ 20284.345] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 20284.345] (II) Module vesa: vendor="X.Org Foundation"
[ 20284.345] compiled for 1.18.1, module version = 2.3.3
[ 20284.345] Module class: X.Org Video Driver
[ 20284.345] ABI class: X.Org Video Driver, version 20.0
[ 20284.345] (II) LoadModule: "nouveau"
[ 20284.345] (WW) Warning, couldn't open module nouveau
[ 20284.345] (II) UnloadModule: "nouveau"
[ 20284.345] (II) Unloading nouveau
[ 20284.345] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 20284.345] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 20284.345] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 20284.345] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 20284.345] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 20284.345] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 20284.345] (II) VESA: driver for VESA chipsets: vesa
[ 20284.345] (--) using VT number 7
[ 20284.348] (II) modeset(0): using drv /dev/dri/card0
[ 20284.348] (WW) Falling back to old probe method for vesa
[ 20284.348] (EE) Screen 0 deleted because of no matching config section.
[ 20284.348] (II) UnloadModule: "modesetting"
[ 20284.348] (EE) Device(s) detected, but none match those in the config file.
[ 20284.348] (EE)
Fatal server error:
[ 20284.348] (EE) no screens found(EE)
[ 20284.348] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 20284.348] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 20284.348] (EE)
[ 20284.353] (EE) Server terminated with error (1). Closing log file.
Last edited by Carl_cj; 09-08-2016 at 06:45 AM.
Reason: Update log file information
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.