Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg wont start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gothsboss
n00b
n00b


Joined: 22 Dec 2020
Posts: 6

PostPosted: Sun Dec 27, 2020 6:19 pm    Post subject: xorg wont start Reply with quote

It's on my first gentoo install and can't get xorg to work/start.
Look some videos about setting it up, search the forum and asked on the IRC but so far no luck.
This is the error I so far get.
I tryed to look if there where x-servers running or i could kill it but cant find a working command

Code:
[ 13651.149] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[ 13651.149] _XSERVTransMakeAllCOTSServerListeners: server already running
[ 13651.150] (EE)
Fatal server error:
[ 13651.150] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
[ 13651.150] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[ 13651.150] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 13651.150] (EE)
[ 13651.150] (EE) Server terminated with error (1). Closing log file.


If aditinal information is needed I wil try to add it
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Sun Dec 27, 2020 7:45 pm    Post subject: Reply with quote

Please post the out of

Code:
lspci


Code:
cat /etc/portage/make.conf


Your log for the session would be nice to inside /var/logs/

Have you got the correct things compiled into your kernel.

Have u setup ~/.xinitrc which desktop session you are trying to load.

Is your user part of the video group.

Which video card are you using.

Did your emerge xorg-drivers ?

Does your video card need linux-firmware installed.

Please explain what you did to get to this stage
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Sun Dec 27, 2020 8:19 pm    Post subject: Reply with quote

The error says another server is running. Is it?
Back to top
View user's profile Send private message
gothsboss
n00b
n00b


Joined: 22 Dec 2020
Posts: 6

PostPosted: Sun Dec 27, 2020 9:37 pm    Post subject: Reply with quote

Quote:
The error says another server is running. Is it?

thats how far i figuret it out but what can i do about it?

Code:
lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4)
00:1c.6 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 7 (rev c4)
00:1c.7 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 8 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
02:00.0 USB controller: VIA Technologies, Inc. VL80x xHCI USB 3.0 Controller (rev 03)
03:00.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 41)
04:00.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
05:00.0 Ethernet controller: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet (rev c0)
06:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11)
07:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 660] (rev a1)
07:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)


Code:
cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more detailed example.

#System Specific USE flags
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${cFLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

CHOST="x86_64-pc-linux-gnu"
COMMON_FLAGS="-march=ivybridge -O2 -pipe"
MAKEOPTS="-j4"
PORTAGE_NICENESS=1
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=9"
#FEATURES=
ACCEPT_KEYWORDS="~amd64"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="libinput synaptics"

#Software USE flags
USE=   "-wayland -systemd -consolekit -gnome -kde -mate -xfce -gtk \
    X elogind drivers nvidia intel"

ACCEPT_LICENSE="-* @FREE @EULA"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

#source /var/lib/layman/make.conf
#INPUT_DEVICES=

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
GRUB_PLATFORMS="efi-64"


Log for x session inside /var/logs
Code:
[ 13651.149] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[ 13651.149] _XSERVTransMakeAllCOTSServerListeners: server already running
[ 13651.150] (EE)
Fatal server error:
[ 13651.150] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE>
[ 13651.150] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[ 13651.150] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 13651.150] (EE)
[ 13651.150] (EE) Server terminated with error (1). Closing log file.


Have you got the correct things compiled into your kernel?
For as I know I have (followed the wiki guide and some help in IRC, It is my first gentoo install ever)

Have u setup ~/.xinitrc which desktop session you are trying to load?
I have set it up for DWM

Is your user part of the video group?
Yes: video, wheel, sudo, audio and some other

Which video card are you using?
Asus Nvidia GTX 660 OC 2GB
With the Nvidia propritoary drivers

Did your emerge xorg-drivers?
Drivers and Server yes

Does your video card need linux-firmware installed.
The Nvidia propritoary drivers.

Please explain what you did to get to this stage?
I chect some youtube videos and the IRC to see of i had set all the things in the kernel right. Then i installed the Nvidia propraitary drivers cuz they work better, the installed Xorg-server and Xorg-drivers, after that i Installed DWM, Dmenu and LightDM and point where xorg can find DWM

The first time it wouldn't start I updated the entire system because I taght maby some file is missing, that didn't help.
After thet I looking to hardware and found that whit this problem soms nvidia or intel drivers are needed so I instaled those (xf86-video-intel)
I found a other problem on a youtube video so i tride that but cant remember what it whas.
Back to top
View user's profile Send private message
gothsboss
n00b
n00b


Joined: 22 Dec 2020
Posts: 6

PostPosted: Mon Dec 28, 2020 1:45 pm    Post subject: Reply with quote

Code:
emerge --info xorg-server
Portage 3.0.12 (python 3.8.7-final-0, default/linux/amd64/17.1/hardened, gcc-10.2.0, glibc-2.32-r6, 5.4.0-58-generic x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.0-58-generic-x86_64-Intel-R-_Core-TM-_i5-3570K_CPU_@_3.40GHz-with-glibc2.2.5
KiB Mem:     8114304 total,    143832 free
KiB Swap:     999420 total,    998384 free
Timestamp of repository gentoo: Sat, 26 Dec 2020 20:00:01 +0000
Head commit of repository gentoo: 100ea18a6a670e1f79914eeef2c975308a045fbb
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.1_p4::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.8.7::gentoo, 3.9.1::gentoo
dev-util/cmake:           3.19.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r4::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS=""
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=9"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="nl_NL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 bzip2 crypt drivers elogind hardened iconv intel ipv6 libglvnd libtirpc multilib ncurses nls nptl nvidia openmp pam pcre pie readline seccomp split-usr ssl ssp unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-base/xorg-server-1.20.10::gentoo was built with the following:
USE="elogind ipv6 udev xorg -debug -dmx -doc -kdrive -libressl -minimal (-selinux) -static-libs -suid -systemd -unwind -wayland -xcsecurity -xephyr -xnest -xvfb" ABI_X86="(64)"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Mon Dec 28, 2020 6:20 pm    Post subject: Reply with quote

Are you using a greeter that would have started an X server on its own? What processes are running on the system when the to-be-started server reports that an existing server is running?
Back to top
View user's profile Send private message
MFG080xc0
n00b
n00b


Joined: 22 Jan 2021
Posts: 2

PostPosted: Fri Jan 22, 2021 12:37 am    Post subject: Re: xorg wont start Reply with quote

Try emerging dbus, If that does not fix the issue then build a kernel image with the nouveau drivers and
drop the nvidia drivers to see what happens, change the VIDEO_CARDS variable if you do this, then check
for new useflags and xorg will be remerged acording with the new VIDEO_CARDS variable. Also you will
get better information if you use the lspci command with the -kv options, maybe you did indeed miss
something. In your use flags you have consolekit and gtk disabled, I can't exactly remember why but that
can also cause issues with the X server. Go over in packages.use and see if anything catches your
attention too, maybe try another window manager, I3, herbstluftwm, check the error log under /var and so on.

I wouldn't nuke the install.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum