[systemd-devel] [PATCH 2/2] vconsole: set font on tty16..tty63 as well

Jan Engelhardt jengelh at inai.de
Thu Feb 26 04:37:25 PST 2015


On Wednesday 2015-02-25 21:10, Lennart Poettering wrote:
>> >> The setup program would not set the font on tty16 upwards.
>> >> There is a maximum of 63 VCs possible in Linux. (That number is
>> >> hardcoded.)
>> >
>> >We deliberately do not support such high VTs in systemds.
>> 
>> And what's the rationale?
>
>Initially it was that we had the "systemd" udev tag on all VCs, which
>made them appear as .device units in systemd, and I really didn't want
>63 of them. Then, some of the VC ioctls have a 16bit bitmap, which
>makes the higher VCs not as accesible.
>What's your usecase for this?

No particular usecase. I just stumbled across this arbitrary number
15/16 in the source code while I was figuring out the font reload
mess. The patches sent,
	vconsole: rerun setup on console takeovers as well
	vconsole: match on vtcon events, not fbcon ones,
are still very much desired to have included.

AFAICS, there is just _one_ ioctl with a bitmap, and that is
VT_GETSTATE's v_state member. systemd-vconsole-setup uses
VT_GETSTATE, but never inspect v_state. logind-core.c does - which
raises the question why, when vconsole-setup can do without it.


More information about the systemd-devel mailing list