My virtual terminals have vanished. Has anyone seen them?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

My virtual terminals have vanished. Has anyone seen them?

Postby jiml8 » Nov 1st, '20, 06:30

I just updated - something I am becoming very reluctant to to - and right before I did the update I realized my virtual terminals have disappeared.

I don't know when they vanished because I only try to use them when I need them. And, until a little while ago, I have not needed them for awhile. I suspect they have been missing since the last time I updated, which was about 2 months ago.

so, ctrl-alt-F2, etc gets me nothing.

I went looking, and discovered the /etc/ttys file no longer exists. I also looked in /etc/X11 for evidence that they are defined there. I grepped for "tty" and "vt" in /etc and did not find anything useful.

I can hunt for hours, or I can ask.

Does anyone know where my virtual terminals might have gone? Probably some config issue in that noisome systemd...
jiml8
 
Posts: 1148
Joined: Jul 7th, '13, 18:09

Re: My virtual terminals have vanished. Has anyone seen the

Postby doktor5000 » Nov 1st, '20, 17:04

Could be. The getty processes are spawned on-demand by systemd when you switch to a tty. Or at least that's how it should work.
Although sometimes when your first getty / the tty for your X session does not start properly, switching also does not work.

I'd suggest you check for
Code: Select all
systemctl --all|grep getty

There's a getty@.service which is instanced for each tty, so by default you should have a loaded but inactive getty@tty1.service (because that's where X runs).
Check that for some documentation pointers, e.g. systemd-getty-generator or https://wiki.archlinux.org/index.php/Getty or maybe http://0pointer.de/blog/projects/serial-console.html
What I can recommend and what we had previously by default IIRC, is this: https://wiki.archlinux.org/index.php/Sy ... /dev/tty12 (that will not directly help with your issue although it might prove useful to check if something is wrong or something is not spawning due to reason XYZ)

Also check if there are any overrides below /etc/systemd/system/getty*service.d/ or with systemd-delta and in /etc/systemd/logind.conf.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16225
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: My virtual terminals have vanished. Has anyone seen the

Postby jiml8 » Nov 5th, '20, 21:12

Well, here is what systemd says:
Code: Select all
systemctl -a | grep getty
  getty@tty1.service                                                                                                                   loaded    inactive   dead      Getty on tty1                                                                                                 
  getty@tty2.service                                                                                                                   loaded    active     running   Getty on tty2                                                                                                 
  getty@tty3.service                                                                                                                   loaded    active     running   Getty on tty3                                                                                                 
  getty@tty4.service                                                                                                                   loaded    active     running   Getty on tty4                                                                                                 
  getty@tty5.service                                                                                                                   loaded    active     running   Getty on tty5                                                                                                 
  getty@tty6.service                                                                                                                   loaded    active     running   Getty on tty6                                                                                                 
  system-getty.slice                                                                                                                   loaded    active     active    system-getty.slice                                                                                           
  getty-pre.target                                                                                                                     loaded    inactive   dead      Login Prompts (Pre)                                                                                           
  getty.target                                                                                                                         loaded    active     active    Login Prompts             


So it does appear that systemd is starting the gettys.

I thought it perhaps was the nvidia binary blob, so I updated to the latest one. I had to SSH into the box to install it because I tried to telinit 1 from my user session, and did not get a console, just a blank screen.

So, via SSH, in installed the latest nvidia driver and rebooted. The box did not come up correctly so I rebooted again. This time it came up, and I had my virtual consoles, but did not have X. So, working from a virtual console, I installed the nvidia driver again, then started sddm.

The moment sddm started, I got my GUI and lost all my virtual consoles.

And that is where I am at right now.
jiml8
 
Posts: 1148
Joined: Jul 7th, '13, 18:09


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest