I've checked the wiki of course, but it has not worked, here is my /etc/xserververrc:
#! /bin/sh if [[ -z $XDG_VTNR ]]; then exec /usr/bin/X -nolisten tcp "$@" else exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR fi
the alias I use to start from tty1:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && xinit ~/.config/xinitrc/openboxxinitrc -- &
Systemd gives no erros at boot.
Could you give me a clue?
Last edited by fulmare (2012-11-06 16:10:39)
I am totally unsure about this, but what happens if you remove the '--' from the xinit command?
Also, is your system totally up to date, and are you booting with systemd?
What's in ~/.config/xinitrc/openboxxinitrc?
Does ~/.xserverrc exist?
Is it really /etc/xserververrc? If so, should it be /etc/xserverrc?
Thank you anyone
"--" removed, nothing changes. It was supposed to launch X on alternate tty.
Everything is up to date, I'm booting with pure systemd (no init argument to kernel line).
I've no ~/.xserverrc, here it's ~/.config/xinitrc/openboxxinitrc
if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f" done unset f fi exec openbox-session
Sorry, I mean /etc/X11/xinit/xserverrc
This is my /etc/systemd/logind.conf :
Last edited by fulmare (2012-11-06 14:45:44)
I used to have same problem with Gnome and it required authentication to mount external drive and to power off and reboot.
The problem was rc-local.service. https://bbs.archlinux.org/viewtopic.php?id=152057
don't use xinit, put "exec openbox-session" in your ~/.xinitrc and start X with "startx". Make sure you use the .xinitrc from /etc/skel/ which contains the /etc/X11/xinit/xinitrc.d/* loop which is needed to autostart dbus.
I've not a rc-local.service in the filesystem.
So my ~/.xinitrc is
#!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f" done unset f fi exec openbox-session
If I use xinit the problem continues.
If I use startx, X server does not start, it says.
xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
I'm googleing the error without success.
this should work, not sure what you screwed up there. Reinstall xorg-server and xorg-xinit. Also log into tty1 as your normal user and check if the following contains Active=yes:
loginctl show-session $XDG_VTNR
Good, it seems solved using startx and xorg-server and xorg-xinit reinstallation (xinit still doesn't work). Not sure what went wrong but now it works! Thank you very much 65kid.
I hope it's ok that I bump this thread, since I found an explanation to why startx works and xinit doesnt. I had the same problem with xinit myself, but I found the following post which also explains why it works with startx:
http://blog.falconindy.com/articles/bac … stemd.html
So for instance if I use:
xinit [window manager] -- vt01
I now get an active session.