Subject: Re: Adesso keyboard not recognized by hwdirect ADB
To: Stephen Brown <sbrown@best.com>
From: Colin Wood <cwood@ichips.intel.com>
List: port-mac68k
Date: 11/20/1999 16:00:54
Stephen Brown wrote:
> 
> Hi Colin,
> 
> Thanks for the response.  My comments and results are below.
> 
> The keyboard did not come with any software.  The Mouse Systems mouse
> came with a control panel, but nothing for the keyboard...

strange.  the reason why i ask is that the handler ID it is using (128 or
115 or whatever) isn't a standard apple handler id (those are usually less
than 20 or so).  if that's the case, i don't believe that macos will
recognize it quite properly.  then again, macos may be doing something to
put it into extended keyboard mode or something similar.  if you'd like,
you can get a copy of an adb utility such as ADB Prober (should be
available off of one of apple's web or ftp sites) and find out what the
handler id is under macos.  if it's not 115 or 128 and is instead
something more like 1, 2, or 4, then we can probably add some code to
initialize the keyboard properly under netbsd.
 
> I applied the patch below(I wound up masking "adbaddr" as well as 
> "origaddr", but I'm not sure if that is necessary).

i'm pretty sure it's not, but you never know :-)

> I am able to 
> boot and get the keyboard recognized now, but not consistently.  I'm
> not entirely sure why my results are inconsistent yet, but I'll do 
> some more experimentation tomorrow.  I did note that putting some 
> debug printfs in there show that sometimes the return from GetIndADB()
> is '-1'.  But, I'm not sure why. 

well, that sounds a bit odd, to put it mildly.  unless it's actually
returning a signed char whose value happens to be 0xff ;-)  is this
keyboard ever flakey under macos?

> The last boot I tried yesterday
> (after a full power cycle) was successful and gave the following
> dmesg entries:
>
> adb0 (direct, II series): 3 targets
> aed0 at adb0 addr 0: ADB Event device
> kbd0 at adb0 addr 2: mapped device (128)
> ms0 at adb0 addr 3: Mouse Systems A3 mouse, 3-button, 300 dpi
> kbd1 at adb0 addr 2: extended keyboard
> 
> After that boot, everything seems to be working fine.
> I'll let you know if I find out anything further tomorrow.

cool.  please do!

-colin