You are not logged in.

#1 2015-05-25 16:23:31

phoenix
Member
Registered: 2015-03-28
Posts: 18

[SOLVED] Autologin problems

I'm trying to setup a automatic login according to the wiki, but all i get is a black screen where there was previously the login prompt hmm
It happens with the multi.user as well as with the graphical boot targets. I run lvm2 inside a LUKS container.
Any help appreciated.

Last edited by phoenix (2015-08-24 12:05:57)

Offline

#2 2015-08-16 10:53:09

phoenix
Member
Registered: 2015-03-28
Posts: 18

Re: [SOLVED] Autologin problems

after trying one more time i get a systemd error:
Failed to start Getty on tty1

the wiki needs to be updated because the method in it is missing some steps or simply doesn't work

Offline

#3 2015-08-16 11:24:39

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Autologin problems

Can you post the contents of your /etc/systemd/system/getty@tty1.service.d/override.conf please.

You did remember to replace username with your actual username didn't you?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2015-08-16 11:43:56

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

Re: [SOLVED] Autologin problems

phoenix wrote:

the wiki needs to be updated because the method in it is missing some steps or simply doesn't work

This is the wrong way to ask a question.  While this is always a possibility, jumping to this conclusion rather than suspecting that you are doing something wrong is counter productive.  What's described in the wiki works fine for pretty much everyone else.

That said, there was a recent issue with one version of logind where the first login would work, but subsequent autostarting of X could fail.  But this was solved by an update, and the symptoms were very different.  Please describe exactly what you have done to set this up.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2015-08-16 12:15:25

phoenix
Member
Registered: 2015-03-28
Posts: 18

Re: [SOLVED] Autologin problems

slithery wrote:

Can you post the contents of your /etc/systemd/system/getty@tty1.service.d/override.conf please.

You did remember to replace username with your actual username didn't you?

yes, i typed my username correctly
the content of my override.conf was the same as in the wiki (except the username part)
just to clarify, should i change the boot target or not? because the wiki doesn't make it clear.

Offline

#6 2015-08-16 12:18:06

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

Re: [SOLVED] Autologin problems

The instructions will work for multiuser target or graphical target - but it doesn't seem there'd be any point in using them for graphical target.  Is/was your graphical target working before you started doing this?  What is your graphical target supposed to do?  Do you run a display manager?  An improperly configured graphical target *might* be the cause of the blank screen you described.

Please describe exactly what you have done so far to configure your start up process.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2015-08-16 12:50:19

phoenix
Member
Registered: 2015-03-28
Posts: 18

Re: [SOLVED] Autologin problems

I use the graphical target with no display manager, and i get the command-line login prompt. After i type my username and password, the X server and my desktop environment start automatically

Last edited by phoenix (2015-08-16 12:50:34)

Offline

#8 2015-08-16 12:53:26

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

Re: [SOLVED] Autologin problems

If the graphical target is not doing anything, then there is no point keeping it around.  I'd disable it.  But if it really isn't doing anything, then it also shouldn't do any harm.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2015-08-16 13:26:47

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Autologin problems

So you have a failing service, but I don't see anything like systemctl status output?

It doesn't seem to hurt anyone (so changing it probably won't help you), but I wonder why the wiki replaces the $TERM in the upstream service* with a baud_rate argument for the virtual console (unnecessary according to the man page) and a hardcoded "linux".

* current version anyway; maybe the wiki is based on an older revision?

Offline

#10 2015-08-16 13:55:38

phoenix
Member
Registered: 2015-03-28
Posts: 18

Re: [SOLVED] Autologin problems

Raynman wrote:

So you have a failing service, but I don't see anything like systemctl status output?

It only fails when i try to autologin, otherwise it works. After further investigating the journal i found this (the config had Type=simple argument in this case):

systemd[1]: getty@tty1.service: Start request repeated too quickly.
systemd[1]: Failed to start Getty on tty1.
systemd[1]: getty@tty1.service: Failed with result 'start-limit'.

Regarding the graphical target, it looks like it's the default for kde/plasma5, as that is what was set when i installed the system.

Offline

#11 2015-08-16 14:10:41

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

Re: [SOLVED] Autologin problems

phoenix wrote:

Regarding the graphical target, it looks like it's the default for kde/plasma5, as that is what was set when i installed the system.

Eh, what?  So you are not using archlinux?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2015-08-16 14:44:06

phoenix
Member
Registered: 2015-03-28
Posts: 18

Re: [SOLVED] Autologin problems

Trilby wrote:

Eh, what?  So you are not using archlinux?

lol, of course i use arch
According to the wiki it's a systemd default: https://wiki.archlinux.org/index.php/Sy … _boot_into

Offline

#13 2015-08-17 13:33:42

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,749
Website

Re: [SOLVED] Autologin problems

Autologin won't work unless the default.target is set to multi-user:

# systemctl set-default multi-user.target

EDIT: http://forums.debian.net/viewtopic.php?f=16&t=123694

Last edited by Head_on_a_Stick (2015-08-17 13:34:38)

Offline

#14 2015-08-24 11:54:50

phoenix
Member
Registered: 2015-03-28
Posts: 18

Re: [SOLVED] Autologin problems

Thanks for the link Head_on_a_Stick!

I finally got it working after following the instructions from the debian forums.
Editing /etc/systemd/system/getty.target.wants/getty@tty1.service directly and setting the target to multi.user.

I'm wondering why the drop-in file has "%I 38400 linux" arguments, while the default "%I $TERM"...

I think the wiki needs to explicitly state that autologin needs multi.user target.

Thanks for everyones input.

Offline

Board footer

Powered by FluxBB