You are not logged in.

#1 2017-02-05 19:53:20

rswursti
Member
Registered: 2017-02-05
Posts: 6

[SOLVED] waiting for X server to begin accepting connections

Hey,
I am new to arch and my x server broke the first time.
when doing 'startx',  it says

'waiting for X server to begin accepting connections'

I could not really figure out what the problem is. most likely it is about the graphic drivers.
after I fumbled a bit with them, it once somehow worked again but after a reboot to check I had the error again.
you can see the log, here

I would appreciate it if you could point me in a direction so I can learn to answer those issues myself in the future.

thanks,

EDIT1:
I have a Thinkpad T420 with Nvidia graphics
HD3000
Nvidia N4200M
i7 2620

I think I didnt do much besides installling drivers. xf86-video-intel and nouveau. the latter I deinstalled whilst trying to fix the error.

for xinit. I added 'exec i3' to the default.
here is the pastebin



EDIT2:
After booting, logging in and typing 'startx' into the prompt,
nothing happens for about 10 seconds, then it displays
'waiting for X server to begin accepting connections .'
..
..
..
..
(those dots for quite a while)
..
..
INFO: task kworker/0:2:244 blocked for more than 120 seconds.
not tainted 4.9.6-1-ARCH #1
echo 0 > /proc /sys/kernel/hung_task-timeout_secs" diables this message
INFO: task Xorg.wrap:602 blocked for more than 120 seconds
not tainted 4.9.6-1-ARCH #1
echo 0 > /proc /sys/kernel/hung_task-timeout_secs" diables this message
..
..
..
xinit: giving up
xinit: unable to connect to X server: Connection refused
waiting for X server to shut down ........
xinit: X server slow to shut down, sending KILL signal
waiting for server to die ...
xinit: X server refuses to die

after which it resumes to the command prompt

EDIT3:
PROBLEM: it seems like that nouveau drivers are conflicting with new kernel updates
SOLUTION: remove nouveau (and mesa) and install nvidia

Last edited by rswursti (2017-02-05 23:49:36)

Offline

#2 2017-02-05 19:58:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] waiting for X server to begin accepting connections

This is a hybrid graphics machine? Please paste details of your setup: cards, drivers, what you have done--if anyting--to configure it.

Also, according to the log, you haven't given X anything to do. What is in your .xinitrc?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-02-05 20:28:36

rswursti
Member
Registered: 2017-02-05
Posts: 6

Re: [SOLVED] waiting for X server to begin accepting connections

thank you for the fast answer.
I edited the details into the original post.

Offline

#4 2017-02-05 20:46:33

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

Re: [SOLVED] waiting for X server to begin accepting connections

There is no error (anymore) in your log.  It exited successfully.  This usually means there is nothing in the ~/.xinitrc.

You say you added "exec i3" to the default.  Do you mean you copied the default to your home directory and added that line to ~/.xinitrc, or did you add it to the default in /etc?  In otherwords, is the file you posted on the pastebin your ~/.xinitrc?


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

Offline

#5 2017-02-05 21:01:42

rswursti
Member
Registered: 2017-02-05
Posts: 6

Re: [SOLVED] waiting for X server to begin accepting connections

Trilby wrote:

is the file you posted on the pastebin your ~/.xinitrc?

yes, this one.

so there is no error with the x server? at least one good thing to hear.
I just tested to be 100% sure, it still has the same 'waiting to connect' problem when i do startx.

Offline

#6 2017-02-05 21:37:18

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

Re: [SOLVED] waiting for X server to begin accepting connections

When/where do you see that waiting to connect message?  What is the *full* output when you run startx?


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

Offline

#7 2017-02-05 22:11:13

rswursti
Member
Registered: 2017-02-05
Posts: 6

Re: [SOLVED] waiting for X server to begin accepting connections

After booting, logging in and typing 'startx' into the prompt,
nothing happens for about 10 seconds, then it displays
'waiting for X server to begin accepting connections .'
..
..
..
..
(those dots for quite a while)
..
..
INFO: task kworker/0:2:244 blocked for more than 120 seconds.
not tainted 4.9.6-1-ARCH #1
echo 0 > /proc /sys/kernel/hung_task-timeout_secs" diables this message
INFO: task Xorg.wrap:602 blocked for more than 120 seconds
not tainted 4.9.6-1-ARCH #1
echo 0 > /proc /sys/kernel/hung_task-timeout_secs" diables this message
..
..
..
xinit: giving up
xinit: unable to connect to X server: Connection refused
waiting for X server to shut down ........
xinit: X server slow to shut down, sending KILL signal
waiting for server to die ...
xinit: X server refuses to die


after which it resumes to the command prompt

Offline

#8 2017-02-05 22:41:40

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOLVED] waiting for X server to begin accepting connections

Does removing the xf86-video-intel package affect the issue?

Offline

#9 2017-02-05 22:56:24

rswursti
Member
Registered: 2017-02-05
Posts: 6

Re: [SOLVED] waiting for X server to begin accepting connections

Sadly, it doesn't.

I also tried with only Nouveau Nvidia Driver whilst xf86-video-intel is removed, but no results.

Offline

#10 2017-02-05 23:00:21

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

Re: [SOLVED] waiting for X server to begin accepting connections

Hmm, this looks like a nouveau issue:
https://bbs.archlinux.org/viewtopic.php?id=222636


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

Offline

#11 2017-02-05 23:15:17

rswursti
Member
Registered: 2017-02-05
Posts: 6

Re: [SOLVED] waiting for X server to begin accepting connections

thank you very much. that solved it (shall I rename the thread in SOLVED? I will edit the solution in original post)
I removed nouveau and mesa and installed nvidia.
now everything is working fine.

Offline

#12 2017-02-05 23:43:10

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOLVED] waiting for X server to begin accepting connections

Did you configure optimus as well.  Without configuration X will use the modesetting driver without libgl acceleration on the intel GPU and the nvidia GPU will not be used.
It would work in this configuration because the nvidia package supplies a blacklist that prevents the loading of the nouveau module.
If you are satisfied the issue is solved please mark your thread as solved by editing the first post and prepending the tag [SOLVED] to the title in the "Subject" field.

Offline

Board footer

Powered by FluxBB