[Nut-upsuser] Re: MGE Protection Center and Suse

arnaud.quette at mgeups.com arnaud.quette at mgeups.com
Thu Jul 21 08:51:22 UTC 2005


Hi Johannes,

> ok here is my output:
>
> Am 20.07.2005 um 16:09 schrieb arnaud.quette at mgeups.com:
> > you should have add the "-DDDDD" to see newhidups' internal trace...
> >
>
> backup:~ # /usr/lib/ups/driver/newhidups -DDDDD auto
> Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2)
> ...
> Unable to get HID descriptor (error sending control message: Operation
> not permitted)
> ...
> > thanks to test this again (with "-u nobody") with the above
> > instructions,
>
> backup:~ # /usr/lib/ups/driver/newhidups -DDDDD auto -u nobody
> Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2)
> ...
> Unable to get HID descriptor (error sending control message: Operation
> not permitted)
> ...
> > and to do an "ls -l" on the device (ie below: "/proc/bus/usb/001/002")
>
> backup:~ # ls -l /proc/bus/usb/001/002
> -rw-r--r--  1 root root 52 Jul  7 16:48 /proc/bus/usb/001/002

ok, this clearly validates that we are facing an hotplug
problem! The right privileges (660 root:nobody) have
not been set...

So, 2 things:
1) why this hasn't been set?
I really don't know! but check this:
- /etc/hotplug/libhidups should be 755 (rwxr-xr-x)
- hotplug should call libhidups when the USB cord
is plugged back (try to unplug / replug the USB cord
and check the syslog)

2) simple tests
- call "export ACTION=add && export TYPE=USB && export DEVICE=/proc/bus/usb/001/002 && /etc/hotplug/libhidups"
The result must be that /proc/bus/usb/001/002" is set to "660 root:nobody"

Note that you need to adapt "001/002" as it changes
upon unplug/replug. You can check it with "lsusb"

- if the above is ok, then start newhidups in verbose mode
(having done an "export USB_DEBUG=3" before to get
libusb trace)

As always, thanks to send back the output of lsusb, newhidups
and "ls -lR /proc/bus/usb/" (and if possible, an excerpt of the
syslog with the hotplug message)

One thing is fine is that we are now sure that this is a hotplug
problem. The only remaining point is "how to solve this", and
it depends on "why this hasn't been set"...

> P.S. : Hope you had good holidays

fine thanks. Most of all, more time to dedicate to
my baby boy... and that's really magic ;-)

Arnaud






More information about the Nut-upsuser mailing list