Subject: misc/23105: Userland keymap for swiss german and swiss french keyboards
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <the@gmx.ch>
List: netbsd-bugs
Date: 10/08/2003 21:06:21
>Number:         23105
>Category:       misc
>Synopsis:       Userland keymap for swiss german and swiss french keyboards
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 08 21:07:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Eichmann
>Release:        NetBSD 1.6.1
>Organization:
>Environment:
NetBSD nbsd.local.net 1.6.1_STABLE NetBSD 1.6.1_STABLE (MYKERNEL) #0: Sun Oct  5 03:41:16 GMT 2003     the@nbsd.local.net:/usr/src/sys/arch/i386/compile/MYKERNEL i386
>Description:
There is no built-in wscons keyboard mapping for neither swiss german nor swiss french keyboards.
>How-To-Repeat:

>Fix:
In NetBSD we can define our own keymap files for wscons. The files should remain in /usr/share/wscons/keymaps.
Copy all the lines between the two "-- swiss german --" tags (see below) into the file /usr/share/wscons/keymaps/pckbd.de_CH.iso8859-1 for the swiss german keymap. For the swiss french keymap copy the lines between the "-- swiss french --" tags into /usr/share/wscons/keymaps/pckbd.fr_CH.iso8859-1.

Now you have to configure wscons. Edit the file /etc/wscons.conf. Add or change the mapfile line as follows:
mapfile /usr/share/wscons/keymaps/pckbd.de_CH.iso8859-1
or respectively:
mapfile /usr/share/wscons/keymaps/pckbd.fr_CH.iso8859-1

As root can you restart wscons by executing:
/etc/rc.d/wscons restart

Keymap files content:

-- swiss german --
keycode 2 = 1 plus bar
keycode 3 = 2 quotedbl at
keycode 4 = 3 asterisk numbersign
keycode 5 = 4 ccedilla
keycode 7 = 6 ampersand notsign
keycode 8 = 7 slash brokenbar
keycode 9 = 8 parenleft
keycode 10 = 9 parenright
keycode 11 = 0 equal
keycode 12 = apostrophe question dead_acute
keycode 13 = dead_circumflex dead_grave dead_tilde
keycode 21 = z Z
keycode 26 = udiaeresis egrave bracketleft
keycode 27 = dead_diaeresis exclam bracketright
keycode 39 = odiaeresis eacute
keycode 40 = adiaeresis agrave braceleft
keycode 41 = section degree dead_abovering
keycode 43 = dollar sterling braceright
keycode 44 = y Y
keycode 51 = comma semicolon
keycode 52 = period colon
keycode 53 = minus underscore
keycode 86 = less greater backslash
-- swiss german --


-- swiss french --
keycode 2 = 1 plus bar
keycode 3 = 2 quotedbl at
keycode 4 = 3 asterisk numbersign
keycode 5 = 4 ccedilla
keycode 7 = 6 ampersand notsign
keycode 8 = 7 slash brokenbar
keycode 9 = 8 parenleft
keycode 10 = 9 parenright
keycode 11 = 0 equal
keycode 12 = apostrophe question dead_acute
keycode 13 = dead_circumflex dead_grave dead_tilde
keycode 21 = z Z
keycode 26 = egrave udiaeresis bracketleft
keycode 27 = dead_diaeresis exclam bracketright
keycode 39 = eacute odiaeresis
keycode 40 = agrave adiaeresis braceleft
keycode 41 = section degree dead_abovering
keycode 43 = dollar sterling braceright
keycode 44 = y Y
keycode 51 = comma semicolon
keycode 52 = period colon
keycode 53 = minus underscore
keycode 86 = less greater backslash
-- swiss french --
>Release-Note:
>Audit-Trail:
>Unformatted: