[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apcupsd



While in a few minutes I got working a Chinese serial-connection UPS, I am 
experiencing diffulties with APC via USB as STANDALONE (kernel 2.6.15-1).

With ref to Sibbald manual, for APC CS 500 as an example (while I have to 
configure also RS 1500), and with my aim of simply having done at 
poweroff/battery low:

#Ctrl C (to kill mpqc231 computation; there is no X system)
# shutdown -h now (to close Debian)

Device and driver are detected:
$cat /proc/bus/usb/devices
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.15-1-k7 ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms


Correct driver is loaded
$ ls -l /sys/bus/usb/drivers/
total 0
drwxr-xr-x 2 root root 0 Sep  4 05:48 hiddev
drwxr-xr-x 2 root root 0 Sep  4 05:48 hub
drwxr-xr-x 2 root root 0 Sep  4 05:48 usb
drwxr-xr-x 2 root root 0 Sep  4 05:48 usbfs
drwxr-xr-x 2 root root 0 Sep  4 05:48 usbhid
drwxr-xr-x 2 root root 0 Sep  4 05:48 usblp

Device nodes are shown as follows (I am in DOUBT if it is correct for the 
expected hidddevN):
$ /dev/usb
hidddev0

As to the confuguration, my DOUBT is whether everything related to NET should 
be commented out. Below the 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



I invoked apcusd with:
#/sbin/apcupsd

whereby it is seen:
$ps fax
/sbin/apcupsd

while the expeted "matou apcupsd" is not seen on commanding:
#tail /var/log/messages

and  file
/etc/apcupsd/apcupsd.events
does not exist

I would appreciate any help to get the UPS working.

Cheers
francesco pietra









Reply to: