You are not logged in.

#1 2015-10-20 14:02:22

kjmeagher
Member
Registered: 2015-10-20
Posts: 9

/usr/bin/X does nothing and exits

This is my first time installing arch. I followed the beginers guide and the instructions for installing Xorg. but when I run /usr/bin/X it immediately exits with status 0.

startx gives me the following error message:

/etc/X11/xinit/xserverrc: line 2 : /usr/bin/X: Success
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

I'm Really not sure how to investigate this any further.

Last edited by kjmeagher (2015-10-20 15:14:14)

Offline

#2 2015-10-20 15:09:08

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: /usr/bin/X does nothing and exits

Have you read https://wiki.archlinux.org/index.php/Xorg?

You don't start X directly, but through either xinit or startx.


pkgshackscfgblag

Offline

#3 2015-10-20 15:11:22

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: /usr/bin/X does nothing and exits

Moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2015-10-20 15:21:06

kjmeagher
Member
Registered: 2015-10-20
Posts: 9

Re: /usr/bin/X does nothing and exits

ayecat: yes I read that as I stated in my post. And I know you use startx, which is why I posted the output of running startx. And correct me if I am wrong, but there is no way to get startx to work unless /usr/bin/X starts an X session. I usually run /usr/bin/X first to make sure X is working correctly so that if startx doesn't start then I know that the problem is with my xinit scripts and not X itself.

Offline

#5 2015-10-20 15:47:42

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: /usr/bin/X does nothing and exits

There is no reason to run /usr/bin/X directly¹ - but alright, what is the exact sequence of commands you run?

What is the content of your .xinitrc?

____
¹ [EDIT] OK, I stand corrected - there are reasons to run X directly, but usually it's easier to just use xinit or startx. Also, we would first need to know what exactly you are trying to do.

Last edited by ayekat (2015-10-20 16:11:52)


pkgshackscfgblag

Offline

#6 2015-10-20 15:54:28

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

Re: /usr/bin/X does nothing and exits

If you run X directly and give it nothing to do what do you expect other than a successful exit?


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

Offline

#7 2015-10-20 16:51:32

kjmeagher
Member
Registered: 2015-10-20
Posts: 9

Re: /usr/bin/X does nothing and exits

its not clear to me why I am getting so much push back about running X directly. I thought this was a standard method for debugging problems with X, especially back in the bad old days when X had those awful configuration files.

Trilby: I expect it to start an X screen with a mouse cursor and no windows, also it will write stuff to standard out and a lot file to /var/log/Xorg.0.log

ayecat: there is nothing in my .xinitrc because there is no point to put anything there until I make sure that X works

anyway investigating the problem further there seems to be a lot of files in /usr/bin have a length of 0, including Xorg. i am trying to read up on how to fix this with pacman

Offline

#8 2015-10-20 16:57:36

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: /usr/bin/X does nothing and exits

kjmeagher wrote:

this was a standard method for debugging problems with X

So far you have not told us what problem you are trying to solve. Also, you have not posted the commands that you are running, so we can't tell you whether the output you are getting is normal.

EDIT To be fair, when I launch /usr/bin/X directly, without arguments, it blocks my system, so I guess I might want to investigate on X related issues myself a little.

EDIT2 Xorg having a size of 0 is indeed not normal.
Otherwise, this is the Xorg line I've got:

2178 /usr/lib/xorg-server/Xorg -nolisten tcp :0 vt1 -auth /tmp/serverauth.n3Kc9Ux2lB

I assume that X blocks and waits for a connection to be established on some socket.

Last edited by ayekat (2015-10-20 17:12:52)


pkgshackscfgblag

Offline

#9 2015-10-20 17:15:30

kjmeagher
Member
Registered: 2015-10-20
Posts: 9

Re: /usr/bin/X does nothing and exits

It doesn't' feel to me like you are reading what I wrote. But maybe it's my fault for being terse. I want to run X. I started by typing "startx" at a command prompt as a normal user. When That failed, I investigated further and ran "/usr/bin/X" as root, that failed as well. Does that answer your question?  if so can you explain how that is substantially different than what I reported in my initial post?

Offline

#10 2015-10-20 17:30:10

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: /usr/bin/X does nothing and exits

Ah, I really misread your first post. I'm sorry for that.

So I guess you're right in that investigating the reason for why /usr/bin/Xorg has a size of 0 is the right way.


pkgshackscfgblag

Offline

Board footer

Powered by FluxBB