Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: UPS driver error
Date: Mon, 03 Jan 2011 15:18:20
Message-Id: 201101031516.48383.michaelkintzios@gmail.com
In Reply to: [gentoo-user] Re: UPS driver error by Francesco Talamona
1 On Sunday 02 January 2011 09:42:29 Francesco Talamona wrote:
2
3 > I think is an issue with the UDEV rules.
4 > At the end of /etc/udev/rules.d/10-local.rules I put this line for my
5 > liebert USB UPS:
6 >
7 > SUBSYSTEMS=="usb",ATTRS{idVendor}=="10af",ATTRS{idProduct}=="0004",SYMLINK+
8 > ="liebert- ups" MODE="0660", GROUP="nut", OPTIONS="last_rule"
9 >
10 > and in
11 > /etc/nut/ups.conf
12 >
13 > user = nut
14 > [liebert]
15 > port = /dev/liebert-ups
16 > driver = liebert
17 >
18 > Make sure also about permissions:
19 > lrwxrwxrwx 1 root root 11 2 gen 10.34 /dev/liebert-ups -> usb/hiddev0
20 > crw-rw---- 1 root nut 180, 96 2 gen 10.34 usb/hiddev0
21
22 Thanks Francesco, I have now added the symlink to see if it makes a
23 difference, however, as I was poking around I noticed that there is *no*
24 hiddev* device at all ... is this an indication that something is amiss with
25 my kernel?
26
27 # cat /usr/src/linux/.config | grep -i hid
28 CONFIG_HID_SUPPORT=y
29 CONFIG_HID=y
30 CONFIG_HIDRAW=y
31 CONFIG_USB_HID=y
32 # CONFIG_HID_PID is not set
33 CONFIG_USB_HIDDEV=y
34 # Special HID drivers
35 # CONFIG_HID_3M_PCT is not set
36 CONFIG_HID_A4TECH=y
37 # CONFIG_HID_ACRUX_FF is not set
38 CONFIG_HID_APPLE=y
39 CONFIG_HID_BELKIN=y
40 # CONFIG_HID_CANDO is not set
41 CONFIG_HID_CHERRY=y
42 CONFIG_HID_CHICONY=y
43 # CONFIG_HID_PRODIKEYS is not set
44 CONFIG_HID_CYPRESS=y
45 # CONFIG_HID_DRAGONRISE is not set
46 # CONFIG_HID_EGALAX is not set
47 CONFIG_HID_EZKEY=y
48 CONFIG_HID_KYE=y
49 # CONFIG_HID_GYRATION is not set
50 # CONFIG_HID_TWINHAN is not set
51 CONFIG_HID_KENSINGTON=y
52 CONFIG_HID_LOGITECH=y
53 CONFIG_HID_MICROSOFT=y
54 # CONFIG_HID_MOSART is not set
55 CONFIG_HID_MONTEREY=y
56 # CONFIG_HID_NTRIG is not set
57 # CONFIG_HID_ORTEK is not set
58 # CONFIG_HID_PANTHERLORD is not set
59 # CONFIG_HID_PETALYNX is not set
60 # CONFIG_HID_PICOLCD is not set
61 # CONFIG_HID_QUANTA is not set
62 # CONFIG_HID_ROCCAT is not set
63 # CONFIG_HID_ROCCAT_KONE is not set
64 # CONFIG_HID_SAMSUNG is not set
65 # CONFIG_HID_SONY is not set
66 # CONFIG_HID_STANTUM is not set
67 # CONFIG_HID_SUNPLUS is not set
68 # CONFIG_HID_GREENASIA is not set
69 # CONFIG_HID_SMARTJOYPLUS is not set
70 # CONFIG_HID_TOPSEED is not set
71 # CONFIG_HID_THRUSTMASTER is not set
72 # CONFIG_HID_ZEROPLUS is not set
73 # CONFIG_HID_ZYDACRON is not set
74
75 Anyway, with the modified rule in /etc/udev/rules.d/70-nut-usbups.rules:
76
77 ATTR{idVendor}=="075d", ATTR{idProduct}=="0300", SYMLINK+="iDowell",
78 MODE="664", GROUP="nut"
79
80 I still get the same errors.
81
82 The symlink itself is not associated with hiddev*, but as follows:
83
84 ls -la /dev/iDowell
85 lrwxrwxrwx 1 root root 15 Jan 3 15:12 /dev/iDowell -> bus/usb/003/056
86
87 Of course, since the device seems to be disconnected and reconnected
88 continuously, the link similarly changes the device file that it points to. A
89 few seconds later I get:
90
91 ls -la /dev/iDowell
92 ls: cannot access /dev/iDowell: No such file or directory
93
94 and then soon after:
95
96 ls -la /dev/iDowell
97 lrwxrwxrwx 1 root root 15 Jan 3 15:14 /dev/iDowell -> bus/usb/003/063
98
99 Any ideas what I should be looking for, or what driver might work with this
100 baby?
101 --
102 Regards,
103 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature