LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Disable Ctrl+Alt+Fn (https://www.linuxquestions.org/questions/ubuntu-63/disable-ctrl-alt-fn-395626/)

lukeprog 12-22-2005 08:33 AM

Disable Ctrl+Alt+Fn
 
I'm trying to disable virtual terminal switching in my Ubuntu install. I tried adding the following to xorg.conf (not both at the same time, obviously):

Section "Serverflags"
Option "DontVTSwitch" "yes"
EndSection

Section "Serverflags"
Option "DontVTSwitch" "true"
EndSection

Neither of them worked; I could still switch with Ctrl+Alt+F1, etc. How do I disable terminal switching in Ubuntu?

Matir 12-22-2005 08:41 AM

Do you already have another Serverflags section in your xorg.conf? If so, you might need to add it there. Did you restart X after each attempt to make sure the config-file was re-read? Did it give any warnings (WW) that might've indicated that there was an error with the config file?

lukeprog 12-22-2005 10:54 AM

There was no other "Serverflags" section already existing. I restarted X each time so xorg.conf was re-read. When I tried the first one, nothing unusual happened, except that I was still able to switch virtual terminals as usual. When I tried the second, X wouldn't come up at all until I deleted those lines from xorg.conf with vi.

What is WW?

Matir 12-22-2005 11:08 AM

(WW) is the code X inserts in front of lines containing warnings in its logs. (EE) is the code for errors. Ordinarily, X.org will create a file like /var/log/Xorg.0.log with information about its startup procedure. You could check in there to see if it said anything about that option.

lukeprog 12-22-2005 02:25 PM

Nope, no mention of "serverflags" at all in that file.

Has anyone ever disabled the virtual terminal switching in Ubuntu? Or in Debian, perhaps?

Matir 12-22-2005 02:30 PM

I've found that apparently all you should need is:
Code:

Section "Serverflags"
Option "DontVTSwitch"
EndSection

Give that a try and see if it works.


All times are GMT -5. The time now is 09:06 AM.