[Solved] Removing keyboard shortcut for text mode

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
meet
Black ninja
Black ninja
Posts: 88
Joined: 31 Mar 2020, 04:37
Distribution: Porteus 4.0

[Solved] Removing keyboard shortcut for text mode

Post#1 by meet » 14 Apr 2020, 03:26

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
Last edited by meet on 16 Apr 2020, 04:31, edited 2 times in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 5514
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Removing keyboard shortcut for text mode

Post#2 by Ed_P » 14 Apr 2020, 05:55

When that happens try pressing Ctrl+Alt+F7.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2495
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Removing keyboard shortcut for text mode

Post#3 by ncmprhnsbl » 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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

meet
Black ninja
Black ninja
Posts: 88
Joined: 31 Mar 2020, 04:37
Distribution: Porteus 4.0

Removing keyboard shortcut for text mode

Post#4 by meet » 15 Apr 2020, 05:01

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.

meet
Black ninja
Black ninja
Posts: 88
Joined: 31 Mar 2020, 04:37
Distribution: Porteus 4.0

Removing keyboard shortcut for text mode

Post#5 by meet » 15 Apr 2020, 05:02

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.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2495
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Removing keyboard shortcut for text mode

Post#6 by ncmprhnsbl » 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 ''    
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

meet
Black ninja
Black ninja
Posts: 88
Joined: 31 Mar 2020, 04:37
Distribution: Porteus 4.0

Removing keyboard shortcut for text mode

Post#7 by meet » 15 Apr 2020, 10:48

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.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2495
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Removing keyboard shortcut for text mode

Post#8 by ncmprhnsbl » 15 Apr 2020, 12:10

afaiui, this should only disable switching to tty from X via shift+crtl+Fn keys..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 5514
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Removing keyboard shortcut for text mode

Post#9 by Ed_P » 15 Apr 2020, 14:36

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.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2495
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Removing keyboard shortcut for text mode

Post#10 by ncmprhnsbl » 15 Apr 2020, 22:36

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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 5514
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Removing keyboard shortcut for text mode

Post#11 by Ed_P » 15 Apr 2020, 23:54

Ed

Post Reply