2

In fact I have 2 questions> to get the TTYs for all F1..F12 keys. But how? Also they have to be with a text mode, not VGA. or atleast it should be switchable on the fly!

The default font is very tiny and I could not even set to a proper text mode.

No screen or tmux alike utilities please as suggestions. Just do not deprecate the same function which was possible with old old linux versions!

I have just used 10 years and happy with that Mandriva that it allows to use the screen with text mode and all F12 keys for terminals which allows eyes to rest in the text mode for reading. With newer ubuntu releases trouble is that in every new release forces the VGA modes, tiny fonts, and it is difficult to change to text mode, becouse every time these tricks (configuration files) are hidden to a new place.

thank you?

alex
  • 21

1 Answers1

2

Edit /etc/systemd/logind.conf and set NAutoVTs= to the desired value (e.g. 12).

From man 5 logind.conf:

NAutoVTs=
Takes a positive integer. Configures how many virtual terminals (VTs) to allocate by default that, when switched to and are previously unused, "autovt" services are automatically spawned on. These services are instantiated from the template unit autovt@.service for the respective VT TTY name, for example, autovt@tty4.service. By default, autovt@.service is linked to getty@.service. In other words, login prompts are started dynamically as the user switches to unused virtual terminals. Hence, this parameter controls how many login "gettys" are available on the VTs. If a VT is already used by some other subsystem (for example, a graphical login), this kind of activation will not be attempted. Note that the VT configured in ReserveVT= is always subject to this kind of activation, even if it is not one of the VTs configured with the NAutoVTs= directive. Defaults to 6. When set to 0, automatic spawning of "autovt" services is disabled.

After restarting systemd-logind.service you will get your virtual terminals. Unfortunately systemctl restart systemd-logind.service will probably log you out of the current graphical session, if any (the service doesn't accept reload); so instead of doing this consider adding new VTs by hand this one time: systemctl start autovt@tty7.service, systemctl start autovt@tty8.service etc.

After the next reboot your new settings will kick in and all the VTs will be available to you automatically.