You are not logged in.

#1 2023-07-12 16:45:01

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

/etc/issue broken on TTY1 specifically

For a while on my system I’ve had a custom /etc/issue file that displayed just fine for me. Recently though I made the switch from my old Artix system to Arch (for various not relevant reasons) and copied over my /etc/issue file. For some reason, it’s completely broken on TTY1 specifically, but still renders just fine on the other TTYs. After spending some time looking into what the issue could be, reading the wiki, etc. I’m still at a loss and hoping someone here has an idea.

https://media.discordapp.net/attachment … G_3970.jpg
https://media.discordapp.net/attachment … G_3971.jpg

You can grab my /etc/issue with:

$ wget https://paste.thomasvoss.com/310

moderator edit -- replaced oversized images with links.
Pasting pictures and code

Last edited by 2ManyDogs (2023-07-16 11:21:18)


Fair.

Offline

#2 2023-07-12 20:18:58

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

Re: /etc/issue broken on TTY1 specifically

Please replace the oversized images w/ links or thumbnails, the board has a 250x250px limit rule.
If you login on tty1 and run some loremipsum or whatever, do all lines fold early there as well or is this indeed limited to the issue?

Offline

#3 2023-07-12 21:22:32

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,653
Website

Re: /etc/issue broken on TTY1 specifically

The displaying on tty1 appears to happen before the correct console size is set.
Hence you get those line breaks.
After a login, does it show correctly on tty1 if you cat the file?

Last edited by schard (2023-07-12 21:25:46)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#4 2023-07-12 21:32:25

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

schard wrote:

The displaying on tty1 appears to happen before the correct console size is set.
Hence you get those line breaks.
After a login, does it show correctly on tty1 if you cat the file?

After login, if I cat out /etc/issue it appears normally. I can also then exit from the user to go back to the user-login and then it displays perfectly.

I also tried sticking the output of “tput reset” at the start of /etc/issue and now it displays normally on TTY1 with the exception of the top-most row of characters where they still wrap.


Fair.

Offline

#5 2023-07-16 05:40:28

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

Update on this: Still haven’t been able to find a solution, but the above “tput reset” trick now doesn’t work anymore… lol


Fair.

Offline

#6 2023-07-16 06:01:36

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

Re: /etc/issue broken on TTY1 specifically

