Score:0

TTY Login prompt text disappears after 30 seconds

mk flag

we have an Ubuntu 20.04 which starts only with an TTY and no GUI.

After our customized /etc/issue is shown to the user the command prompt will be shown only for 30 seconds. The best solution should be that the login prompt should be shown forever.

The line looks like hostname login: _ where the underscore is blinking. After 30 seconds the hostname login: disappears and only the blinking underscore stays: _.

After typing a username for example admin, password will be requested

admin
Password: _

I tried now to update the GRUB_TIMEOUT to -1 but no effect.

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=-1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="autoinstall ds=nocloud-net;"
GRUB_CMDLINE_LINUX=""

Futher I found out that there is another place where a time out is set to 60 seconds in /etc/login.defs.

#
# Max time in seconds for login
#
# LOGIN_TIMEOUT     60

Disabling LOGIN_TIMEOUT had no effect.

Futher I checked /etc/systemd/logind.conf where I could find a place with 30 seconds but it was commented out.

HoldoffTimeoutSec=60s

Changing it to 60 second did not decrease the prompt time.

Does anybody know what can I do now?

Thanks, Markus

EDIT: The TTY seems to be 1

root         903  0.0  0.0   5828  1932 tty1     Ss+  09:17   0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux

journalctl -xe -u [email protected] returns

Mai 17 09:17:38 hostname systemd[1]: Started Getty on tty1.
-- Subject: A start job for unit [email protected] has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit [email protected] has finished successfully.

Further I checked more /lib/systemd/system/[email protected] and more /lib/systemd/system/[email protected]

I can not see a prompt timeout and have not done any changes.

I modified /etc/default/grub as recommanded and run sudo update-grub

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="autoinstall consoleblank=0 ds=nocloud-net;"
GRUB_CMDLINE_LINUX=""

But no behaviour change could be observed.

hr flag
Have you checked the status of the `[email protected]` (replace N by the actual tty number) and/or the journal e.g. `journalctl -xe -u [email protected]` ?
Doug Smythies avatar
gn flag
Try [this](https://askubuntu.com/questions/1323258/screen-timeout-for-ubuntu-server-login-screen/1323302#1323302) but with `consoleblank=0` and/or have a look [here](https://askubuntu.com/questions/1408394/my-screen-goes-black-after-30-seconds-of-inactivity-in-ubuntu-22-04).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.