How to disable Ctrl + Alt + Function key combinations on Debian?

6

2

How do I disable Ctrl + Alt + F1 (for F1 through F12 ) buttons?

How can I configure Debian("Squeeze") so that nothing happens when the user presses those keys?

I'm using Gnome as the default desktop.

user531820

Posted 2011-06-26T16:25:05.167

Reputation: 85

Answers

8

This requires some manual X11 server configuration. Look in /etc/X11/xorg.conf; if it doesn't exist, you'll need to create it with the following contents:

Section "ServerFlags"
  Option "DontVTSwitch" "on"
EndSection

If it does exist, look for a Section "ServerFlags" and add the Option line above to it; if there isn't one, append the above lines to the file.

geekosaur

Posted 2011-06-26T16:25:05.167

Reputation: 10 195

3What can I do if, for some reason, I want only to disable Ctrl + Alt + F11? – Radu Rădeanu – 2013-05-01T09:56:17.710