Comment 33 for bug 1758512

Revision history for this message
Ilya w495 Nikitin (w495) wrote : Re: No virtual terminals (CTRL+ALT+F?) when no user logged in; erratic behaviour when user logged in.

I can reproduce it but only in:
* GNOME Shell 3.36.4
* KDE Plasma Shell 5.18.5

But in XFCE, LXDE, LXQT, MATE and others <Ctrl>+<Aly>+<F(n)> works fine for me.

At first, I've tried to use `sudo chvt 2` for switching form KDE on tty1 to Raw Console on tty2. After switching to tty2 <Ctrl>+<Aly>+<F(n)> works as in early days.
It doesn't depends on video drivers or kernel flags and etc. For my laptop I've got the same for nvidia:455.38 and for i915, with modeset and with nomodset, with GFX grub mode and without.

But I guess, this is not a system or hardware problem, because there are no any troubles with small environments. So after some research I found, that you can use `sudo kbd_mode`.

So for me `sudo kbd_mode -af` works fine without reboot.

* Laptop: DellXps 15 9570 4K Touch
* Operating System: Kubuntu 20.04
* Kernel Version: 5.8.0-7630-generic #32~1605108853~20.04~8bcf10e~dev-Ubuntu (from system76)
* OS Type: 64-bit
* Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
* Memory: 15,4 Gib

Unfortunately I cannot find `DontVTSwitch` option in xorg.conf-like all-over the system, as was said for example here:
* https://unix.stackexchange.com/questions/34158/rebinding-disabling-ctrlaltf-virtual-terminal-console-switching

I think it'll be better solution.

The solution of Fredrik Öhrström (oehrstroem) also sounds great.