From owner-freebsd-questions@FreeBSD.ORG Sun May 31 22:29:06 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F676106566B for ; Sun, 31 May 2009 22:29:06 +0000 (UTC) (envelope-from admin@ivangelion.tw) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 113658FC19 for ; Sun, 31 May 2009 22:29:05 +0000 (UTC) (envelope-from admin@ivangelion.tw) Received: by qw-out-2122.google.com with SMTP id 3so3831163qwe.7 for ; Sun, 31 May 2009 15:29:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.70.141 with SMTP id d13mr1494765qcj.70.1243808944858; Sun, 31 May 2009 15:29:04 -0700 (PDT) In-Reply-To: <20090510180012.GA87871@melon.esperance-linux.co.uk> References: <173f52ec0905100208sda471d2q31534ca168650d63@mail.gmail.com> <20090510180012.GA87871@melon.esperance-linux.co.uk> From: Chun-fan Ivan Liao Date: Mon, 1 Jun 2009 06:28:43 +0800 Message-ID: <173f52ec0905311528y73655d51me6ff56ea4c34f0d5@mail.gmail.com> To: Frank Shute , Chun-fan Ivan Liao , freebsd-questions@freebsd.org, apcupsd-users@lists.sourceforge.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: 4 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2009 22:29:06 -0000 On Mon, May 11, 2009 at 2:00 AM, Frank Shute wrote: > > On Sun, May 10, 2009 at 05:08:03PM +0800, Chun-fan Ivan Liao wrote: > > > > OS version: FreeBSD 7.2 RELEASE > > 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 > > --------- > > Other lines are default. > > I've got an APC SmartUPS 750 (USB on 6.4-RELEASE). > > When I hacked my apcupsd.conf (sometime ago now), I put in: > > DEVICE ugen0 > > I don't know if that's your problem i.e: you haven't specified the > DEVICE. > The reason that I did not specify the DEVICE is because the instruction in apcupsd.conf said so. And specifying DEVICE ugen0 yielded the same result. > > > > > > Problem Description: > > 1. > > The APC box cannot be detected when connected to the FreeBSD system on > > system boot. (apcupsd_enable=3D"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 com= pleted > > --------- > > > > 2. > > Continuing 1, if I 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 > > --------- > > > > 3. > > Contiuning 2, changing the port to plug the USB will do, and > > /var/log/messages reads: > > --------- > > May 10 16:41:07 aura-cosmetics root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub1 > > May 10 16:41:08 aura-cosmetics kernel: ugen0: > Conversion Back-UPS RS 1000 FW:7.g9a.D USB FW:g9a, class 0/0, rev > > 1.10/1.06, addr 2> on uhub1 > > --------- > > > > But when starting the apcupsd now using [apcupsd start], there is no > > "freebsd startup succeeded" message appearing in /var/log/messages. > > > > However using [ps ax| grep apcupsd], there is the following associated > > procedure in the standard output: > > --------- > > 1264=C2=A0 ??=C2=A0 Ss=C2=A0=C2=A0=C2=A0=C2=A0 0:00.01 apcupsd start > > --------- > > > > 4. > > The last problem continuing 3, if stopping the apcupsd now using > > [apcupsd stop], the following error messages occur in > > /var/log/messages: > > --------- > > May 10 16:48:11 aura-cosmetics apcupsd[1270]: Valid lock file for > > pid=3D1264, but not ours pid=3D1270 > > May 10 16:48:11 aura-cosmetics apcupsd[1271]: 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:48:11 aura-cosmetics apcupsd[1271]: Valid lock file for > > pid=3D1264, but not ours pid=3D1271 > > May 10 16:48:11 aura-cosmetics apcupsd[1271]: apcupsd error shutdown co= mpleted > > --------- > > > > Any help will be greatly appreciated. > > Regards, > > -- > > =C2=A0Frank > > > =C2=A0Contact info: http://www.shute.org.uk/misc/contact.html >