11

I have Intellij Idea, which has its own shortkeys bound to Ctrl + Alt + F10, and I got some weird screen blackout after pressing these keys on my Ubuntu.

I was only able to switch my screen back after pressing Super + F2.

What does this key combination do? How can I disable it?

Zanna
  • 72,312

3 Answers3

13

These keys switch to virtual consoles, in as far as these are active. In a default installation of Ubuntu, no consoles are set up above Ctrl+Alt+F6, which is why you see nothing more than a blinking cursor after pressing that keyboard combination. Hit Ctrl+Alt+F2 or simply Alt+F2 to return to your graphical desktop. You have virtual consoles available on Ctrl+Alt+F3 up to F6.

vanadium
  • 97,564
2

As explained here https://askubuntu.com/a/1315576/1017209 you could use into your console or sh-batch-file

setxkbmap -option srvrkeys:none

to disable all ctrl + alt + Fxxx hotkeys

i have tested this in Kubuntue 20.4

SL5net
  • 698
  • 10
  • 28
0

Although this has been answered I'd like to add how I fixed this issue since setxkbmap did not do the trick for me.

For me these 12 commands did it.

These keybindings were set to ['F1'] ~ ['F12'] and what I did was I just set them to empty array.

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 1 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 2 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 3 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 4 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 5 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 6 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 7 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 8 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 9 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 10 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 11 "[]"

gsettings set org.gnome.mutter.wayland.keybindings switch-to-session 12 "[]"

Obviously this fix only applies to people who use Gnone + Mutter + Wayland (I use Redhat linux)

How I found this fix: gsettings list-recursively | grep F10

To find out all the keybindings that includes F10 and then among many results, I saw org.gnome.mutter.wayland.keybindings switch-to-session-10 ['<Primary><Alt>F10']

So I figured that keybinding must be it, and ran

gsettings list-keys org.gnome.mutter.wayland.keybindings to find out all the similar keybinds

Lastly, I thank this thread and especially the user who commented Super+F2 recovers the computer back to GUI from the black screen. Saved countless rebooting for me