Comment 60 for bug 520546

Revision history for this message
Tuomas Suutari (tuomas-suutari) wrote : Re: Alt-f2 switches to virtual terminal 2

I can reproduce the bug in Ubuntu 18.04.1 by re-configuring keyboard-configuration package (version 1.178ubuntu2.7) with DISPLAY being unset/empty, e.g.:

    tuomas@matta:~ 0 $ sudo DISPLAY= DEBIAN_FRONTEND=noninteractive \
                       dpkg-reconfigure keyboard-configuration
    update-initramfs: deferring update (trigger activated)
    Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
    update-initramfs: Generating /boot/initrd.img-4.15.0-33-generic

And after running this Alt+F2 switches to VT2 even from X11. When switching back to X11 (with Alt+F1), it appears that the Alt+F2 also goes to X11, since the krunner popup opens (bound to Alt+F2).

Running "sudo kbd_mode -s" in a terminal window within X11 makes the Alt+Fx keys act normally again.