From owner-freebsd-usb@FreeBSD.ORG Fri Feb 13 09:58:56 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCE61106567B for ; Fri, 13 Feb 2009 09:58:56 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id 55BBE8FC21 for ; Fri, 13 Feb 2009 09:58:55 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=kw03RjmKpLm8ql5X2xOdcA==:17 a=SiJWWU-77YqhZkTBZWIA:9 a=Qev8pJ3R0a8JmafNHkylAO8HswoA:4 a=LY0hPdMaydYA:10 Received: from [85.19.218.115] (account mc467741@c2i.net HELO laptop) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1023142291; Fri, 13 Feb 2009 10:58:54 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 13 Feb 2009 11:01:21 +0100 User-Agent: KMail/1.9.7 References: <86y6wbf2nc.wl%bowie@nrik.jp> In-Reply-To: <86y6wbf2nc.wl%bowie@nrik.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902131101.22522.hselasky@c2i.net> Cc: Subject: Re: USB2 & apcupsd 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: Fri, 13 Feb 2009 09:58:57 -0000 On Friday 13 February 2009, Noriyoshi Kawano wrote: > Hi, > > I want to use apcupsd under USB2. > > [dmesg] > ugen0.2: at usbus0 > uhid0: rev 1.10/1.06, addr 2> on usbus0 Symlink: uhid0 -> usb0.2.0.16 > > 1. I recompile apcupsd to use the generic USB drvier. > > --- /usr/ports/sysutils/apcupsd/Makefile: line 109 ---- > CONFIGURE_ARGS+= --enable-usb --with-generic-usb > -------------------------------------------------------- > > 2. I use libmap.conf to make apcupsd use libusb20. > > --- /etc/libmap.conf ------- > [apcupsd] > libusb-0.1.so.8 libusb20.so > > [apctest] > libusb-0.1.so.8 libusb20.so > > [apcaccess] > libusb-0.1.so.8 libusb20.so > ---------------------------- > > It seems to work. But ups communication is interrupted repeatedly. > > [/var/log/message] > Feb 13 11:20:33 brain kernel: uhid0: at ushub0, port 1, addr 2 > (disconnected) Feb 13 11:20:34 brain kernel: uhid0: Conversion Uninterruptible Power Supply, class 0/0, rev 1.10/1.06, addr 2> > on usbus0 Feb 13 11:20:34 brain kernel: Symlink: uhid0 -> usb0.2.0.16 > Feb 13 11:20:35 brain apcupsd[5846]: Communications with UPS restored. > Feb 13 11:21:41 brain kernel: uhid0: at ushub0, port 1, addr 2 > (disconnected) Feb 13 11:21:42 brain kernel: uhid0: Conversion Uninterruptible Power Supply, class 0/0, rev 1.10/1.06, addr 2> > on usbus0 Feb 13 11:21:42 brain kernel: Symlink: uhid0 -> usb0.2.0.16 > Feb 13 11:21:43 brain apcupsd[5846]: Communications with UPS restored. > > > Of course, it works fine under old usb stack. > Any suggestion ? Turn on debugging: sysctl hw.usb2.uhid.debug=15 sysctl hw.usb2.uhub.debug=15 And send me dmesg. I see that the interval is relativly long, so it might be problem to trace. --HPS