Page 1 of 1

[Solved] Removing keyboard shortcut for text mode

Posted: 14 Apr 2020, 03:26
by meet
Hello.
I am using Porteus 4 with KDE.
Recently, while changing a keyboard shortcut for some function, I pressed CTRL+ALT+F12 to set it. However, instead of setting the screen went blank and after a minute of pressing random keys and hitting my laptop, it showed me a terminal kinda screen, asking me to login. (Probably text mode logging?)

I couldn't find this shortcut anywhere in the settings.

Please help me how to remove this shortcut which takes me directly to the text mode.
What really annoys me is that there's not even any confirmation message or anything.


Solution:
A. Cannot disable or change one of these shortcuts. Can disable the whole CTRL+ALT+Fn combination shortcuts through the solution provided by ncmprhnsbl
B. Or else learn what these shortcuts / commands do. And work your way out in case of accidental press.
ncmprhnsbl
Ed_P

Removing keyboard shortcut for text mode

Posted: 14 Apr 2020, 05:55
by Ed_P
When that happens try pressing Ctrl+Alt+F7.

Removing keyboard shortcut for text mode

Posted: 14 Apr 2020, 12:22
by ncmprhnsbl
this might help.. seems to suggest there may be settings for this in kde.. otherwise setxkbmap..
https://unix.stackexchange.com/question ... ing#242293

Removing keyboard shortcut for text mode

Posted: 15 Apr 2020, 05:01
by meet
ncmprhnsbl wrote:
14 Apr 2020, 12:22
this might help.. seems to suggest there may be settings for this in kde.. otherwise setxkbmap..
https://unix.stackexchange.com/question ... ing#242293
I checked the setxkbmap using following command:

Code: Select all

setxkbmap -print
And the list it shown didn't have any CTRL+ALT+F12 shortcut. It only had one CTRL+ALT+BACKSPACE. And that too is disabled as per the GUI menu in KDE Settings.

Removing keyboard shortcut for text mode

Posted: 15 Apr 2020, 05:02
by meet
Ed_P wrote:
14 Apr 2020, 05:55
When that happens try pressing Ctrl+Alt+F7.
Ok. So that reverts me to the GUI.

But any way to disable these two settings. I don't need them.

Removing keyboard shortcut for text mode

Posted: 15 Apr 2020, 07:56
by ncmprhnsbl
meet wrote:
15 Apr 2020, 05:01
And the list it shown didn't have any CTRL+ALT+F12 shortcut.
yeah, it's an internal setting.. ie. not an explicit shortcut..
to turn them off do:

Code: Select all

setxkbmap -option srvrkeys:none
to turn back on:

Code: Select all

setxkbmap -option ''    

Removing keyboard shortcut for text mode

Posted: 15 Apr 2020, 10:48
by meet
ncmprhnsbl wrote:
15 Apr 2020, 07:56
meet wrote:
15 Apr 2020, 05:01
And the list it shown didn't have any CTRL+ALT+F12 shortcut.
yeah, it's an internal setting.. ie. not an explicit shortcut..
to turn them off do:

Code: Select all

setxkbmap -option srvrkeys:none
to turn back on:

Code: Select all

setxkbmap -option ''    
Hey thanks for the specific solution.
May I know what else does it disable? What all commands or shortcuts will stop working after this?

So that I don't end up deactivating something that I use along with this terminal shortcut.

Removing keyboard shortcut for text mode

Posted: 15 Apr 2020, 12:10
by ncmprhnsbl
afaiui, this should only disable switching to tty from X via shift+crtl+Fn keys..

Removing keyboard shortcut for text mode

Posted: 15 Apr 2020, 14:36
by Ed_P
Is there a command that lists all the shift+crtl+fn keys and their functions? Rather than disabling the keys knowing what they are and what they do might be an easier solution. Especially if they are printed and handy should they get accidentally invoked.

Removing keyboard shortcut for text mode

Posted: 15 Apr 2020, 22:36
by ncmprhnsbl
Ed_P wrote:
15 Apr 2020, 14:36
Is there a command that lists all the shift+crtl+fn keys and their functions?
no idea, shift+crtl+F1 to F12 access each TTY(virtual console) although porteus has only 7, so 8-12 are empty(no login prompt)
and when X(xorg display server) is running, TTY7 is taken over by the GUI..
also, they should only be disabled when running X.. eg if you drop to TTY(shut down X server) by running #init 3 (as root in a terminal) the Shft+Ctrl+Fn keys should work as normal..
if you're wondering what TTY stands for: TeleTYpewriter, a legacy term from when terminals connected to computers were electromechanical teleprinters or teletypewriters..

Removing keyboard shortcut for text mode

Posted: 15 Apr 2020, 23:54
by Ed_P