Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nut driver -- usb-based Belkin UPS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Bleaked
n00b
n00b


Joined: 02 Feb 2004
Posts: 12
Location: Noosphere

PostPosted: Fri Aug 27, 2004 3:25 am    Post subject: Nut driver -- usb-based Belkin UPS Reply with quote

Hello,

I am trying to get my Belkin F6H650-SER UPS to work with NUT. I am currently following the install guide on the NUT website. Looking at their supported hardware page, I see that my model is fully supported under their 'stable' branch.

This specific model of UPS uses a USB connection, instead of the more traditional serial route.

My /etc/nut/ups.conf file:
Code:
[zeus]
        driver = genericups
        upstype = 7
        port = /dev/usb/hiddev0
        desc = "Belkin"


As I said earlier, I am following this guide since I am using NUT 2.0.0, and am stuck on "Step 8".

When I run the command: /sbin/upsdrvctl start I get the following output:
Code:
Network UPS Tools - UPS driver controller 2.0.0
Network UPS Tools - Generic UPS driver 1.30 (2.0.0)
UPS type: CyberPower Power99
ioctl TIOCMSET: Invalid argument
Driver failed to start (exit status=1)


This tells me that there's something wrong with it connecting to my USB port. Am I wrong about this?

Running lsusb provides the following output:
Code:
Bus 003 Device 002: ID 050d:0950 Belkin Components
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


..And the only thing I have in "/dev" is: /dev/usb/hiddev0


So, can someone please tell me what I am doing wrong?
Back to top
View user's profile Send private message
getling
n00b
n00b


Joined: 23 Jan 2004
Posts: 14

PostPosted: Sun Mar 27, 2005 9:04 pm    Post subject: Reply with quote

What happens when you use the gentoo script?

Code:
/etc/init.d/upsdrv start
Back to top
View user's profile Send private message
novazur
Guru
Guru


Joined: 19 Mar 2005
Posts: 461
Location: Martinique

PostPosted: Tue Apr 19, 2005 6:53 am    Post subject: Reply with quote

I had something very strange today.
My computer didn't shutdown my ups.

I searched a lot why, and I saw that halt.sh gentoo script do :
Code:
ups_kill_power() {
        if [ -x /sbin/upsdrvctl ]
        then
                ewarn "Signalling ups driver(s) to kill the load!"
                /sbin/upsdrvctl shutdown
                ewarn "Halt system and wait for the UPS to kill our power"
                /sbin/halt -id
                while [ 1 ]; do sleep 60; done
        fi
}

and www-apps/nut put it in /usr/sbin/upsdrvctl, so, it can't be found by halt.
Is it a nut package default ?

Sorry for my english.
Back to top
View user's profile Send private message
markkuk
Guru
Guru


Joined: 29 Nov 2002
Posts: 446

PostPosted: Tue Apr 19, 2005 12:22 pm    Post subject: Re: Nut driver -- usb-based Belkin UPS Reply with quote

Bleaked wrote:

My /etc/nut/ups.conf file:
Code:
[zeus]
        driver = genericups
        upstype = 7
        port = /dev/usb/hiddev0
        desc = "Belkin"


You can't use the genericups driver on an USB interface. You need the hidups driver.
Back to top
View user's profile Send private message
Xaid
Guru
Guru


Joined: 30 Oct 2004
Posts: 474
Location: Edmonton / Alberta

PostPosted: Mon Aug 01, 2005 1:50 am    Post subject: Reply with quote

I'm wondering if you had any luck setting this up? I just got the Belkin Battery Backup with Surge Protection F6C550-AVR, which looks like its not really supported under NUT, but using the hidups driver I get the following:
Code:

battery.charge: 100
battery.runtime: 120
driver.name: hidups
driver.parameter.port: /dev/usb/hiddev0
driver.version: 2.0.0
ups.mfr: Unknown
ups.model: Unknown
ups.serial: Unknown
ups.status: OL


and this is my ups.conf:
Code:

[belkin]
        driver = hidups
        port = /dev/usb/hiddev0
        desc = "Belkin UPS"

It uses a USB interface as well, so using the "genericups" didn't work here, but this does n't really give me any meaningful information besides the OL/OB...
did anyone have any success with a Belkin USB UPS?

Edit: I just wanted to say that on their drivers CD, they have a driver for Linux...looks like a statically linked upsd with a few more binaries and scripts, I didn't use them cause I'm paranoid I guess :D but if someone wants to host them, let me know.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum