You are not logged in.
Hello fellow arch users
I have an issue that has been bugging me the last few days and after a few hours of google / forums / wiki I couldn't find any solution.
My problem is as follows:
I can boot into arch / xmonad without any problems if I use some graphical login/display manager, say slim or lightdm.
However if I disable said LM via systemctl disable slim and try to start X with startx in the same TTY after logging in, everything appears to work well but I actually only get a black screen.
I can still open a console blindly and anything else seems to work as intended.
Much to my surprise, a loginctl show-session 1 (typed in blindly) will still regard the session as TTY, as follows:
Timestamp=Fri 2013-12-06 11:07:17 CET
[...]
VTNr=1
TTY=tty1
Remote=no
Service=login
Type=tty
Class=user
Active=yes
State=active
compare this to the output when I start my running system with the help of slim:
Timestamp=Fri 2013-12-06 11:16:04 CET
[...]
VTNr=7
Display=:0.0
Remote=no
Service=slim
Type=x11
Class=user
Active=yes
State=active
I assume that this is not an Issue with X but rather some obvious configuration mishap.
Unfortunately I am still a noob to certain topics including systemd so I could not figure out what's wrong.
Further, dmesg/xorg.0.log output both look just fine, latter only reporting errors/warnings for video drivers (which is the case too for a session started with slim), see
Xorg.0.log and dmesg.
My .xinitrc, .xserverrc and xorg.conf.d files are supposedly bare bone / default and work as intended when starting with slim, but for reference:
.xinitrc - .xserverrc
Any help or RTFM forwards appreciated. Let me know if you need some particular log / output.
I tried to comply to forum guidelines/rules as good as possible, if I done goofed, please tell me that I suck so I know for the future ![]()
Cheers
Offline
Your .xinitrc should start with a shebang. " #!/bin/sh" is missing entirely.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
You are correct, shebang is missing, wonder how I managed to miss that.
Unfortunately this does not solve the issue.
This xinitrc is also executed under slim login, without any issues.
Thank you nevertheless for your fast response.
Offline
Update:
I can now successfully start X without the help of slim, but I have no clue why it works:
1. Start X on two different TTYs (it doesnt matter where but they have to run at the same time).
Those are both blank screen.
2. Kill both of them via killall or shift-mod-q from xmonad
3. Start x again on one of the previously used TTYs. This time everything goes through smoothly.
After this procedure i can start X successfully on any TTY.
I have tried single user mode / logging in as root and xinit with different parameters - to no avail.
I also found out that a loginctl on a successful start of X (as described above) is very similar to the one in OP, so there does not even seem to be anything wrong with that.
Any ideas where to move on / what to test next?
Last edited by redivider (2013-12-08 19:28:16)
Offline