You are not logged in.
I'm looking to disable the keyboard shortcut for tty4 (ctrl+alt+f4).
I end up accidentally doing this in my steam controller quite frequently, and it ends up going to the login prompt for tty4.
Ideally, I would just like to remove ctrl+alt+f4 or the tty4 altogether, but if I have to delete all ttys 4 and onwards, that's totally fine.
I tried all three methods (provided by the top answer) for this very similar question.
Offline
Edit /etc/systemd/logind.conf, and add this line:
NAutoVTs=3reboot, and you should only have three virtual consoles.
Offline
That was one of the methods I tested with the link on AskUbuntu. Mine is currently set to NAutoVTs=2 in fact.
And yes, I did reboot, and I did uncomment it
Last edited by TuxForLife (2016-04-09 23:02:27)
Offline
Weird, it works for me.
Offline
Well I guess I would say it technically does, since upon pressing (ctrl+alt+f4) all there is is a cursor, and nothing else.
But my problem is I want to avoid to going to that screen altogether and staying in the current tty.
So I guess my problem is the keyboard shortcut itself.
Last edited by TuxForLife (2016-04-09 23:10:21)
Offline
No, I meant ctrl-alt-f4 does nothing after the edit -- I stay in the first console. But that doesn't help you; sorry.
Offline
ctrl+alt+f4 does nothing at all for you? O.o
Hmm.. I'm thinking my solution will have to be a workaround: to autostart in tt4 instead of tt1. Thanks for the help tt2ManyDogs
Offline