Did the tput reset merely cause a delay?
Does sleeping for a second help?
(Of course that's not a viable solution, just a test)

Offline

#7 2023-07-16 07:41:47

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

seth wrote:

Did the tput reset merely cause a delay?
Does sleeping for a second help?
(Of course that's not a viable solution, just a test)

I’m not quite sure how I can sleep for a second before agetty shows the /etc/issue file… but running “agetty --show-issue” right after logging in on the TTY displays it perfectly


Fair.

Offline

#8 2023-07-16 07:49:12

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

Re: /etc/issue broken on TTY1 specifically

You ran "tput reset" in the issue, right?
Just run "sleep 1" instead.

Offline

#9 2023-07-16 07:51:37

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

seth wrote:

You ran "tput reset" in the issue, right?
Just run "sleep 1" instead.

Not really. I ran “tput reset”, copied the output, and pasted that at the start of the issue. As far as I know I can’t spawn processes from an issue file


Fair.

Offline

#10 2023-07-16 09:14:16

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,653
Website

Re: /etc/issue broken on TTY1 specifically

Do you use agetty with the --no-clear flag? If so, try it without it.
Also, do you use early KMS?


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#11 2023-07-16 11:08:15

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

Re: /etc/issue broken on TTY1 specifically

/usr/lib/systemd/system/getty@.service
Everyone uses no-clear by default wink

@MangoMan1, sorry, I was under the impression you had literally put tput reset in there (and was not convinced of that doing anything but voodoo at all), but revisiting your post: I was wrong.
https://wiki.archlinux.org/title/Getty# … al_console
You can also delay the start w/ "ExecStartPre=/usr/bin/sleep 1" this way.

Offline

#12 2023-07-16 11:53:54

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

seth wrote:

/usr/lib/systemd/system/getty@.service
Everyone uses no-clear by default wink

@MangoMan1, sorry, I was under the impression you had literally put tput reset in there (and was not convinced of that doing anything but voodoo at all), but revisiting your post: I was wrong.
https://wiki.archlinux.org/title/Getty# … al_console
You can also delay the start w/ "ExecStartPre=/usr/bin/sleep 1" this way.

I removed the “--noclear” flag… no difference. Same with adding the call to sleep.


Fair.

Offline

#13 2023-07-16 11:56:18

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

schard wrote:

Do you use agetty with the --no-clear flag? If so, try it without it.
Also, do you use early KMS?

I’m not quite sure what early KMS is, so I assume I’m not tongue


Fair.

Offline

#14 2023-07-16 11:56:47

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

Offline

#15 2023-07-16 21:59:27

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

Tried adding i915 to my initramfs modules since I’m using intel graphics. No real difference hmm


Fair.

Offline

#16 2023-07-16 22:36:30

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

Re: /etc/issue broken on TTY1 specifically

You could leverage StartExePre to stty cols/rows the actual dimensions - what is a bit of an ugly hack.
Any idea what might cause  this itfp?
Anything special you do to agetty or the console?
Does the arch install iso behave the same? (Though I'm not sure that issue has enough cols to expose this)

Offline

#17 2023-07-18 20:30:29

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

I’ll give that a try when I have time and update you. Also no I didn’t do anything to agetty or the console, I just changed the /etc/issue tongue


Fair.

Offline

#18 2023-07-25 18:17:47

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

So finally getting back to this. I tried setting StartExecPre to “stty cols 141” which is the width of my TTY, and I see improvement in that all but the first row of /etc/issue get displayed properly. The first row of the file is still wrapping early for some reason though


Fair.

Offline

#19 2023-07-25 19:51:56

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

Re: /etc/issue broken on TTY1 specifically

StartExecPre=stty cols 141
StartExecPre=sleep 1

?

Offline

#20 2023-07-28 11:51:55

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

Doesn’t make any difference


Fair.

Offline

#21 2023-07-28 11:55:04

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

Re: /etc/issue broken on TTY1 specifically

[whatifyoujustprependtheissuewithablankline?]

Offline

#22 2023-07-29 10:06:30

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

Not only is there already a prepended blank line I was totally unaware of, but now that I’ve turned on my laptop this morning, we are back to the original situation!


Fair.

Offline

#23 2023-07-29 12:22:57

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

Re: /etc/issue broken on TTY1 specifically

So it's a race condition for sure and the thing you get is adjusted to a VGA console.

Let's briefly cycle back to

Tried adding i915 to my initramfs modules since I’m using intel graphics. No real difference

and in particular the term "tried".
How exactly did you try this? Is it still in place? Please post a complete system journal and the output of

sudo lsinitcpio /boot/initramfs-linux.img | grep i915

Offline

#24 2023-08-07 07:14:50

MangoMan1
Member
Registered: 2021-04-11
Posts: 21

Re: /etc/issue broken on TTY1 specifically

seth wrote:

So it's a race condition for sure and the thing you get is adjusted to a VGA console.

Let's briefly cycle back to

Tried adding i915 to my initramfs modules since I’m using intel graphics. No real difference

and in particular the term "tried".
How exactly did you try this? Is it still in place? Please post a complete system journal and the output of

sudo lsinitcpio /boot/initramfs-linux.img | grep i915

I added the module by adding it to the MODULES array in /etc/mkinitcpio.conf and then (if my memory serves me right) ran mkinitcpio.

As for the output of lsinitcpio here you go: https://paste.thomasvoss.com/326

Last edited by MangoMan1 (2023-08-07 07:17:55)


Fair.

Offline

#25 2023-08-07 13:43:11

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

Re: /etc/issue broken on TTY1 specifically

Yeah, no  i915 is in the initramfs sad

Just for fun, what if you keep the boot messages?
https://wiki.archlinux.org/title/Getty# … ay_on_tty1

Offline

Board footer

Powered by FluxBB