Thanks for suggestions
I've attached (con) listings of 'lsusb' & 'ls-lR /proc/bus/usb'
everything looks OK with 'root:root' & '-rw-rw-rw-'
(ups is 0925:1234)
when
'sudo /lib/nut/richcomm_usb -D -a vix2120 -u root' was run
I got
>Network UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.6.2)
>Warning: This is an experimental driver.
>Some features may not function correctly.
> 0.000000 debug level is '1'
> 0.000315 Can't chdir to /var/run/nut: No such file or directory
if I manually created '/var/run/nut'
and reran - it ran (as per attached) until ^C
I then ran 'sudo upsdrvctl -D -u root start' and it ran :
>sudo upsdrvctl -u root start
>Network UPS Tools - UPS driver controller 2.6.1
>Network UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.6.2)
>Warning: This is an experimental driver.
>Some features may not function correctly.
It also responded if I disconnected the usb cable.
so it seems that permissions are the cause - but where?
(/etc/nut has owner:group nut:root)
I don't think it is relevent but I had originally installed 2.6.1 from
'Debian' (without richcomm_usb) and then built 2.6.2 as per Arnaud's
instructions - just copying ...nut/drivers/richcomm_usb to /lib/nut
(not nut/drivers/.libs/richcomm_usb to /lib/nut - drivers/.libs was
empty) I didn't overwrite anything else.
Hope this helps
As I said - I don't have a feel for what's involved yet - still reading
the manual.
Thanks
Iain
On 17/11/11 00:40, Charles Lepple wrote:
On Nov 16, 2011, at 3:34 PM, Iain Simpson wrote:
Here yet again
got the driver built but when I ran got the following errors :
$19:54:10 ~/nut/nut-2.6.2/drivers>sudo ./upsdrvctl -D start
[sudo] password for iain:
Network UPS Tools - UPS driver controller 2.6.2
0.000000 Starting UPS: vix2120
Network UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.6.2)
Warning: This is an experimental driver.
Some features may not function correctly.
USB device [0925:1234] matches, but driver callback failed: could not detach
kernel driver from interface 0: Operation not permitted
0.091309 Driver failed to start (exit status=1)
What does 'ls -lR /proc/bus/usb' say?
Also, what if you try 'sudo /lib/nut/richcomm_usb -D -a vix2120 -u root'?
Sorry I don't really understand what's happening.
'Operation not permitted' means there's probably a permissions error, in this
case on the node in /proc/bus/usb corresponding to your UPS.
[sudo /lib/nut/richcomm_usb -D -a vix2120 -u root]
Network UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.6.2)
Warning: This is an experimental driver.
Some features may not function correctly.
[lsusb]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard
reader
Bus 001 Device 004: ID 1941:8021 Dream Link WH1080 Weather Station / USB
Missile Launcher
Bus 001 Device 005: ID 0925:1234 Lakeview Research
Bus 002 Device 003: ID 045e:00b4 Microsoft Corp.
Bus 002 Device 004: ID 04d9:2518 Holtek Semiconductor, Inc.
Bus 004 Device 002: ID 04a9:220e Canon, Inc. CanoScan N1240U/LiDE 30
[ls -lR /proc/bus/usb]
/proc/bus/usb:
total 0
dr-xr-xr-x 2 root root 0 Nov 17 13:53 001
dr-xr-xr-x 2 root root 0 Nov 17 13:53 002
dr-xr-xr-x 2 root root 0 Nov 17 13:53 003
dr-xr-xr-x 2 root root 0 Nov 17 13:53 004
dr-xr-xr-x 2 root root 0 Nov 17 13:53 005
-r--r--r-- 1 root root 0 Nov 17 13:53 devices
/proc/bus/usb/001:
total 0
-rw-rw-rw- 1 root root 43 Nov 17 13:53 001
-rw-rw-rw- 1 root root 43 Nov 17 13:53 002
-rw-rw-rw- 1 root root 50 Nov 17 13:53 003
-rw-rw-rw- 1 root root 52 Nov 17 13:53 004
-rw-rw-rw- 1 root root 52 Nov 17 13:53 005
/proc/bus/usb/002:
total 0
-rw-rw-rw- 1 root root 43 Nov 17 13:53 001
-rw-rw-rw- 1 root root 43 Nov 17 13:53 002
-rw-rw-rw- 1 root root 77 Nov 17 13:53 003
-rw-rw-rw- 1 root root 52 Nov 17 13:53 004
/proc/bus/usb/003:
total 0
-rw-rw-rw- 1 root root 43 Nov 17 13:53 001
/proc/bus/usb/004:
total 0
-rw-rw-rw- 1 root root 43 Nov 17 13:53 001
-rw-rw-rw- 1 root root 57 Nov 17 13:53 002
/proc/bus/usb/005:
total 0
-rw-rw-rw- 1 root root 43 Nov 17 13:53 001
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser