You are not logged in.

#1 2016-04-09 22:45:27

TuxForLife
Member
Registered: 2015-11-14
Posts: 18

How can I disable keyboard shortcut for tty4?

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

#2 2016-04-09 22:59:35

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How can I disable keyboard shortcut for tty4?

Edit /etc/systemd/logind.conf, and add this line:

NAutoVTs=3

reboot, and you should only have three virtual consoles.

http://unix.stackexchange.com/questions … th-systemd

Offline

#3 2016-04-09 23:01:54

TuxForLife
Member
Registered: 2015-11-14
Posts: 18

Re: How can I disable keyboard shortcut for tty4?

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

#4 2016-04-09 23:04:05

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How can I disable keyboard shortcut for tty4?

Weird, it works for me.

Offline

#5 2016-04-09 23:06:30

TuxForLife
Member
Registered: 2015-11-14
Posts: 18

Re: How can I disable keyboard shortcut for tty4?

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

#6 2016-04-09 23:08:51

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How can I disable keyboard shortcut for tty4?

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

#7 2016-04-09 23:25:34

TuxForLife
Member
Registered: 2015-11-14
Posts: 18

Re: How can I disable keyboard shortcut for tty4?

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

Board footer

Powered by FluxBB