From owner-freebsd-stable@FreeBSD.ORG Sat Sep 4 11:37:49 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3395810656E9 for ; Sat, 4 Sep 2010 11:37:49 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2-6.sentex.ca [IPv6:2607:f3e0:80:80::2]) by mx1.freebsd.org (Postfix) with ESMTP id 935A28FC18 for ; Sat, 4 Sep 2010 11:37:48 +0000 (UTC) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost2.sentex.ca (8.14.4/8.14.4) with ESMTP id o84BbeGw071815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 4 Sep 2010 07:37:41 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.4/8.14.3) with ESMTP id o84BbeYR030751; Sat, 4 Sep 2010 07:37:40 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <201009041137.o84BbeYR030751@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Sat, 04 Sep 2010 07:37:40 -0400 To: Ben Schumacher , apcupsd-users@lists.sourceforge.net, freebsd-stable@freebsd.org From: Mike Tancsa In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Scanned-By: MIMEDefang 2.67 on 205.211.164.50 Cc: Subject: Re: apcupsd, USB and FreeBSD 8.1 aren't getting along X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2010 11:37:49 -0000 At 04:44 PM 9/3/2010, Ben Schumacher wrote: >All- > >It seems that something about the combination of FreeBSD 8.1 and >apcupsd connecting to an APC Back-UPS RS 1500. > >Here's what I've got: >1. FreeBSD 8.1 (source compiled up to RELENG_8_1 for security fixes) >2. apcupsd 3.14.8 compiled from FreeBSD Ports >3. APC Back-UPS RS 1500 Hi, I am running RELENG_8 with such a ups. 8.1-STABLE FreeBSD 8.1-STABLE #1: Wed Sep 1 11:42:00 EDT 2010 % apcaccess APC : 001,038,0989 DATE : 2010-09-04 07:32:09 -0400 HOSTNAME : backup3.sentex.ca VERSION : 3.14.8 (16 January 2010) freebsd UPSNAME : RAPIDS CABLE : USB Cable MODEL : Back-UPS RS 1500 UPSMODE : Stand Alone STARTTIME: 2010-09-01 12:05:12 -0400 STATUS : ONLINE LINEV : 117.0 Volts LOADPCT : 38.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 83.5 Minutes MBATTCHG : 10 Percent MINTIMEL : -1 Minutes MAXTIME : 0 Seconds SENSE : Medium LOTRANS : 097.0 Volts HITRANS : 132.0 Volts ALARMDEL : 30 seconds BATTV : 26.9 Volts LASTXFER : Low line voltage NUMXFERS : 1 XONBATT : 2010-09-01 16:27:30 -0400 TONBATT : 0 seconds CUMONBATT: 26 seconds XOFFBATT : 2010-09-01 16:27:56 -0400 SELFTEST : NO STATFLAG : 0x07000008 Status Flag MANDATE : 2007-09-07 SERIALNO : 8B0736R21784 BATTDATE : 2007-09-07 NOMINV : 120 Volts NOMBATTV : 24.0 Volts NOMPOWER : 865 Watts FIRMWARE : 8.g9a.D USB FW:g9a APCMODEL : Back-UPS RS 1500 END APC : 2010-09-04 07:32:37 -0400 I just leave the DEVICE line blank UPSNAME STATN UPSCABLE usb UPSTYPE usb DEVICE LOCKFILE /var/spool/lock ONBATTERYDELAY 7 BATTERYLEVEL 10 MINUTES -1 TIMEOUT 0 ANNOY 10 ANNOYDELAY 10 NOLOGON disable KILLDELAY 2 NETSERVER on NISIP 127.0.0.1 NISPORT 3551 EVENTSFILE /var/log/apcupsd.events EVENTSFILEMAX 100 UPSCLASS standalone UPSMODE disable STATTIME 600 STATFILE /var/log/apcupsd.status LOGSTATS off DATATIME 600 FACILITY local2 UPSNAME RAPIDS SENSITIVITY H WAKEUP 010 SLEEP 000 RETURNCHARGE 00 BEEPSTATE T SELFTEST 336 You dont need to do any symlinks in /dev # usbconfig -d 5.2 dump_device_desc ugen5.2: at usbus5, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x051d idProduct = 0x0002 bcdDevice = 0x0106 iManufacturer = 0x0003 iProduct = 0x0001 iSerialNumber = 0x0002 <8B0736R21784 > bNumConfigurations = 0x0001 ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike