#StackBounty: #fedora #tty #wayland #gdm #sway annoying CTRL+F# instead of CTRL+ALT+F# Virtual Terminal Switching on Fedora 33 with swa…

Bounty: 100

I have the annoying problem that CTRL+F# is switching to a Virtual Terminal. This should normally be done with CTRL+ALT+F# but for some reason it is also triggered by CTRL+F#.
I actually have an almost fresh Fedora 33 installation on a Lenovo laptop with sway and wayland.

I tried removing all Console_* bindings with something like:

sudo dumpkeys | grep -vE 'Console_5[^0-9]'  | sudo loadkeys

but it does not have an effect in sway/wayland.

I also tried srvkeys:none

setxkbmap -layout us -variant dvorak-alt-intl -option srvkeys:none

but it has no effect either.

It doesn’t matter if I start sway from gdm or from the shell. (however using a gnome session all is fine – i.e. ctrl+F# does not switch to a virtual console)

The usual gsettings does not show anything suspicions:

$ gsettings list-recursively | grep switch-to-session | sort

ca.desrt.dconf-editor.Settings saved-pathbar-path '/org/gnome/mutter/wayland/keybindings/switch-to-session-5'
ca.desrt.dconf-editor.Settings saved-view '/org/gnome/mutter/wayland/keybindings/switch-to-session-5'
org.gnome.mutter.wayland.keybindings switch-to-session-10 ['<Primary><Alt>F10']
org.gnome.mutter.wayland.keybindings switch-to-session-11 ['<Primary><Alt>F11']
org.gnome.mutter.wayland.keybindings switch-to-session-12 ['<Primary><Alt>F12']
org.gnome.mutter.wayland.keybindings switch-to-session-1 ['<Primary><Alt>F1']
org.gnome.mutter.wayland.keybindings switch-to-session-2 ['<Primary><Alt>F2']
org.gnome.mutter.wayland.keybindings switch-to-session-3 ['<Primary><Alt>F3']
org.gnome.mutter.wayland.keybindings switch-to-session-4 ['<Primary><Alt>F4']
org.gnome.mutter.wayland.keybindings switch-to-session-5 ['<Primary><Alt>F5']
org.gnome.mutter.wayland.keybindings switch-to-session-6 ['<Primary><Alt>F6']
org.gnome.mutter.wayland.keybindings switch-to-session-7 ['<Primary><Alt>F7']
org.gnome.mutter.wayland.keybindings switch-to-session-8 ['<Primary><Alt>F8']
org.gnome.mutter.wayland.keybindings switch-to-session-9 ['<Primary><Alt>F9']

And removing all mutter bindings does not change anything in sway.

I have no further ideas where and what to look for.
I have also filed an issue at https://github.com/swaywm/sway/issues/5885

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.