[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#811345: setupcon not run



Samuel Thibault, on Sat 23 Jan 2016 22:12:13 +0100, wrote:
> I tried to run stty rows 20 on tty2, then run
> 
> systemctl restart getty@tty2.service
> 
> and that does reset the stty rows to the default 48 of my fbcon.

And that happens on auto-started gettys too.

Commenting this from /lib/systemd/system/getty@.service:

TTYVTDisallocate

does fix the issue: the tty size is preserved from the setupcon call.
So what happens is that since systemd disallocates the console, the tty
size is lost, and when recreated, it defaults to the VT driver default
size, instead of what setupcon wanted to configure. fbcon systematically
recomputes the VT size according to the fontsize.

Should udev or systemd perhaps provide some hook to configure a
just-created VT?

Samuel


Reply to: