You are not logged in.

#1 2014-07-30 14:03:04

Leo Laursen
Member
From: Denmark
Registered: 2012-10-26
Posts: 20

[Solved-ish] problem with autologin after xorg update

Hi
I use auto login like described on "Automatic login to virtual console", with the exception that i login as user on VT7 rather than VT1.
Then execute startx on VT7 from zprofile, as shown in Start X at Login.

After updating xorg this morning, I was on VT1 after boot. The screen was kind of blinking once a second, and totally unresponsive.
Booting from the install image on an USB-stick, I commented startx in ~/.zprofile.

After that I was again on VT1 but able to login and then run startx on VT1. Later I found out that I had a login on VT7 and was able to run startx there as well.

Why wouldn't startx run automatically, when it runs fine manually.

This is my getty@tty7.service.d/autologin.conf

nagual% cat getty@tty7.service.d/autologin.conf 
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin leo --noclear %I 38400 linux
Type=simple

startx is run from zprofile with:

#[[ -z $DISPLAY && $XDG_VTNR == 7 ]] && exec startx -- vt$XDG_VTNR

could it be because the display doesn't change to VT7, and why would an xorg update change that?

Last edited by Leo Laursen (2014-07-30 17:54:14)

Offline

#2 2014-07-30 14:09:07

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [Solved-ish] problem with autologin after xorg update

When the upgrade to xorg-server occurred there was a warning about X starting on the appropriate VT. There was also news on the Arch Linux front page (https://www.archlinux.org/news/xorg-ser … available/). You may want to read that news and then look into an xorg.wrap file if necessary.


Matt

"It is very difficult to educate the educated."

Offline

#3 2014-07-30 14:11:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved-ish] problem with autologin after xorg update

Mrunion, it's not clear that this applies to this situation. With the update, you can't run X on a *different* tty from the one it is started on, but there is no requirement that this needs to be tty1.  Starting X from tty7 to run on tty7 should work fine (testing it out, back in a second).

I'm currently in X on tty6 (I don't have 7 ttys setup).  From tty6 I ran "xinit -- vt6" and it worked as expected with the up-to-date Xorg.

Last edited by Trilby (2014-07-30 14:13:42)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2014-07-30 14:20:56

Leo Laursen
Member
From: Denmark
Registered: 2012-10-26
Posts: 20

Re: [Solved-ish] problem with autologin after xorg update

mrunion wrote:

When the upgrade to xorg-server occurred there was a warning about X starting on the appropriate VT. There was also news on the Arch Linux front page (https://www.archlinux.org/news/xorg-ser … available/). You may want to read that news and then look into an xorg.wrap file if necessary.

Thanks. I did see this. As far as I can tell, it shouldn't matter in my case, but of course I could be wrong. I'm starting X on VT7, same as the login. I don't do any redirecting of stderr.
And it is very curious that auto login is affected.

Offline

#5 2014-07-30 17:53:20

Leo Laursen
Member
From: Denmark
Registered: 2012-10-26
Posts: 20

Re: [Solved-ish] problem with autologin after xorg update

Update:
I changed auto login to VT1 and startx -vt1. That works.
It's a bit annoying that I have no idea why I should need xorg.wrap to run on VT7, but I'm too lazy to investigate more when it works on VT1.
I'm marking the subject as solved.

Offline

Board footer

Powered by FluxBB