Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2002 04:50:40 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Alan Clegg <alan@clegg.com>
Cc:        freebsd-mobile@freebsd.org
Subject:   RE: USB Keyboard auto enable via usbd
Message-ID:  <XFMail.020115045040.jhb@FreeBSD.org>
In-Reply-To: <20020114202858.C31216@shell.wetworks.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 15-Jan-02 Alan Clegg wrote:
> I've added the following section to my /etc/usbd.conf:
> 
> device "USB Keyboard"
>       devname "ukbd0"
>       attach "kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null"
>       detach "kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null"
> 
> To take notice of the attachment (and detachment) of a USB keyboard.
> 
> Any pro/con to getting this submitted to the code maintainers to include
> in the default config?
> 
> My one issue is that I'd like to use ${DEVNAME} in the attach kbdcontrol,
> but, as you can see, the device is ukbd0 and the entry in /dev is kbd1.

Sometimes it is kbd0 as well. :)  What really needs to happen is that the
keyboard code needs to be reworked to either be more intelligent in the kernel
about doing this, or about muxing hte various keyboard inputs rather than only
allowing one keyboard to input to the console.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020115045040.jhb>