From owner-freebsd-current@FreeBSD.ORG Mon Jan 5 21:48:19 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4818110656C5 for ; Mon, 5 Jan 2009 21:48:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swip.net [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 62F918FC08 for ; Mon, 5 Jan 2009 21:48:18 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=5gVvIhBEAAAA:8 a=6VBTdfXg2-7jrbF3rtoA:9 a=L6iBP6StayY52gENlcIA:7 a=f38zJypjYi7OxMaMJJfFUD7HcZ4A:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1006232591; Mon, 05 Jan 2009 22:48:16 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Mon, 5 Jan 2009 22:50:34 +0100 User-Agent: KMail/1.9.7 References: <58c737d70901041734u590ce80am7e86ad50077fd97@mail.gmail.com> <200901051059.39566.hselasky@c2i.net> <58c737d70901051328t38b99a14g52a0d85bbbc1daa2@mail.gmail.com> In-Reply-To: <58c737d70901051328t38b99a14g52a0d85bbbc1daa2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901052250.36428.hselasky@c2i.net> Cc: Chris Ruiz Subject: Re: apcupsd & usb2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2009 21:48:19 -0000 On Monday 05 January 2009, Chris Ruiz wrote: > On Mon, Jan 5, 2009 at 3:59 AM, Hans Petter Selasky wrote: > > On Monday 05 January 2009, Chris Ruiz wrote: > >> apcupsd no longer works now that i switched to usb2. the > >> usb2_input_hid module keeps attaching to it. before, with the old usb > >> stack, my ups would attach as ugen0, my dmesg shows it attaching as > >> uhid0 now and apcupsd cannot find it. if i unload the usb2_input_hid > >> module, my ups disappears. because something is mentioned in the post > >> install text for apcupsd, i believe that the usb2_hid_module should > >> not be attaching to the ups. any help would be appreciated. > >> > >> [old stack] > >> ugen0: >> FW:E6, class 0/0, rev 1.10/1.06, addr 2> on uhub5 > >> > >> [usb2] > >> uhid0: >> FW:E6, class 0/0, rev 1.10/1.06, addr 2> on usbus5 > >> Symlink: uhid0 -> usb5.2.0.16 > >> > >> [error message] > >> apcupsd[3643]: apcupsd FATAL ERROR in bsd-usb.c at line 735 Cannot > >> find UPS device -- For a link to detailed USB trouble shooting > >> information, please see . > >> apcupsd[3643]: apcupsd error shutdown completed > >> > >> thanks for all your hard work on the new usb stack, > > > > Hi Chris, > > > > You need to replace libusb0.1.xxx with libusb20 in /usr/local/lib or link > > apcupsd with libusb20. Then it will work again. > > > > --HPS > > I dont have a libusb0.1.* anywhere on my system. Here's what apcupsd > is linked to: Ok, Then you have to recompile apcupsd to use the generic USB driver (NOT the bsd.c). Maybe you can figure this out? /usr/ports/sysutils/apcupsd/work/apcupsd-3.14.4/src/drivers/usb/generic Makefile generic-usb.c hidutils.c hidutils.h libusb.h.in After that libusb gets installed you can use libmap.conf to make apcupsd use libusb20 instead of libusb from ports. --HPS