Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Waiting for X server to begin accepting connections" infinite loop

I installed an Archlinux distribution, and I am trying to install xOrg. I installed xorg-server xorg-xinit and xorg-server-utils. I also installed xf86-video-nouveau because I have a 960M from Nvidia.

To test it :

echo "xterm && sleep 10" > .xinitrc 

And I run startx. I got this message

Waiting for X server to begin accepting connections

And after 2-3 minutes, I got :

Unable to connect to X server: connection refused.

Why the connection is refused ?

Thanks for help !

like image 790
Yoann Picquenot Avatar asked Aug 19 '16 15:08

Yoann Picquenot


People also ask

How do I stop XServer from running?

Immediately turn off your monitor or terminate X by pressing Ctrl-Alt-Backspace. To exit X, click on an unused part of the desktop and a pop-up menu will appear. From the menu, select the Exit, Logout, or Quit menu item. X shuts down, returning you to the familiar text-based interface of the Linux shell prompt.

What is X server used for?

o “X uses a client–server model: an X server communicates with various client programs. The server accepts requests for graphical output (windows) and sends back user input (from keyboard, mouse, or touchscreen).


1 Answers

I never answered. But I finally managed to get it working.

I was able to run it by blacklisting nouveau drivers.

To test, at grub boot, press e on the line of your linux distribution.

You should see something like:

linux   /boot/vmlinuz-4.10.0-33-generic.efi.signed root=UUID=32290445-e978-4a43-b6d9-27f9e943b3a6 ro  quiet nouveau.modeset=0 splash $vt_handoff

Just add nouveau.modeset=0 between quietand splash (pretty sure it's the same as if you write it down at the end of the line but I am 100% sure it's working the way I did).

Press F10 to boot with this configuration. It should work.

Hope it helps.

like image 94
Yoann Picquenot Avatar answered Oct 02 '22 18:10

Yoann Picquenot