>I recently looked at keymaps in /usr/share/syscons/keymaps and found
>many minor errors.  In addition to that, there is so much
>inconsistency among existing keymaps.  True that national keyboards have
>different layout of regular keys (alphanumeric keys and symbol keys).
>But, it is absurd that functions keys and special keys are handled in
>so many different ways.
[...]
>But, unless there is a good reason to make other exceptions, I will
>modify the other national keymaps to adapt these key assignments.
>
>Any comments?  I am open to suggestions.
>
>Kazu

Ok, this is my second keymap proposal. 

Kazu


* 101/102/104 Enhanced Keyboard support

Key Code        Key Stroke              Function
-----------------------------------------------------------------------------
  1             Ctrl-Alt-Esc            Enter DDB (debug).
 57             Ctrl-Alt-Space          Suspend (susp).
 70             ScrollLock              Backscroll (slock).
 84             Alt-SysRq(PrintScreen)  - (nop)
 92             PrintScreen             Switch to the next vty (nscr).
 92             Ctrl-PrintScreen        Enter DDB (debug).
104             Pause                   Backscroll (slock).
104             Shift-Pause             Start screen saver (saver).
104             Alt-Pause               Suspend (susp).
105             Left Windows            fkey62
106             Right Windows           fkey63
107             Menu                    fkey64
108             Ctrl-Break(Pause)       - (nop)

The separate SysRq key doesn't exist on the enhanced keyboard.  It is
combined with the PrintScreen key.  The SysRq code is generated when
the Alt and the PrintScreen keys are pressed together.

The separate Break key doesn't exist on the enhanced keyboard.  It is
combined with the Pause key.  The Break code is generated when the
Ctrl and the Pause keys are pressed together.

The above assignments for the keycodes 1, 57, 70, 84 and 92 are
compatible with many, if not all, existing keymaps.

The base case for the keycode 104 is compatible with existing keymaps.

The keycode 108 is new.

Many keymaps lacks entries for 105 through 107.

* 84 Keyboard support

Key Code        Key Stroke              Function
-----------------------------------------------------------------------------
  1             Ctrl-Alt-Esc            Enter DDB (debug).
 57             Ctrl-Alt-Space          Suspend (susp).
 70             ScrollLock              Backscroll (slock).
 84             SysRq                   - (nop)
 92             Shift-PrintScreen(*)    Switch to the next vty (nscr).
 92             Shift-Ctrl-PrintScreen  Enter DDB (debug).
104             Ctrl-Pause(NumLock)     Backscroll (slock).
104             Shift-Ctrl-Alt-Pause(NumLock)   Start screen saver (saver).
104             Ctrl-Alt-Pause(NumLock) Suspend (susp).
108             Ctrl-Break(ScrollLock)  - (nop)

The separate PrintScreen key doesn't exist on the 84 keyboard.  It is
combined with the numpad * key.  The PrintScreen code is generated
when the Shift and the numpad * keys are pressed together.

The separate Pause key doesn't exist on the 84 keyboard.  It is
combined with the NumLock key.  The Pause code is generated when the
Ctrl and the NumlLock keys are pressed together.

The separate Break key doesn't exist on the 84 keyboard.  It is
combined with the ScrollLock key.  The Break code is generated when
the Ctrl and the ScrollLock keys are pressed together.

* Proposed keymap

Combining the support for the 84 keyboard and the enhanced keyboard
described above, we will get the following keymap entries.

                                                alt
                        ctrl        alt   alt   ctrl
code  base  shift ctrl  shift alt   shift ctrl  shift
-----------------------------------------------------
  1   esc   esc   esc   esc   esc   esc   debug esc
 57   ' '   ' '   null  ' '   ' '   ' '   susp  ' '
 70   slock slock slock slock slock slock slock slock
 84   nop   nop   nop   nop   nop   nop   nop   nop
 92   nscr  nscr  debug debug nop   nop   nop   nop
104   slock saver slock saver susp  nop   susp  nop
105   fkey62fkey62fkey62fkey62fkey62fkey62fkey62fkey62
106   fkey63fkey63fkey63fkey63fkey63fkey63fkey63fkey63
107   fkey64fkey64fkey64fkey64fkey64fkey64fkey64fkey64
108   nop   nop   nop   nop   nop   nop   nop   nop


* Summary of magic key sequences

101 keyboard                    84 keyboard                     function
------------------------------------------------------------------------
Ctrl-Alt-Delete                 Ctrl-Alt-Delete                 reboot
Ctrl-Alt-Esc                    Ctrl-Alt-Esc                    debug
Ctrl-Alt-Space                  Ctrl-Alt-Space                  susp
ScrollLock                      ScrollLock                      slock
PrintScreen                     Shift-(Numpad *)/PrintScreen    nscr
Ctrl-PrintScreen                Shift-Ctrl-(Numpad *)/PrintScreen debug
Alt-PrintScreen/SysRq           SysRq                           nop
Pause                           Ctrl-NumLock                    slock
Shift-Pause                     Shift-Ctrl-NumLock              saver
Alt-Pause                       Alt-Ctrl-NumLock                susp
Ctrl-Pause/Break                Ctrl-ScrollLock/Break           nop

<<EOF>>

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to