LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-28-2007, 10:44 AM   #1
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Rep: Reputation: 30
Unhappy nut and belkin F6C550-AVR


I just purchased a Belkin F6C550-AVR UPS with USB. I am trying to get it to work on my debian box running the stock 2.6.22-1-k7 kernel

I first tried to install the Belkin software that it came with and that didn't work. The software didn't pick up the UPS and it didn't provide any information why. Deciding against using the proprietary code, I un-installed the Belkin software in installed the nut 2.2.0-1 package from debian testing/unstable.

According to the documentation at:
http://www.networkupstools.org/compat/stable.html

The "Office Series F6C550-AVR USB" is supported by the usbhid-ups driver. So I setup my /etc/nut/ups.conf to use it:
Code:
[belkin]
driver = usbhid-ups
port = auto
When I ran "sudo /lib/nut/usbhid-ups -DDDDDDDDDDDDDD -u nut -a belkin"

I got the following output:
Code:
debug level is '14'
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (001/005)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (045E/0008) (001/004)
- VendorID: 045e
- ProductID: 0008
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (001/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
No appropriate HID device found
No matching HID UPS found
Now the 2nd one should work. This is the USB device that gets recognized when I plug-in the UPS:

- VendorID: 0665
- ProductID: 5161

However as you see, it says it does not match.

The output from /proc/bus/usb/devices:
Code:
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0665 ProdID=5161 Rev= 0.02
S:  Manufacturer=Cypress Semiconductor
S:  Product=USB to Serial
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
Last night I tried the nut-hal-drivers package from debian, but I don't think it was working, and furthermore it doesn't provide the ups monitor or other programs and I am not sure to to configure it.

Any ideas?
 
Old 08-28-2007, 02:22 PM   #2
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Original Poster
Rep: Reputation: 30
Got it to work, but needed some tweaking.

Steps:
* install nut-dev and its dependencies
* apt-get source nut
* modify the debian/rules file and add:
Code:
--with-udev-dir=/etc/udev
to the list of configuration options
* Install the new package
* Configure the UPS in /etc/nut/ups.conf:
Code:
[belkin]
driver = megatec_usb
port = auto
Yes, the http://eu1.networkupstools.org/compat/stable.html page is inaccurate, you need the megatec_usb driver for this UPS, not the usbhid-ups
* restart udev and hal
* unplug and plug-in the USB

Now it is working
 
Old 11-24-2007, 06:03 PM   #3
Lord C
Member
 
Registered: Mar 2004
Location: London, UK
Distribution: Ubuntu
Posts: 69

Rep: Reputation: 15
I tried the above, but I get

Quote:
Network UPS Tools - UPS driver controller 2.0.5
Network UPS Tools - Megatec protocol driver 1.5 (2.0.5)
Carlos Rodrigues (c) 2003-2006


Unable to open auto: No such file or directory
I wouldn't know what to put instead of auto, for e.g. /dev/usb
 
Old 11-24-2007, 09:00 PM   #4
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Original Poster
Rep: Reputation: 30
I am using this:

[belkin]
driver = megatec_usb
port = auto
lowbatt = 30
mfr = Belkin
model = F6C550-AVR

Make sure you have nut 2.2 or higher
 
Old 11-25-2007, 08:24 AM   #5
Lord C
Member
 
Registered: Mar 2004
Location: London, UK
Distribution: Ubuntu
Posts: 69

Rep: Reputation: 15
Lol I was using an old nut source, how silly.

I am much farther now!

Quote:
$ sudo /usr/local/ups/bin/upsdrvctl -u root start
Network UPS Tools - UPS driver controller 2.2.0
Network UPS Tools 2.2.0 - Megatec protocol driver 1.5.4 [megatec_usb]
Carlos Rodrigues (c) 2003-2007

Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]

Megatec protocol UPS detected.
Now then, seems to be working. I have checked in gnome's power management, nothing there. How do I get this baby operational?

Wow this really needs more integration. Such a horrible setup.
I'm going to try configuring --with-hal because I heard this is how I get Gnome integration via the Power Management applet.

[Edit]
Tried to follow this; http://www.crn.com/white-box/199000818?pgno=1
Why the hell is setting up UPS so hard?
[/Edit]

Last edited by Lord C; 11-25-2007 at 08:54 AM.
 
  


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
A nut mail! Hitboxx General 10 08-10-2007 01:58 PM
LXer: Atmel offer $500 AVR dev kit with Linux and GNU debugger LXer Syndicated Linux News 0 06-27-2006 04:54 AM
Problem getting my Debian box to use nut to talk to my Belkin UPS AlucardZero Linux - Software 0 05-21-2006 06:00 PM
NUT and CyberPower UPSs cellist Linux - Hardware 3 07-05-2005 02:55 PM
going nut with linux tv sathia Slackware 3 03-12-2005 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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