NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/57234: https://netbsd.org/docs/guide/en/chap-cons.html#chap-cons-wscons-wskbd : "# wsconsctl -k -w encoding=pl" *should* work. It doesn't



The following reply was made to PR port-amd64/57234; it has been noted by GNATS.

From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: m.kozlowski%mini.pw.edu.pl@localhost
Subject: Re: port-amd64/57234: https://netbsd.org/docs/guide/en/chap-cons.html#chap-cons-wscons-wskbd
 : "# wsconsctl -k -w encoding=pl" *should* work. It doesn't
Date: Sat, 25 Feb 2023 07:35:38 +0000 (UTC)

 On Tue, 21 Feb 2023, Marek Kozlowski wrote:
 
 > After that change may keyboard gets completely unusable, I'm unable to
 > even login:
 >
 > qwertyuiop keys map to mnepqrstov or sth like this :-(
 >
 
 If you have a USB keyboard, please try this keymap file
 (ukbd.pl.iso8859-2):
 
 ```
 # $Id$
 #
 # This is a Polish QWERTY keymap for USB keyboards.
 # Base keycode = US (sys/dev/hid/hidkbdmap.c)
 
 keycode 4=a A plusminus exclamdown
 keycode 6=c C ae AE
 keycode 8=e E ecircumflex Ecircumflex
 keycode 15=l L threesuperior sterling
 keycode 17=n N ntilde Ntilde
 keycode 18=o O oacute Oacute
 keycode 22=s S paragraph brokenbar
 keycode 27=x X onequarter notsign
 keycode 29=z Z questiondown macron
 keycode 230=Mode_switch Multi_key
 ```
 
 If you have both PS/2 and USB keyboards, then you'll have to load
 the correct keymap for each keyboard. Use something like this in
 /etc/rc.local:
 
 ```
 mapkey() {
  	dev=$1
  	file=$2
  	while read line
  	do	echo "$line" | grep -Eq '^[[:blank:]]*(#|$)' ||
  		    wsconsctl -f /dev/"$dev" -w map+="$line"
  	done < "$file"
 }
 mapkey wskbd0 /etc/key-ps2.txt >/dev/null && echo -n ' wskbd0'
 mapkey wskbd1 /etc/key-usb.txt >/dev/null && echo -n ' wskbd1'
 unset -f mapkey
 ```
 
 Right now there's no simple method to apply a per-keyboard mapfile
 in /etc/rc.conf
 
 -RVP
 


Home | Main Index | Thread Index | Old Index