[Nut-upsuser] Old thread on belkin

Gene Heskett gene.heskett at gmail.com
Sun Dec 27 14:49:50 UTC 2009


Greetings all;

Back to a thread I started back in May of 2008 I think.  I never did get this 
belkin and nut to talking, so I thought I'd make another run at it.

Trying to run the driver as the user gene, I'm getting this:
---------------------------
[root at coyote ups]# su gene -c "/sbin/belkin -D -a myups"
Network UPS Tools - Belkin Smart protocol driver 0.21 (2.2.2)
debug level is '1'

Unable to open /dev/hidraw0: Permission denied

  Current user id: gene (501)
Serial port owner: root (0)
Serial port group: root (0)
     Mode of port: 0660

Things to try:

 - Use another port (with the right permissions)

 - Fix the port owner/group or permissions on this port

 - Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
   See upsdrvctl(8) and ups.conf(5).

Fatal error: unusable configuration
------------------------
And, /dev/hidraw0 (and all associated) is owned by root:root despite 
62_*.rules for udev stating it should be uucp.
------------------------
[root at coyote ups]# ls -l /dev/hid*
crw-rw---- 1 root root 180, 0 2009-12-27 08:52 /dev/hiddev0
crw-rw---- 1 root root 180, 1 2009-12-26 11:17 /dev/hiddev1
crw-rw---- 1 root root 253, 0 2009-12-27 08:52 /dev/hidraw0
crw-rw---- 1 root root 253, 1 2009-12-26 11:17 /dev/hidraw1
crw-rw---- 1 root root 253, 2 2009-12-26 11:17 /dev/hidraw2
crw-rw---- 1 root root 253, 3 2009-12-26 11:17 /dev/hidraw3
crw-rw---- 1 root root 253, 4 2009-12-26 11:17 /dev/hidraw4
---------------------------------

/dev/hidraw0 was _not_ created during boot time discovery, and was only 
created when I momentarily unplugged the data cable, which when I plugged it 
back in, which returned this in the messages log:
-----------------------------
Dec 27 08:52:39 coyote kernel: [77690.153405] usb 1-10.1: new low speed USB 
device using ehci_hcd and address 16
Dec 27 08:52:39 coyote kernel: [77690.368022] usb 1-10.1: New USB device 
found, idVendor=050d, idProduct=0751
Dec 27 08:52:39 coyote kernel: [77690.368027] usb 1-10.1: New USB device 
strings: Mfr=4, Product=20, SerialNumber=0
Dec 27 08:52:39 coyote kernel: [77690.368030] usb 1-10.1: Product: Belkin UPS
Dec 27 08:52:39 coyote kernel: [77690.368031] usb 1-10.1: Manufacturer: 
Belkin
Dec 27 08:52:39 coyote kernel: [77690.368117] usb 1-10.1: configuration #1 
chosen from 1 choice
Dec 27 08:52:40 coyote kernel: [77691.098585] generic-usb 
0003:050D:0751.0006: hiddev0,hidraw0: USB HID v1.11 Device [Belkin  Belkin 
UPS] on usb-0000:00:02.1-10.1/input0
------------------------------

The user & passwd in the .conf files is me, not root.

Where do I go next folks?  It won't even get that far when launched as root.

-- 
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)

I'm DESPONDENT ... I hope there's something DEEP-FRIED under this
miniature DOMED STADIUM ...



More information about the Nut-upsuser mailing list