You are not logged in.
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
How exactly do you start X?
Offline
Not a Kernel issue, moving to NC...
Offline
How exactly do you start X?
By running xinit from the command line when I log in. (I also tried startx.)
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
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
Perhaps a stupid question, but did you install a window manager / a desktop environment?
Offline
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
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
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.
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.
'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