1 |
On Saturday 01 January 2011, Mick wrote: |
2 |
> Hi All, |
3 |
> |
4 |
> I have a iDowell UPS with a USB connection which I'm trying to |
5 |
> configure with Gentoo. This UPS works fine with the default settings |
6 |
> in WinXP and apparently with AppleMac boxen which it is marketed for: |
7 |
> |
8 |
> http://store.apple.com/uk/product/TR423ZM/A |
9 |
> |
10 |
> This is what it shows in dmesg: |
11 |
> |
12 |
> usb 3-2: New USB device found, idVendor=075d, idProduct=0300 |
13 |
> usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2 |
14 |
> usb 3-2: Product: iBox |
15 |
> usb 3-2: Manufacturer: iDowell |
16 |
> usb 3-2: SerialNumber: 00000001 |
17 |
> generic-usb 0003:075D:0300.0002: hidraw1: USB HID v1.10 Device |
18 |
> [iDowell iBox] on usb-0000:00:1d.1-2/input0 |
19 |
> |
20 |
> I've added this udev rule in |
21 |
> |
22 |
> # iDowell iBox USB |
23 |
> ATTR{idVendor}=="075d", ATTR{idProduct}=="0300", MODE="664", |
24 |
> GROUP="nut" |
25 |
> |
26 |
> and have defined this UPS and driver in /etc/nut/ups.conf: |
27 |
> |
28 |
> [iDowell] |
29 |
> driver = usbhid-ups |
30 |
> port = auto |
31 |
> vendorid = 075d |
32 |
> desc = "iBox by iDowell" |
33 |
> |
34 |
> However, the driver does not seem to recognise the device: |
35 |
> |
36 |
> # /etc/init.d/upsd restart |
37 |
> * Starting upsd ... |
38 |
> Network UPS Tools upsd 2.4.3 |
39 |
> listening on 127.0.0.1 port 3493 |
40 |
> Can't connect to UPS [iDowell] (usbhid-ups-iDowell): No such file or |
41 |
> directory allowfrom in upsd.users is no longer used |
42 |
> [ ok ] |
43 |
> |
44 |
> and |
45 |
> |
46 |
> # /etc/init.d/upsdrv start |
47 |
> * Starting UPS drivers ... |
48 |
> Network UPS Tools - UPS driver controller 2.4.3 |
49 |
> Network UPS Tools - Generic HID driver 0.34 (2.4.3) |
50 |
> USB communication driver 0.31 |
51 |
> No matching HID UPS found |
52 |
> Driver failed to start (exit status=1) |
53 |
> * Failed to start UPS drivers! |
54 |
> [ !! ] |
55 |
> |
56 |
> I have noticed that dmesg continuously fills up with messages like: |
57 |
> |
58 |
> usb 3-2: USB disconnect, address 116 |
59 |
> usb 3-2: new low speed USB device using uhci_hcd and address 117 |
60 |
> usb 3-2: New USB device found, idVendor=075d, idProduct=0300 |
61 |
> usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2 |
62 |
> usb 3-2: Product: iBox |
63 |
> usb 3-2: Manufacturer: iDowell |
64 |
> usb 3-2: SerialNumber: 00000001 |
65 |
> generic-usb 0003:075D:0300.005C: hidraw1: USB HID v1.10 Device |
66 |
> [iDowell iBox] on usb-0000:00:1d.1-2/input0 |
67 |
> usb 3-2: USB disconnect, address 117 |
68 |
> usb 3-2: new low speed USB device using uhci_hcd and address 118 |
69 |
> usb 3-2: New USB device found, idVendor=075d, idProduct=0300 |
70 |
> usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2 |
71 |
> usb 3-2: Product: iBox |
72 |
> usb 3-2: Manufacturer: iDowell |
73 |
> usb 3-2: SerialNumber: 00000001 |
74 |
> generic-usb 0003:075D:0300.005D: hidraw1: USB HID v1.10 Device |
75 |
> [iDowell iBox] on usb-0000:00:1d.1-2/input0 |
76 |
> |
77 |
> I do not know why it keeps disconnecting and reconnecting getting a |
78 |
> new address every time. |
79 |
> |
80 |
> Any ideas what else I could try? |
81 |
|
82 |
I think is an issue with the UDEV rules. |
83 |
At the end of /etc/udev/rules.d/10-local.rules I put this line for my |
84 |
liebert USB UPS: |
85 |
|
86 |
SUBSYSTEMS=="usb",ATTRS{idVendor}=="10af",ATTRS{idProduct}=="0004",SYMLINK+="liebert- |
87 |
ups" MODE="0660", GROUP="nut", OPTIONS="last_rule" |
88 |
|
89 |
and in |
90 |
/etc/nut/ups.conf |
91 |
|
92 |
user = nut |
93 |
[liebert] |
94 |
port = /dev/liebert-ups |
95 |
driver = liebert |
96 |
|
97 |
Make sure also about permissions: |
98 |
lrwxrwxrwx 1 root root 11 2 gen 10.34 /dev/liebert-ups -> usb/hiddev0 |
99 |
crw-rw---- 1 root nut 180, 96 2 gen 10.34 usb/hiddev0 |
100 |
|
101 |
HTH |
102 |
Francesco |
103 |
-- |
104 |
Linux Version 2.6.36-gentoo-r6, Compiled #1 SMP PREEMPT Tue Dec 28 |
105 |
20:43:07 CET 2010 |
106 |
Two 1GHz AMD Athlon 64 Processors, 4GB RAM, 4019.24 Bogomips Total |
107 |
aemaeth |