From owner-freebsd-questions@FreeBSD.ORG Sun May 10 18:00:26 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 C3830106568F for ; Sun, 10 May 2009 18:00:26 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6868FC22 for ; Sun, 10 May 2009 18:00:25 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1M3DJz-0006rX-Rx; Sun, 10 May 2009 19:00:19 +0100 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id n4AI0Hdp018165; Sun, 10 May 2009 19:00:17 +0100 Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 961A8FCA699; Sun, 10 May 2009 19:00:12 +0100 (BST) Date: Sun, 10 May 2009 19:00:12 +0100 From: Frank Shute To: Chun-fan Ivan Liao Message-ID: <20090510180012.GA87871@melon.esperance-linux.co.uk> Mail-Followup-To: Chun-fan Ivan Liao , freebsd-questions@freebsd.org, apcupsd-users@lists.sourceforge.net References: <173f52ec0905100208sda471d2q31534ca168650d63@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <173f52ec0905100208sda471d2q31534ca168650d63@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.4-RELEASE-p2 i386 X-Organisation: 'http://www.shute.org.uk/' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.7 (zetnet.co.uk [194.247.46.1]); Sun, 10 May 2009 19:00:18 +0100 (BST) Cc: apcupsd-users@lists.sourceforge.net, freebsd-questions@freebsd.org 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 Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 May 2009 18:00:27 -0000 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. > > > 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 > --------- > > 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  ??  Ss     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=1264, but not ours pid=1270 > 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=1264, but not ours pid=1271 > May 10 16:48:11 aura-cosmetics apcupsd[1271]: apcupsd error shutdown completed > --------- > > Any help will be greatly appreciated. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html