Closing
]]> # When starting the defaultserver start X on the current tty to avoid
# the startx session being seen as inactive:
# "https://bugzilla.redhat.com/show_bug.cgi?id=806491"
tty=$(tty)
if expr "$tty" : '/dev/tty[0-9][0-9]*$' > /dev/null; then
tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
vtarg="vt$tty_num -keeptty"
fi
but if using alternative xserverrc, manually add vt1 is required
exec startx $XINITRC -- $XSERVERRC vt1 -keeptty
otherwise the Active property will be no, and cause permission issue
]]>xinit [window manager] -- vt01
I now get an active session.
]]>loginctl show-session $XDG_VTNR
#!/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.
]]>@cfr
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 :
[Login]
HandlePowerKey=
HandleSuspendKey=
HandleHibernateKey=
HandleLidSwitch=
Does ~/.xserverrc exist?
Is it really /etc/xserververrc? If so, should it be /etc/xserverrc?
]]>Also, is your system totally up to date, and are you booting with systemd?
]]>#! /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?