Re: apcupsd
On Mon, Sep 04, 2006 at 07:02:51AM +0200, Francesco Pietra wrote:
> 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).
So what is it? An APC UPS, or some kind of Chinese brand?
> 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
That's only the USB host controller.
> 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
I'm not sure what kind of device a USB UPS should use.
> As to the confuguration, my DOUBT is whether everything related to NET should
> be commented out. Below the configuration:
I doubt apcupsd drives anything other than APC UPSes. APC UPSes are
nice in that they are "smart": they have a interface that tells more
than "the power is down".
If you have a non-APC UPS, use nut instead.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
Reply to:
- Follow-Ups:
- Re: apcupsd
- From: Jo Shields <jo.shields@comlab.ox.ac.uk>
- Re: apcupsd
- From: Francesco Pietra <frapietra@alice.it>
- References:
- apcupsd
- From: Francesco Pietra <frapietra@alice.it>