[Nut-upsuser] Belkin support?

Gene Heskett gene.heskett at gmail.com
Mon Jun 1 02:49:42 UTC 2009


On Sunday 31 May 2009, Charles Lepple wrote:
>On May 31, 2009, at 10:17 PM, Gene Heskett wrote:
>> On Sunday 31 May 2009, Charles Lepple wrote:
>>> On May 31, 2009, at 2:26 PM, Gene Heskett wrote:
>>>> I have the newest nut (nut-2.2.2-4.fc10.i386) from fedora 10 repos)
>>>> installed
>>>> and this ups (from lsusb -vv):
>>>>
>>>> Bus 001 Device 006: ID 050d:0751 Belkin Components
>>>
>>> Hi Gene,
>>>
>>> This device should be supported by the usbhid-ups driver.
>>
>> That seems not to be part of the 2.6.30-rcX kernels.
>> The current .config has:
>>
>> CONFIG_USB_HID=y
>> CONFIG_USB_HIDDEV=y
>> CONFIG_HID_BELKIN=y
>
>I should have been more specific - usbhid-ups is a user-mode driver in
>NUT. It uses libusb to kick the kernel's USB HID driver off of the
>device, and it uses /dev/bus/usb (I forget the kernel driver name) to
>speak the HID protocol.

Does this help?
[root at coyote ups]# ls -laR /dev/bus/usb/
/dev/bus/usb/:
total 0
drwxr-xr-x 4 root root  80 2009-05-30 21:11 .
drwxr-xr-x 3 root root  60 2009-05-30 21:11 ..
drwxr-xr-x 2 root root 220 2009-05-30 21:11 001
drwxr-xr-x 2 root root 160 2009-05-30 21:11 002

/dev/bus/usb/001:
total 0
drwxr-xr-x 2 root root     220 2009-05-30 21:11 .
drwxr-xr-x 4 root root      80 2009-05-30 21:11 ..
crw-r--r-- 1 root root 189,  0 2009-05-31 13:57 001
crw-r--r-- 1 root root 189,  4 2009-05-31 13:57 005
crw-rw-r-- 1 root uucp 189,  5 2009-05-31 13:57 006
crw-r--r-- 1 root root 189,  6 2009-05-31 13:57 007
crw-r--r-- 1 root root 189,  7 2009-05-31 13:57 008
crw-r--r-- 1 root root 189,  8 2009-05-31 13:57 009
crw-r--r-- 1 root root 189,  9 2009-05-31 13:57 010
crw-r--r-- 1 root root 189, 10 2009-05-31 13:57 011
crw-r--r-- 1 root root 189, 11 2009-05-31 13:57 012

/dev/bus/usb/002:
total 0
drwxr-xr-x 2 root root      160 2009-05-30 21:11 .
drwxr-xr-x 4 root root       80 2009-05-30 21:11 ..
crw-r--r-- 1 root root 189, 128 2009-05-31 13:57 001
crw-r--r-- 1 root root 189, 129 2009-05-31 13:57 002
crw-r--r-- 1 root root 189, 130 2009-05-31 13:57 003
crw-r--r-- 1 root root 189, 131 2009-05-31 13:57 004
crw-r--r-- 1 root root 189, 132 2009-05-31 13:57 005
crw-r--r-- 1 root root 189, 133 2009-05-31 13:57 006

I would assume (there is that word again) the 189:10 would be the one?

>> I can probably dig out anything else that might be helpful.
>>
>>> Usually you
>>> would look this up in the data/drivers.list file, but it doesn't look
>>> like the lsusb output is terribly helpful for that (Belkin seems to
>>> change the underlying hardware while keeping the model name the
>>> same).
>>> Which model do you have?

The biggest 1500va, about 2 years old, & probably about due for its 2nd 
battery pack.  But it won't get one, I'll put an apc in there the next time & 
Belkin can go wet that rope from the bottom up with a small stream of warm 
yellow liquid.

>>> The NUT "README" file, while not specific to Fedora, should have the
>>> rest of the info needed to set this up. (Perhaps someone with Fedora
>>> 10 experience can suggest whether the "classic" driver or the HAL
>>> driver would be better.) If I had to guess, I'd say the README is
>>> in /
>>> usr/share/doc/nut.
>>>
>>> - Charles
>>
>> It might help, if it was there:
>> [root at coyote ~]# locate 'nut/README'
>> [root at coyote ~]#
>> [root at coyote ~]# cd `locate 'nut/'`
>> [root at coyote cur]# ls
>> 1243795177.4479.gANVC:2,RS  1243799859.4479.0TdwL
>> 1243813905.4479.2izhm
>> [root at coyote cur]# pwd
>> /root/Mail/nut/cur
>> [root at coyote cur]#
>>
>> I don't believe it exists in the rpms.  Next?
>
>Sounds to me like a bug in the package.
>
>We're trying to overhaul the documentation, so the website is a little
>behind. But this should apply:
>
>http://www.networkupstools.org/doc/2.2.0/README.html

I'll take a look shortly.  Thanks.

>(please keep the list CC'd via reply-all - thanks!)

Oh fudge.  kmail WILL do that automaticly, replying to the list only, if you 
do not set a replyto: header.  Your setting one means I have to reply all, 
which when I forget and do it with most mailing lists, means both the list and 
the OP get a copy & I get dinged about it.  Life is simpler without the 
replyto: header.

Thanks Charles.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The NRA is offering FREE Associate memberships to anyone who wants them.
<https://www.nrahq.org/nrabonus/accept-membership.asp>

It is easier to make a saint out of a libertine than out of a prig.
		-- George Santayana




More information about the Nut-upsuser mailing list