Subject: kern/19153: /dev/wskbd should inherit encoding from /dev/wskbd0
To: None <gnats-bugs@gnats.netbsd.org>
From: Christopher Richards <richards+netbsd@CS.Princeton.EDU>
List: netbsd-bugs
Date: 11/23/2002 22:06:53
>Number:         19153
>Category:       kern
>Synopsis:       /dev/wskbd<N+1> should inherit encoding etc. from /dev/wskbd0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 23 19:08:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Christopher Richards
>Release:        NetBSD 1.6_STABLE
>Organization:
 
>Environment:
	
	
System: NetBSD zembla.Princeton.EDU 1.6_STABLE NetBSD 1.6_STABLE (ZEMBLA) #14: Thu Nov 21 01:31:15 EST 2002 richards@zembla.Princeton.EDU:/home/richards/src/kern i386
Architecture: i386
Machine: i386
>Description:
	Keyboards that attach after the execution of /etc/rc.d/wscons
	are not (cannot be) automatically configured.  Instead, they
	are instantiated with default settings.

	This is terribly annoying if one uses a nonstandard encoding,
	for example.

	Using usbhidaction as a work-around is not possible, because
	that program pertains only to generic, non-keyboard HID devices.

	So, either

	1) /dev/wskbd<N+1> should inherit applicable settings
	   (encoding, etc) from /dev/wskbd0, or

	2) usbhidaction should be altered to permit the attach-time
	   configuration of arbitrary HID devices, including keyboards
	   and mice.

>How-To-Repeat:
	
	$ wsconsctl -w encoding=us.swapctrlcaps.metaesc

	[...Attach new keyboard...]

	$ lynx www.netbsd.ogrHHrgJ

	[...Curse...]

	$ wsconsctl -f /dev/wskbd1 -w encoding=us.swapctrlcaps.metaesc

>Fix:
	
	Not supplied.
>Release-Note:
>Audit-Trail:
>Unformatted: