From owner-freebsd-current@FreeBSD.ORG Mon Jan 5 21:28:04 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 DD49D10656BA for ; Mon, 5 Jan 2009 21:28:04 +0000 (UTC) (envelope-from yr.retarded@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 8FBED8FC0C for ; Mon, 5 Jan 2009 21:28:04 +0000 (UTC) (envelope-from yr.retarded@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so3292313yxb.13 for ; Mon, 05 Jan 2009 13:28:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=uHeR2KybxH1cAdTcCvx53o5mfkQ/LDjb3XcQp28jMZQ=; b=ach+H9q7sx0l+jygMdzifNu0NdH3Y0BDfyM2JnwszTMyiF6/cZ0Jkl4Cn2agvKMEPr R+V/W/1Xn12lOPwqEC1Qegr4Anm1orBNbXSEu4NKluEzA9BZECEfjbY4DKw9K3cllkzg 1P0DSsyyDdb7QWKKYDQ0YwEP7z+yyPFO0Hv1g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jI6yAGXa5pKTsAz64bTs1bbFzRhD9hyrvamaS1dDZARNE81lM5BlbRnljoXwHXk9wD CTxrJ3kBbdtWGA+vdMeTL1C+9sIFeT4WIGrv/pXzE+xED9PO62BnlJbOIdRUTiAV+c43 mrkUOpbHwVrriC0AgadvbnxIr7BWYVeTE4mNw= Received: by 10.151.41.21 with SMTP id t21mr12658529ybj.132.1231190883754; Mon, 05 Jan 2009 13:28:03 -0800 (PST) Received: by 10.150.98.19 with HTTP; Mon, 5 Jan 2009 13:28:03 -0800 (PST) Message-ID: <58c737d70901051328t38b99a14g52a0d85bbbc1daa2@mail.gmail.com> Date: Mon, 5 Jan 2009 15:28:03 -0600 From: "Chris Ruiz" To: freebsd-current@freebsd.org In-Reply-To: <200901051059.39566.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <58c737d70901041734u590ce80am7e86ad50077fd97@mail.gmail.com> <200901051059.39566.hselasky@c2i.net> 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:28:05 -0000 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: # ldd /usr/local/sbin/apcupsd /usr/local/sbin/apcupsd: libwrap.so.5 => /usr/lib/libwrap.so.5 (0x800660000) libthr.so.3 => /lib/libthr.so.3 (0x800769000) libc.so.7 => /lib/libc.so.7 (0x800880000) Thanks, Chris