Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I have an application that binds CTRL+ALT+F7, but my linux machine seems to catch the keystroke.

Is there a way to rebind/disable this key? A recompile of the kernel is an acceptable answer.

The distributions in question are Fedora 16 and Ubuntu 11.10.

share|improve this question
I don't have any specific advice, but I think, as CTRL+ALT+Fn is bound only under the X-Windows System, that the kernel won't be related to it in any way, and that you will probably be luckier trying to tweak the X11 configuration. –  njsg Mar 14 '12 at 16:48
@njsg You can use the same keys to switch from X11 to a vt, and to switch back (also between vt's) - so they must be bound just the same on a vt. –  Volker Siegel Jul 23 '14 at 9:49

2 Answers 2

up vote 4 down vote accepted

Place this in your /etc/X11/xorg.conf file to disable VT switching with Ctrl+Alt+Fn:

Section "ServerFlags"
    Option "DontVTSwitch" "on"

You will also need the following to cause events to be passed through to clients connected to the display:

Section "InputClass"
    Identifier "keyboard defaults"
    MatchIsKeyboard "on"
    Option "XKbOptions" "srvrkeys:none"

(that last bit is untested, sourced from

share|improve this answer
This does not forward the combination to the window, X still catches it. –  Jes Mar 14 '12 at 19:25
I did some Googling and found you need to add something else to the config file. Let me know if it works. –  Sam Morris Mar 15 '12 at 11:49
After a few months of having to run Windows I have finally tested this on Lubuntu 12.04, where the IntelliJ IDEA window still does not catch the keystroke. –  Jes Aug 14 '12 at 20:52
Using the two settings was both required for me, and worked for me. (on centos). ctrl-alt-f7 is now showing the usages inline in intellij :). –  Rob Dawson Apr 15 '13 at 0:11

You can disable this by going to System settings -> keyboard layout -> option. under miscellaneous compatibility options check "special keys Ctrl+Alt+<key> handled in server".

I checked this and Ubuntu does not catch any combination of Ctrl+Alt+... . but still idea does not catch Ctrl+Alt+F7 and the problem still exits!!!.

share|improve this answer
You are right Ubuntu does not catch it, but I suspect that the X server does. –  Jes Mar 26 '13 at 14:45
Yay! Found out that by default in Ubuntu IDEA handles Ctrl + Alt + 7 instead of F7! –  o_nix Oct 30 '13 at 12:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.