Hello everyone,
Does anyone know how to disable switch to virtual terminal via short cut keys: Ctrl+Alt+Fn?
Before I used X11 display server and just config as following and it will prevent switch to VT.
Section "ServerFlags"
Option "DontVTSwitch" "on"
EndSection
Right now if I want keep Wayland display server by default in the system. I modified file: /etc/systemd/loginf.conf file to uncomment 2 lines and changed to:
NAutoVTs=0
ReserveVT=N
then this will disable open a virtual terminal, but display still switch to virtual terminal even though it can not get any virtual terminal.
My question is: how to config prevent display switch (to VT)
Regards,
How to disable short-cut key Ctrl+Alt-Fn switch to virtual terminal
-
- Posts: 107
- Joined: 2016/01/12 23:27:04
- Location: Vista California
-
- Posts: 107
- Joined: 2016/01/12 23:27:04
- Location: Vista California
Re: How to disable short-cut key Ctrl+Alt-Fn switch to virtual terminal
So far I configure file: /etc/systemd/logind.conf as followings:
NAutoVTs=0 ---> disable auto allocate vertual terminal
ReserveVT=0 ---> disable reserve virtual terminal
reboot the machine it works. But when i enable it just Add # sign to both of them to reboot, then disable again, this time it won't get disable and all of them could be switch to virtual terminals (click Ctrl_Alt+f2.3.4.5.6). It is really a NIGHTMARE!
I am so depressed!
NAutoVTs=0 ---> disable auto allocate vertual terminal
ReserveVT=0 ---> disable reserve virtual terminal
reboot the machine it works. But when i enable it just Add # sign to both of them to reboot, then disable again, this time it won't get disable and all of them could be switch to virtual terminals (click Ctrl_Alt+f2.3.4.5.6). It is really a NIGHTMARE!
I am so depressed!
-
- Posts: 107
- Joined: 2016/01/12 23:27:04
- Location: Vista California
Re: How to disable short-cut key Ctrl+Alt-Fn switch to virtual terminal
Heat up!!
Any one help is very appreciated!!
Under Wayland display server, is there a way to configured preventing switch to virtual console?
Thanks
Any one help is very appreciated!!
Under Wayland display server, is there a way to configured preventing switch to virtual console?
Thanks
Re: How to disable short-cut key Ctrl+Alt-Fn switch to virtual terminal
Have a look at vlock that comes with the kbd package.