A Week of Trial [June Events 2021] - Community & Forums Related Discussions

Users browsing this thread: 1 Guest(s)
seninha
Long time nixers
(24-06-2021, 10:32 AM)phillbush Wrote: I've set up the keymap of TTY to be like my X11 keymap layout (Control on CapsLock key, Compose on Left Control Key, etc) but now I cannot use Ctrl+Alt+F# to move through TTYs and X11...

So, that's why changing TTY stopped working:
Some keycodes, such as 29 (left control key) are mapped to two keysyms at the same time: Cmd1 and Control_L. Control_L is the usual control symbol that is sent by pressing the control key. Cmd1 is a special keysym also sent by the control key that is used by the system to change TTY. The following are the keysyms assigned to the Left control, Left alt and F1 keys:

Code:
keycode 29 = Cmd1 Control_L
keycode 56 = Cmd2 Alt_L
keycode 59 = Cmd_Screen0 f1

It is the combination of symbols Cmd1 + Cmd2 + Cmd_Screen0 (not the combination Ctrl + Alt + F1) that changes the console to the first TTY.

So here's a note to myself (and to others using OpenBSD or NetBSD): while remapping the keys on wscons(4) (the console device) also remember to remap the special Cmd* keysyms.


Messages In This Thread
A Week of Trial [June Events 2021] - by venam - 01-06-2021, 12:07 PM
RE: A Week of Trial [June Events 2021] - by jkl - 01-06-2021, 02:36 PM
RE: A Week of Trial [June Events 2021] - by venam - 01-06-2021, 02:41 PM
RE: A Week of Trial [June Events 2021] - by pfr - 03-06-2021, 10:07 PM
RE: A Week of Trial [June Events 2021] - by movq - 20-06-2021, 10:17 AM
RE: A Week of Trial [June Events 2021] - by pfr - 22-06-2021, 09:41 PM
RE: A Week of Trial [June Events 2021] - by venam - 24-06-2021, 02:23 AM
RE: A Week of Trial [June Events 2021] - by pfr - 24-06-2021, 03:33 AM
RE: A Week of Trial [June Events 2021] - by venam - 24-06-2021, 03:39 AM
RE: A Week of Trial [June Events 2021] - by movq - 24-06-2021, 11:37 AM
RE: A Week of Trial [June Events 2021] - by jkl - 24-06-2021, 07:32 PM
RE: A Week of Trial [June Events 2021] - by pfr - 25-06-2021, 01:14 AM
RE: A Week of Trial [June Events 2021] - by movq - 26-06-2021, 01:59 AM
RE: A Week of Trial [June Events 2021] - by venam - 26-06-2021, 03:02 AM
RE: A Week of Trial [June Events 2021] - by seninha - 26-06-2021, 09:17 AM
RE: A Week of Trial [June Events 2021] - by movq - 27-06-2021, 01:01 PM
RE: A Week of Trial [June Events 2021] - by movq - 30-06-2021, 11:06 AM
RE: A Week of Trial [June Events 2021] - by venam - 30-06-2021, 01:27 PM
RE: A Week of Trial [June Events 2021] - by pfr - 01-07-2021, 09:40 PM
RE: A Week of Trial [June Events 2021] - by prx* - 02-07-2021, 05:31 AM