You are not logged in.

#1 2021-07-14 10:54:25

simplisticways
Member
Registered: 2015-12-03
Posts: 49

Autologin awesome using xinitrc is slow.

I've read from the wiki and gotten this to work but its kind of slow compared to sddm autologin. For that it feels very weird as I expected it to be faster without external softwares.

I created
/etc/systemd/system/getty@tty1.service.d/override.conf

ExecStart=
ExecStart=-/usr/bin/agetty --autologin thumbie --noclear %I $TERM

.profile

if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
  exec startx
fi

.xinitrc

exec awesome.

It does work but I need to wait like 10-15 seconds and it gives following error before autologin inside.

/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server

Sources:
https://wiki.archlinux.org/title/Getty# … al_console
https://wiki.archlinux.org/title/Xinit# … X_at_login

Any clue how to optimize?

Offline

#2 2021-07-14 11:27:31

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 413
Website

Re: Autologin awesome using xinitrc is slow.

Recheck the xinitrc wiki, yours is missing some required lines.


"the wind-blown way, wanna win? don't play"

Offline

#3 2021-07-14 11:36:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Offline

#4 2021-07-14 16:22:18

simplisticways
Member
Registered: 2015-12-03
Posts: 49

Re: Autologin awesome using xinitrc is slow.

I created the
file
~/.xserverrc

#!/bin/sh

exec /usr/bin/Xorg -nolisten tcp "$@" vt$XDG_VTNR

But seems to still be quite slow.

Offline

#5 2021-07-14 16:25:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Autologin awesome using xinitrc is slow.

And did you also fix your xinitrc?

Offline

#6 2021-07-15 15:06:13

simplisticways
Member
Registered: 2015-12-03
Posts: 49

Re: Autologin awesome using xinitrc is slow.

I copied /etc/X11/xinit/xinitrc as template and added exec awesome to the bottom. Also deleting

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &

Still same issue.

Last edited by simplisticways (2021-07-15 15:06:43)

Offline

#7 2021-07-15 19:10:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Autologin awesome using xinitrc is slow.

Let's figure *what* is actually slow here.
Add some strategic

echo "about to to foobar:" >> /tmp/autologin.debug
date >> /tmp/autologin.debug

lines into your .profile and .xinitrc and use "strace -t awesome 2>&1 > /tmp/awesome.strace" instead of "exec awesome".
Also compare your xorg log (notably the recorded date)

Offline

Board footer

Powered by FluxBB