You are not logged in.

#1 2014-08-22 21:27:23

sediment
Member
Registered: 2012-08-01
Posts: 20

[SOLVED] Unable to start X session on brand new install

Hi all,

I recently decided to wipe my installation of Arch and install again from scratch. (Long story, but I had my reasons.) I've installed the arch system OK, but can't seem to get X to start. I've installed xorg-server, xorg-utils, xorg-server-utils, xorg-xinit, xf86-video-vesa, xf86-video-ati, and ati-dri. (The latter two are because I have an ATI Radeon card.)

Here's the log from my running xinit: http://pastebin.com/nHz0b7c4

It's a bit long, so to summarize, here are the errors pulled from that log:

[    17.394] (EE) Failed to load module "modesetting" (module does not exist, 0)
[    17.394] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    17.395] (EE) Failed to load module "vesa" (module does not exist, 0)
[    17.399] (EE) 
[    17.399] (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
[    17.399] (EE) 
[    17.399] (EE) 
[    17.399] (EE) Please also check the log file at "/home/james/.local/share/xorg/Xorg.0.log" for additional information.
[    17.399] (EE) 

Here's the output from lspci | grep VGA:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV620 LE [Radeon HD 3450]

In response to the error "Cannot open /dev/tty0 (No such file or directory)", I checked /dev/tty0 and there is in fact such a file.

The arch installation from before my reformatting and reinstallation, which I was using until a couple of days ago, was working fine, with no problems with X. I wonder if the change has something to do with the news on the front page from last month about the Xorg server changing? I hadn't upgraded my old system since then, so I would have been running the previous version. Nonetheless, I couldn't see any clear instructions about any changes necessitated by the upgrade (which might fix this problem) on that news page.

I haven't touched any xorg config files as the beginner's guide suggests that modern xorg is able to configure itself in most cases. However, perhaps in this case I need to?

Thanks for any help. Let me know if there's any more information I can/should provide.

Last edited by sediment (2014-08-23 11:56:37)

Offline

#2 2014-08-22 22:07:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Unable to start X session on brand new install

How exactly do you start X?

Offline

#3 2014-08-22 22:13:36

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

Re: [SOLVED] Unable to start X session on brand new install

Not a Kernel issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-08-23 09:03:54

sediment
Member
Registered: 2012-08-01
Posts: 20

Re: [SOLVED] Unable to start X session on brand new install

karol wrote:

How exactly do you start X?

By running xinit from the command line when I log in. (I also tried startx.)

jasonwryan wrote:

Not a Kernel issue, moving to NC...

OK. I put it in "kernel and hardware" because it seemed related to hardware - video drivers, monitors, etc.

Offline

#5 2014-08-23 10:38:39

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [SOLVED] Unable to start X session on brand new install

Do you maybe have some Xorg config files inside your home directory from the previous install (e.g. ~/.xserverrc) ?

Note that you must start X on the same VT that was used to login now, using 'startx' without any arguments should do so.

Your session needs to be active, whats the output of 'loginctl show-session $XDG_SESSION_ID' ?

Last edited by rebootl (2014-08-23 10:39:21)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#6 2014-08-23 10:42:32

dif
Member
From: Stalowa Wola, Poland
Registered: 2009-12-22
Posts: 146

Re: [SOLVED] Unable to start X session on brand new install

Perhaps a stupid question, but did you install a window manager / a desktop environment?

Offline

#7 2014-08-23 10:48:31

sediment
Member
Registered: 2012-08-01
Posts: 20

Re: [SOLVED] Unable to start X session on brand new install

Hi,

I managed to get this to work by running "xinit -- vt1" instead of just plain "xinit". I'm not sure why it was trying to run it on a different VT by default. I am using my old home folder, but I don't think there are any old config files lying around interfering with X - at least, not any that I can see. Also, I think the same thing happened when I tested it as root.

Does anyone know whether there's a way to give X the vt1 option from, say, xorg.conf or some other configuration file, as opposed to passing it as an argument to xinit? I'd prefer that if it were possible. I checked the man pages but couldn't see anything.

Offline

#8 2014-08-23 11:15:07

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [SOLVED] Unable to start X session on brand new install

Why do you insist on using 'xinit' instead of 'startx' ?

I'm not sure why it was trying to run it on a different VT by default.

'man xinit':

If  no specific server program is given on the com‐
       mand line, xinit will look for a file in the user's
       home  directory called .xserverrc to run as a shell
       script to start up the server.   If  no  such  file
       exists, xinit will use the following as a default:

            X  :0

I would have to re-check to be absolutely sure which VT X will use in that case, but it could be it tries to use the first "free" VT, which would not be the one you logged in.

Could you confirm that using 'startx' without arguments and not having a '.xserverrc' inside your home directorry (note: it's a hidden file by the dot at the beginning of the filename, use 'ls -a' to see it), results in the above error.


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#9 2014-08-23 11:56:21

sediment
Member
Registered: 2012-08-01
Posts: 20

Re: [SOLVED] Unable to start X session on brand new install

rebootl wrote:

Could you confirm that using 'startx' without arguments and not having a '.xserverrc' inside your home directorry (note: it's a hidden file by the dot at the beginning of the filename, use 'ls -a' to see it), results in the above error.

Ah! Yes, startx works without arguments; I'll use that from now on.

rebootl wrote:

Why do you insist on using 'xinit' instead of 'startx' ?

Only because it's what I was using before and worked then. I wasn't really aware of the differences between them.

reboot1 wrote:

'man xinit':

If  no specific server program is given on the com‐
       mand line, xinit will look for a file in the user's
       home  directory called .xserverrc to run as a shell
       script to start up the server.   If  no  such  file
       exists, xinit will use the following as a default:

            X  :0

I saw that, but I didn't realize it was referring to virtual terminals; I thought it was talking about selecting which monitor X runs on.

Thanks for your help; marking as solved.

Offline

Board footer

Powered by FluxBB