LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-18-2005, 08:05 PM   #1
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Rep: Reputation: 40
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.
 
Old 08-18-2005, 08:57 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
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.
 
Old 08-19-2005, 12:56 AM   #3
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Original Poster
Rep: Reputation: 40
OK .. thanks ... 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 (obviously there is no /dev/usb/hiddev0)
 
Old 08-19-2005, 12:08 PM   #4
WilliamS
Member
 
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 14.1
Posts: 380

Rep: Reputation: 31
I'm also using an APC ups on slack 10.1 with usb.

If you 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?
 
Old 08-21-2005, 07:11 PM   #5
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Original Poster
Rep: Reputation: 40
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

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

Last edited by Furlinastis; 08-21-2005 at 07:13 PM.
 
Old 08-21-2005, 08:31 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Does /dev/usb/hiddev0 exist?
Are the USB hid and input modules loading?
Does the OS recognizce the UPS connected via the dmesg command?
 
Old 08-22-2005, 12:21 AM   #7
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Original Poster
Rep: Reputation: 40
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing a wireless device... GooPunch Linux - Newbie 5 01-13-2005 02:11 AM
APC UPC - cannot find UPS device Parksy Linux - Hardware 13 11-27-2004 01:14 PM
installing device-mapper aaronj Linux - Software 1 10-02-2004 02:00 AM
USB UPS - What's the Device? RWild Linux - Hardware 2 03-22-2003 10:21 AM
System lock-ups after installing flash plugin JaseP Linux - Software 1 03-15-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration