From owner-freebsd-usb@FreeBSD.ORG Thu May 6 20:56:35 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A266D106566B for ; Thu, 6 May 2010 20:56:35 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.freebsd.org (Postfix) with ESMTP id 6613A8FC13 for ; Thu, 6 May 2010 20:56:35 +0000 (UTC) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.3/8.14.3) with ESMTP id o46KuV0k028879; Thu, 6 May 2010 16:56:31 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <201005062056.o46KuV0k028879@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Thu, 06 May 2010 16:56:36 -0400 To: Hans Petter Selasky , freebsd-usb@freebsd.org From: Mike Tancsa In-Reply-To: <201005062240.30548.hselasky@c2i.net> References: <201005061949.o46Jngdt028521@lava.sentex.ca> <201005062240.30548.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: adk0212@gmail.com Subject: Re: apcupsd port regression from 7x. to 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2010 20:56:35 -0000 At 04:40 PM 5/6/2010, Hans Petter Selasky wrote: > > 0.003 apcupsd: generic-usb.c:398 Initializing libusb > >The FreeBSD LibUSB v0.1 reports the wrong number of busses and devices. I can >fix this. Great! > > 0.003 apcupsd: generic-usb.c:403 Found 0 USB busses > > 0.007 apcupsd: generic-usb.c:405 Found 0 USB devices > >The problem is that the UPS code is designed to attach to the first matching >device only. LibUSB does not hide devices with drivers already >attached, which >I think your utility assumes. You should use: > >pidfile, see man pidfile > >To create a temporary file with some string which consists of all numbers in >udev->filename, separated by ".". Or USB LibUSB v.1.0! I am guessing the program would need to be re-written to use v1.0 ? Thanks for the feedback and help as always! I also found another work around by the author of the daemon which works great! http://kroptech.com/mailimport/showmsg.php?msg_id=3665255961&db_name=apcupsd-users >I've made a small patch, but it won't fix your issue :-( > >http://p4web.freebsd.org/@@177865?ac=10 > >--HPS -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike