On Tue, Sep 05, 2006 at 02:46:49PM +0200, Francesco Pietra wrote: > I have two from APC,Back-Ups CS 500 and Back-Ups RS 1500. Trial below > refersto > the 500. > > My aim isimply to have done done at > poweroff/battery low: > #Ctrl C (to kill mpqc231 computation; there is no X system) > # shutdown -h now (to close Debian) > > Behavior of 500 is indicated anew below because I mistaken the outputs > (sorry, > Joe, was not mistaken by apcupsd, it was by myself) > > > Configuration: > /etc/apcups/apcupsd.conf > ## apcupsd.conf v1.1 ## > # ?for apcupsd release 3.12.3 (26 April 2006) - debian > UPSCABLE usb > UPSTYPE usb > DEVICE > LOCKFILE /var/lock > ONBATTERYDELAY 6 > BATTERYLEVEL 5 > MINUTES 3 > EL, > TIMEOUT 0 > ANNOY 300 > ANNOYDELAY 60 > NOLOGON disable > KILLDELAY 0 > NETSERVER on > NISIP 127.0.0.1 > NISPORT 3551 > EVENTFUL /var/log/apcupsd.events > EVENTSFILEMAX 10 > UPSCLASS standalone > UPSMODE disable > STATTIME 0 > STATFILE /var/log/apcupsd.status > LOGSTATS off > DATATIME 0
My config is: UPSCABLE usb UPSTYPE usb DEVICE LOCKFILE /var/lock BATTERYLEVEL 5 ONBATTERYDELAY 6 MINUTES 3 TIMEOUT 0 ANNOY 300 ANNOYDELAY 60 NOLOGON disable KILLDELAY 0 NETSERVER on NISIP 127.0.0.1 NISPORT 3551 EVENTSFILE /var/log/apcupsd.events EVENTSFILEMAX 10 UPSCLASS standalone UPSMODE disable STATTIME 0 STATFILE /var/log/apcupsd.status LOGSTATS off DATATIME 0 > # /sbin/apcupsd start /etc/init.d/apcupsd restart > #ps fax > 8540 ? Ssl 0:00 /sbin/apcupsd start > (as the list row) > > #ps -eaf > root 8540 1 0 14:22 ? 00:00:00 /sbin/apcupsd start > root 8634 8534 0 14:29 pts/2 00:00:00 ps -eaf > > $cat /proc/bus/usb/devices (indicates that it is seen and the correct driver > for kernel 2.6.15-1 loaded) > : Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 > D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 > P: Vendor=051d ProdID=0002 Rev= 0.06 > S: Manufacturer=American Power Conversion > S: Product=Back-UPS CS 500 FW:808.q7.I USB FW:q7 > S: SerialNumber=BB0613061656 > C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA > I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid > E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=100ms > > # apctest > 2006-09-05 14:34:05 apctest 3.12.3 (26 April 2006) debian > Checking configuration ... > Attached to driver: usb > sharenet.type = DISABLE > cable.type = USB_CABLE > You are using a USB cable type, so I'm entering USB test mode > mode.type = USB_UPS > Setting up the port ... > apctest FATAL ERROR in device.c at line 68 > Unable to create UPS lock file. > apctest FATAL ERROR in device.c at line 68 > Unable to create UPS lock file. > apctest error termination completed I don't think you can run apctest while apcupsd is running. You might have to kill apcupsd, delete the old lock file, and then start it again. -- Len Sorensen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

