SOLVED! disable CTRL-ALT-F1...F6

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ccc

SOLVED! disable CTRL-ALT-F1...F6

Post by ccc »

hi

Howto disable CTRL-ALT-F1...F6 on Mint with LXDE?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: disable CTRL-ALT-F1...F6

Post by xenopeek »

Depends on which Linux Mint version you are using. Assuming you are using a supported version of Linux Mint (13 or above), configure the Upstart services for these to not start automatically. I recommend you keep at least one virtual console functioning so you can use that in case you run into problems with your graphical desktop. In any case, this will not save you any significant amount of RAM or CPU if that was your intent.

To disable the virtual console at Ctrl+Alt+F1:

Code: Select all

echo manual | sudo tee -a /etc/init/tty1.override
Repeat the command for the other 5 as desired, replacing 'tty1' with 'tty2', 'tty3', and so on.
Image
ccc

Re: disable CTRL-ALT-F1...F6

Post by ccc »

Create as root in /usr/share/X11/xorg.conf.d/50-novtswitch.conf with these entries:

Code: Select all

Section "ServerFlags"
Option "DontVTSwitch" "true"
EndSection
Locked

Return to “Software & Applications”