Subject: Re: UPS with USB support?
To: Wolfgang S. Rupprecht <wolfgang+gnus20050720@dailyplanet.dontspam.wsrcc.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 07/20/2005 07:45:41
In message <87psteuela.fsf@arbol.wsrcc.com>, "Wolfgang S. Rupprecht" writes:
>
>"Steven M. Bellovin" <smb@cs.columbia.edu> writes:
>> Do any of the UPS packages support UPS yet?  My local power company has 
>> been in a bad mood for the last week or two -- right now, I'm using the 
>> last of my UPS power to send this note...  (I have enough NetBSD 
>> machines on UPSs that I'd like to be able to do orderly shutdowns.)
>
>apcupsd supports my apc usb ups.  (What a tongue, er, finger twister!)
>
>One caveat, VIA usb bugs required me to buy a NEC-chip based usb card
>to keep the daemon and/or kernel from locking up.  (Unplugging the USB
>would usually clear the via-usb wedge unless three lemons came up in
>some internal counter.  In that case it would panic the kernel.)
>   
>$ apcaccess 
>APC      : 001,034,0851
>DATE     : Wed Jul 20 00:17:18 PDT 2005
>HOSTNAME : bonnet.wsrcc.com
>RELEASE  : 3.11.3
>VERSION  : 3.11.3 (12 June 2005) someotherbsd
>UPSNAME  : bonnet.wsrcc.com
>CABLE    : USB Cable
>MODEL    : Back-UPS RS 1500
>UPSMODE  : Stand Alone
>STARTTIME: Tue Jul 19 12:53:56 PDT 2005
>STATUS   : ONLINE 
>LINEV    : 121.0 Volts
>LOADPCT  :  21.0 Percent Load Capacity
>BCHARGE  : 100.0 Percent
>TIMELEFT : 167.0 Minutes
>MBATTCHG : 30 Percent
>MINTIMEL : 10 Minutes
>MAXTIME  : 0 Seconds
>LOTRANS  : 097.0 Volts
>HITRANS  : 132.0 Volts
>ALARMDEL : Always
>BATTV    : 27.3 Volts
>NUMXFERS : 0
>TONBATT  : 0 seconds
>CUMONBATT: 0 seconds
>XOFFBATT : N/A
>SELFTEST : NO
>STATFLAG : 0x02000008 Status Flag
>MANDATE  : 2004-08-10
>SERIALNO : JB0433007968  
>BATTDATE : 2001-09-25
>NOMBATTV :  24.0
>FIRMWARE : .g8 .D USB FW:g8 
>APCMODEL : Back-UPS RS 1500
>END APC  : Wed Jul 20 00:17:20 PDT 2005
>
>Well ok, this is currently plugged into a different bsd, but it runs
>bug-for-bug the same way under netbsd.
>

Thanks.  Any particular problem compiling it under NetBSD?  The pkgsrc 
version is 3.8.6nb4; you seem to be running 3.11.3, and the 
documentation with the package says that USB support is only in 3.9.4 
or later.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb