From owner-freebsd-usb@FreeBSD.ORG Fri Feb 13 03:33:46 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 D83A9106566B for ; Fri, 13 Feb 2009 03:33:46 +0000 (UTC) (envelope-from bowie@nrik.jp) Received: from msa105.auone-net.jp (msa105.auone-net.jp [61.117.18.165]) by mx1.freebsd.org (Postfix) with ESMTP id A97978FC2A for ; Fri, 13 Feb 2009 03:33:46 +0000 (UTC) (envelope-from bowie@nrik.jp) Received: from brain.nrik.jp (KD124211071078.ppp-bb.dion.ne.jp [124.211.71.78]) by msa105.auone-net.jp (au one net msa) with ESMTP id 66CA3684045 for ; Fri, 13 Feb 2009 12:15:39 +0900 (JST) Date: Fri, 13 Feb 2009 12:15:35 +0900 Message-ID: <86y6wbf2nc.wl%bowie@nrik.jp> From: Noriyoshi Kawano To: freebsd-usb@freebsd.org User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.3 (amd64-portbld-freebsd8.0) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: 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 03:33:47 -0000 Hi, I want to use apcupsd under USB2. [dmesg] ugen0.2: at usbus0 uhid0: 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: 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: 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 ? Noriyoshi Kawano