From owner-freebsd-usb@FreeBSD.ORG Fri Jun 12 05:45:20 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 1BBB510656DE for ; Fri, 12 Jun 2009 05:45:20 +0000 (UTC) (envelope-from admin@ivangelion.tw) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id CD6198FC12 for ; Fri, 12 Jun 2009 05:45:19 +0000 (UTC) (envelope-from admin@ivangelion.tw) Received: by qyk3 with SMTP id 3so2833144qyk.3 for ; Thu, 11 Jun 2009 22:45:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.85.195 with SMTP id p3mr706521qcl.79.1244783768699; Thu, 11 Jun 2009 22:16:08 -0700 (PDT) From: Chun-fan Ivan Liao Date: Fri, 12 Jun 2009 13:15:47 +0800 Message-ID: <173f52ec0906112215o4a17788fp9ebc121f39575ebe@mail.gmail.com> To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: itetcu@freebsd.org Subject: 2 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE AMD64 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, 12 Jun 2009 05:45:20 -0000 MB: GIGABYTE GA-MA78GM-US2H OS version: FreeBSD 7.2 RELEASE amd64 apcupsd version: 3.14.5 UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW) UPS cable type: usb 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf: --------- UPSCABLE usb UPSTYPE usb DEVICE ((using "DEVICE ugen0" yields the same problem)) --------- Other lines are default. Problem Description: 1. The APC box cannot be detected when connected to the FreeBSD system on system boot. (apcupsd_enable="YES" is set in /etc/rc.conf ) The associated messages in /var/log/messages: --------- May 10 16:08:27 aura-cosmetics apcupsd[901]: 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 . May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown completed --------- But if APC UPS is connected to the system after the system has been started, it can be identified by the system, and running apcupsd start or apctest is just ok. Also, if I disable all USB-related configuraton in kernel and load usb.ko & ugen.ko manually after the sytem has been started, the APC UPS can be identified and running "apcupsd start" now will do just fine. (if using /boot/loader.conf to automatically load 2 modules, the problem still occurs) 2. Continuing 1, if I don't use those ad-hoc, and unplug the connecting USB then re-plug it to the same port, the USB cannot be identified. The associated message in /var/log/messages: --------- May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem (TIMEOUT), disabling port 3 --------- Here is my system information: # less /var/run/dmesg.boot: http://www.ivangelion.tw/~cfliao/dmesg.boot # pciconf -vl > pciconf http://www.ivangelion.tw/~cfliao/pciconf # acpidump -dt > aura-acpidump.asl http://www.ivangelion.tw/~cfliao/aura-acpidump.asl Any help will be greatly appreciated. Best Regards, Chun-fan Ivan Liao http://ivangelion.tw