NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: USB-keyboard with a non-standard layout in wscons
Dear List.
I still have problems with my USB keyboard and wscons.
On Thu, Jun 25, 2015 at 3:32 AM, Dan LaBell <dan4l-nospam%verizon.net@localhost> wrote:
> ...
> Maybe check current mode, with wsconsctl -a
> In wscons.conf you have encoding=dk ?
> ...
> There's a way to add a file of individual redefines in wscons.conf,
> with "mapfile", but I'm still putting mine in /etc/rc.local
> I have:
> /sbin/wsconsctl -w map+="keycode 1 = Escape exclamdown" > /dev/null
> /sbin/wsconsctl -w map+="keycode 58 = Cmd_Debugger Control_L" > /dev/null
> /sbin/wsconsctl -w map+="keycode 211 = KP_Delete" > /dev/null
> ...
I have tried to follow Dan's suggestions.
The command wsconsctl -a gives this output
type=usb
bell.pitch=1500
... <snip ...
encoding=dk.nodead
... <snip ...
---------------------------
The command wsconsctl -a gives this output
map=
keycode 4 = a A
keycode 5 = b B
keycode 6 = c C
... <snip> ...
keycode 47 = aring gr_E
keycode 48 = diaeresis asciicircum asciitilde asciitilde
keycode 49 = backslash bar
keycode 50 = apostrophe asterisk
keycode 51 = gr_z gr_Z
... <snip> ...
---------------------------
Note that the map does not start with keycode 1. It is clear that
keycode=49 yields the un-wanted characters and keycode=50
yields the characters that are standard for a Danish keyboard.
My/etc/rc.local now contains:
... <snip ...
# set a new mapping to give:
# keycode 49 = apostrophe asterisk
# /sbin/wsconsctl -w map="keycode 49 = apostrophe asterisk"
# ^^^ Does not work ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# /sbin/wsconsctl -w map+="keycode 49 = apostrophe asterisk"
# ^^^ Does not work either ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
... <snip ...
In the first case, wsconsctl confirms that the mapping is set, and
in the second case wsconsctl displays the whole new mapping.
But wscons dies! In the sense that I cannot type anything. I
made an "unclean" restart by means of power-off/on. From an
xterm, i could insert the numbersign in front of the remapping in
question and add the "Does not work"-line.
It seems as if I must create a totally new mapping.
Where can I find the USB-mappings?
Kind regards
Hans
Home |
Main Index |
Thread Index |
Old Index