LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   installing a UPS device (https://www.linuxquestions.org/questions/slackware-14/installing-a-ups-device-354726/)

Furlinastis 08-18-2005 08:05 PM

installing a UPS device
 
I have an APC RX800 UPS, I've got the monitoring software(powerchute plus) but I'm not sure what USB port I should have it point to.

First off, the software wants a dedicated Serial Port not a USB. It gives me a choice of /dev/tty** or other. I'm hoping I can point it to my USB port but am not quite sure how.

The USB cable is plugged into bus 001 port 002. But I don't know how to be sure what I should point to in /dev .. I'm not even sure it's a block device.

any ideas?

Is there already a UPS monitoring tool in slackware I don't know about? I suppose the easy way would be to buy one of those USB to serial port convertors .. but I'd like try the USB first.

michaelk 08-18-2005 08:57 PM

I could not find anything definite where the Powerchute linux version supports USB.

I use the apcupsd daemon and it works fine with USB.
http://www2.apcupsd.com/

The UPS is configured for /dev/usb/hiddev0.

Furlinastis 08-19-2005 12:56 AM

OK .. thanks:D ... but I still can't seem to figure out which device is the UPS
the contents of /dev/usb are:

crw-rw---- 1 root root 180, 32 2001-03-25 16:04 ez0 -15
crw-rw---- 1 root lp 180, 0 2001-03-25 16:04 lp0 - 15
crw-rw---- 1 root root 180, 16 2001-03-25 16:04 mouse0 - 15
crw-rw---- 1 root root 180, 48 2001-03-25 16:04 scanner0 - 15
crw-rw---- 1 root root 180, 64 2001-03-25 16:04 rio500

but I only have four usb ports, nor do I have a scanner and I've never connected my rio to this computer cause there's no software for it for linux :confused: (obviously there is no /dev/usb/hiddev0)

WilliamS 08-19-2005 12:08 PM

I'm also using an APC ups on slack 10.1 with usb.

If you :study: for apcupsd you'll see the following:

"APCUPSD CONFIGURATION

Apcupsd must be built with USB support, which is accomplished via the --enable-usb switch to configure.

Your apcupsd.conf file needs the following hardware-related settings:


UPSCABLE usb
UPSTYPE usb
DEVICE

The DEVICE setting is blank on purpose; apcupsd will automatically locate your UPS."

So no need to be concerned about which port it's on.:)

The only glitch in mine is that I don't see wall messages - anyone know how to make them show?

Furlinastis 08-21-2005 07:11 PM

OK, I installed with the --enable-usb switch and edited the apcupsd.conf file

but it gives me this in apcupsd.events:

Sun Aug 21 19:37:17 EDT 2005 apcupsd FATAL ERROR in linux-usb.c at line 597
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see <http://www.apcupsd.com/support.html>.
Sun Aug 21 19:37:17 EDT 2005 apcupsd error shutdown completed

when I try to run apcupsd, it closes 5 seconds after I start it. and leaves the previous error message:confused:

and powerchute acts like there isn't any UPS devices attached .. and I can't open its daemon either :confused:

michaelk 08-21-2005 08:31 PM

Does /dev/usb/hiddev0 exist?
Are the USB hid and input modules loading?
Does the OS recognizce the UPS connected via the dmesg command?

Furlinastis 08-22-2005 12:21 AM

oh ... apparently I didn't compile hiddev in my kernel ... the thought occured to me looking at dmesg. i guess i didn't think it was important:o


All times are GMT -5. The time now is 10:04 AM.