Subject: Re: prototype in GENERIC for APC UPS?
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-kern
Date: 04/23/2007 21:20:30
In article <20070423183942.GA6843@arresum.veego.de>,
Bernd Ernesti  <veego@NetBSD.org> wrote:
>-=-=-=-=-=-
>
>On Mon, Apr 23, 2007 at 01:52:55PM -0400, Steven M. Bellovin wrote:
>> On Mon, 23 Apr 2007 18:42:59 +0200
>> Manuel Bouyer <bouyer@antioche.eu.org> wrote:
>> 
>> > On Mon, Apr 23, 2007 at 05:24:56PM +0200, Joerg Sonnenberger wrote:
>> > > On Mon, Apr 23, 2007 at 04:09:56PM +0100, Matthias Scheler wrote:
>> > > > Well, you could always teach uhid(4) to ignore certain devices in
>> > > > which ugen(4) should get them.
>> > > 
>> > > I think it would be better to fix apcusbd to work with uhid
>> > > instead. I think that it doesn't work is mostly a linuxism.
>> > 
>> > I'm not sure it's that easy. From what I remember an APC ups matched
>> > by usbhid will attach 50 or so instances of usbhid. 
>> 
>> To be precise, 48:
>
>kern/31884
>
>Attached is an updated patch for -current (don't forget to regen usbdevs_data.h
>and usbdevs.h), which I use now for several months.
>
>ugen0 at uhub0 port 2
>ugen0: American Power Conversion Back-UPS RS 1500 FW:8.g8 .I USB FW:g8,
>rev 1.10/1.06, addr 3
>
>Bernd

I like it, but is there a better way to achieve the same effect?

christos