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:
# The general form is:
# driver = <drivername>
# port = <portname>
# < any other directives here >
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):
crw------- 1 nut nut 4, 64 May 8 00:38 ttyS0
Now, when I'm trying to start nut, I get:
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:
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:
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:
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.