LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2006, 06:00 PM   #1
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Problem getting my Debian box to use nut to talk to my Belkin UPS


Edit: Nevermind, using the official software from Belkin made things work.


I'm something of a newbie to Linux, so if you need more information, please ask.

I can't seem to get my computer to recognize the UPS it's connected to.

I'm on Debian Sarge with the 2.4 kernel, and the UPS is a Belkin F6C900-UNV. X is not installed since this is a really old machine (133Mhz 6x86 Cyprus, 64MB RAM, 6 GB HDD). I just apt-get install nut'd.

I have in /etc/nut/ups.conf:
Code:
# The general form is:
#
# [upsname]
#       driver = <drivername>
#         port = <portname>
#       < any other directives here >
[belkin]
driver = belkinunv
port = /dev/ttyS0
I'm not sure anymore if it's on ttyS0, since the box has two serial ports, but one is labeled for a mouse. In any case, neither ttyS0 nor ttyS1 make things work.
I'm sure that the best driver to tell nut to use is "belkinunv". Nut's docs say belkinunv is for "Belkin Universal UPS (F6C800-UNV, others)". Plus, I get more errors when I try a different driver.
I haven't changed anything in the other config files yet.

As instructed, these are the permissions for /dev/ttyS0 (and ttyS1):
Code:
crw-------   1 nut  nut       4,  64 May  8 00:38 ttyS0
Now, when I'm trying to start nut, I get:
Code:
alucard@organa:/etc/nut$ sudo /etc/init.d/nut start
Starting Network UPS Tools: (upsdrvctl failed) upsd.
It usually takes a while for the (upsdrvctl failed) to appear.

After I (try to) start nut, when I try to get information about the UPS, I get:
Code:
alucard@organa:/etc/nut$ sudo upsc belkin@localhost
Error: Data stale
I did some Googling, and found a way to get a slightly better error messages.
First, starting the upsd:
Code:
alucard@organa:/etc/nut$ sudo upsd
Network UPS Tools upsd 2.0.1
/etc/nut/upsd.conf is world readable
Can't connect to UPS [belkin] (belkinunv-ttyS0): No such file or directory
/etc/nut/upsd.users is world readable
Synchronizing........ giving up
Second, starting the driver:
Code:
alucard@organa:/etc/nut$ sudo /lib/nut/belkinunv -a belkin
Network UPS Tools - Belkin 'Universal UPS' driver 0.06 (2.0.1)

No response from UPS
No response from UPS
...
Cannot read from UPS
I know it's not the cable, since I just switched cables with the one my desktop uses to talk to its UPS, and it works.

Any clues?

Last edited by AlucardZero; 06-14-2006 at 08:41 PM.
 
  


Reply



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
Questions about nut..finding ups dev address creedog Linux - Software 7 03-01-2006 08:39 AM
Belkin card claims to associate, doesn't talk to network The MCP Linux - Networking 4 02-19-2006 04:00 PM
Ups & Nut Denis Basta Linux - Software 1 09-27-2005 07:09 PM
2 box network can't talk rank_n00b Linux - Newbie 2 07-25-2004 10:57 PM
using Belkin UPS with usb computx Linux - Hardware 2 12-07-2003 07:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 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