LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   ctl-alt-Fn is not enabled on multi-user fc27 (https://www.linuxquestions.org/questions/fedora-installation-39/ctl-alt-fn-is-not-enabled-on-multi-user-fc27-4175622994/)

borisbirch 02-03-2018 04:08 AM

ctl-alt-Fn is not enabled on multi-user fc27
 
I recently installed fc27 on a new laptop - lenovo t440p. I have been using fc27 on other computers, and have used multi-user since 1998, but on this installation ctl-alt-F3 is not recognized. (multi-user.service is enabled.)
I entered systemctl enable autovt@.service and rebooted but still some other service is needed to get me back to runlevel 3 performance (yes, I am an old hand).

ferrari 02-04-2018 01:52 PM

Check /etc/systemd/logind.conf for the number of VTs allowed. From 'man logind.conf'...
Quote:

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.

ReserveVT=
Takes a positive integer. Identifies one virtual terminal that shall unconditionally be reserved for autovt@.service
activation (see above). The VT selected with this option will be marked busy unconditionally, so that no other subsystem will
allocate it. This functionality is useful to ensure that, regardless of how many VTs are allocated by other subsystems, one
login "getty" is always available. Defaults to 6 (in other words, there will always be a "getty" available on Alt-F6.). When
set to 0, VT reservation is disabled.

borisbirch 02-04-2018 10:12 PM

Thanks,
I uncommented logind.conf NAutoVTs=6, rebooted - no improvement.
I reinstalled from an old OS image which has worked for a few years, followed the above - no improvement.
In both cases, I compared /lib/systemd/system/autovt@.service on new installation and old WORKING installation on a cheap, slower machine - identical files - no improvement.
I will keep working on it.

ferrari 02-04-2018 10:33 PM

Quote:

Thanks,
I uncommented logind.conf NAutoVTs=6, rebooted - no improvement.
That won't have changed anything, since it already defaults to 6.

Is the following service active?
Code:

systemctl status autovt@.ttyN.service

borisbirch 02-04-2018 11:22 PM

getty@.tty2.service - Getty on .tty2
Loaded: loaded (/usr/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
Active: inactive (dead)

I previously compared /lib/systemd/.... I also just compared /usr/lib/systemd/.... as listed in the results of cmd systemctl status autovt@.ttyN.service
Identical files in WORKING and non-working machines.

borisbirch 02-07-2018 02:52 AM

I encountered something written about Debian:
..../getty.target.wants/getty-static.service
in the file is a line on ExecStart:
....getty@tty2...3...4...usw
in the same directory in WORKING fyodora 27:
..../getty.target.wants/getty@tty1.service this
is the only file in the directory, but tty2...6
are enabled.
From this, I gather fyodora uses another file,
located who knows where, to start tty2...tty3...
(fyodora pronunciation is another story)

ferrari 02-07-2018 03:34 AM

Sorry, I don't understand what you're trying to convey in your last post. Returning to your opening post where you mentioned...
Quote:

I entered systemctl enable autovt@.service and rebooted but still some other service is needed to get me back to runlevel 3 performance (yes, I am an old hand).
What is the current target (~runlevel) your OS is running at? Are you at rescue.target perhaps?
Code:

systemctl get-default
If not already at multi-user.target do
Code:

systemctl isolate multi-user.target
To set it as default do
Code:

systemctl set-default multi-user.target

syg00 02-07-2018 03:40 AM

As an aside, I never have a problem opening vt's in Fedora - including f27.
Rarely bother these days, as a wayland terminal usually suffices.

systemd journal is always the first place to look for messages.

borisbirch 02-07-2018 07:26 AM

From my very beginning with RedHat in 1998 I have used runlevel 3, ln -s, then systemctl so multi-user has always been my default. The first fyodora I remember using was fyodora 11 taken from a purchased dvd, since I am in the backwoods and just got dsl a few years ago in my neighbourhood (sitting in my livingroom, checking when I could expect delivery of a new dvd, was when I googled origin of the fyodora (Theodora Romanova) hat in Paris 19th century. I knew some Russian, so I learned the name came from a Russian princess.)
I am not yet using Wayland because I switched to matey-desktop right after multi-user (to avoid gnome 3). Matay may never support Wayland, it is low on the todo list. My first login is in bash multi-user with only one tty. I have always run with root on tty1, tty2 available to root, boris on tty3 in X (with startx), tty4 and above available to boris rarely needed for long bash text sessions (I am an Engineer, not a novel writer, but I never use word processor, only TeX with mpost).

borisbirch 02-07-2018 08:55 AM

PROBLEM SOLVED! (PARTIALLY)
I am working on a LENOGO T440S.
I couldn't see problem because it was under my big nose. On all previous computers since 1998, alt-F3 or ctl-alt-F3 worked as lainux-normal.
On this machine, alt-F3 does not work - it places a few characters on bash screen. But alt-fn-F3 switches to user's tty3 session.
Remaining problem is - alt-fn-F1 does not switch back to root's tty1 session - it opens application menu. Same goes with alt-ctl-F1 - no response. I will have to work out with supplier what the lenogo t440s key mappings are. Installing fyodora did not install standard lainux mappings. Installation selected Z60 keyboard, but may be R60.

ferrari 02-07-2018 11:54 AM

Good to read of your progress. Not sure what's up with your keyboard mapping though. CRL+ALT+Fn has always been used for TTY switching, and T've never had an issue with it not working.

borisbirch 02-07-2018 12:14 PM

You're right. I have never had a problem before with fedora misreading keyboard model. This is refurbished, used laptop, so is old, but not real old. Keyboard laid a pig under the installation script. I'll wait until store manager or tech gives me the real model number rather than trying several and guessing. Everything else works fine and I have my budget and 90 percent filled in (by LaTeX) income tax forms on the machine, backed up.
Thanks for all your help.

ferrari 02-07-2018 12:49 PM

You could use dmidecode to read BIOS info eg
Code:

dmidecode -t1

syg00 02-07-2018 09:16 PM

Quote:

Originally Posted by borisbirch (Post 5816874)
But alt-fn-F3 switches to user's tty3 session.

Small netbooks are similar - you need to activate the "function" mode of the function key. We have one like that.
Quote:

Remaining problem is - alt-fn-F1 does not switch back to root's tty1 session - it opens application menu. Same goes with alt-ctl-F1
That is how alt-F1 (in gnome, and thus Mate I guess) is defined (maps to the "Windows" key too usually) - did you try alt-ctl-fn-F1 ? You might need a friend to lend a hand on that one ... :p

jefro 02-07-2018 09:47 PM

The window manager on some systems would show up on other than keycombo 1 or F1. Try all of the number to see if the gui shows up. Go slowly too.

As you pointed out the keyboard may be goofy. Guess you might plug in a usb keyboard and see if it works as expected.


All times are GMT -5. The time now is 05:46 AM.