[Nut-upsdev] NUT-2.0.5: newhidups on RedHat ES4

Patrick Agrain patrick.agrain at alcatel-lucent.fr
Tue Mar 27 13:29:05 CET 2007


Hello everybody,

After succeeded in "tuning" nut-2.0.0's hidups and 2.0.3's newhidups on 
customized Linux kernels, we are now facing a new challenge : trying to 
install nut-2.0.5 on a RedHat ES4 which is based on a 2.6.9 kernel.

I picked up the 2.0.5 source package and follow the INSTALL doc until step 
6. So far so good.
RH ES4 is managed by udev, therefore I presume we don't have to care about 
which /dev the UPS will be linked to.
But, instead, we have to implement the udev rules.

Am I right ?

Using the furnished udev rules in scripts/hotplug-ng ( and rename it to 
52-nut.rules in /etc/udev/rules.d ) result in syntax errors in the syslog. 
These errors come from :
a) the "==". In this distro, the default 50-udev.rules file is filled only 
with "=". Replacing "==" by "=" removes the errors in the syslog.
b) first and last uncommented  lines have to be removed also.
For information, in this distro, udev is udev-039-10.12.EL4 and libusb is 
0.1.8-3

Now, 52-nut.rules looks like this :

# udev rules for the NUT USB drivers
# MGE UPS SYSTEMS - usbhid-ups
SYSFS{idVendor}="0463", SYSFS{idProduct}="ffff", MODE="664", GROUP="nobody"
SYSFS{idVendor}="0463", SYSFS{idProduct}="0001", MODE="664", GROUP="nobody"

Which is the file I have to look at to check that the rule was granted ?
Is it still /proc/bus/usb/BBB/DDD ?

Step 7 gives an ups.conf like :
[mgeups]
	driver = newhidups
	port = auto

And my "big" concern is the start of the driver :
Command "/usr/local/ups/bin newhidups -u root -a mgeups -DDDDD" result in an :
"Unable to get Report Descriptor (-32) : Broken Pipe error, though 
identification data from UPS ( 0463/ffff, MGE UPS SYSTEMS Extreme ) and 
reportlen ( 1536 ) were correctly discovered. The last with both methods.

What do you think ? Which point(s) should I carefully check ?

Thanks in advance.
Best regards,

Patrick Agrain




More information about the Nut-upsdev mailing list