rimabel@upvnet.upv.es
2006-Feb-03 17:21 UTC
[Nut-upsuser] Problems suse 9.3, ellipse premium 500
Hi, I have installed in suse 9.3 and ellipse premium 500 usb a psp 3.0 with yast2 and versions: nut-2.0.2-4 mgeups-psp-3.0.0-3 the first time that I launch psp it seems to contact the UPS and you can make changes to the parameters and all seems ok. If you make a reboot the psp hangs up and if you try /etc/init.d/ups it fails: Starting service NUT: -> Starting UPS driver: Network UPS Tools - UPS driver controller 2.0.2 Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2) No USB/HID UPS found Driver failed to start (exit status=1) ups.conf is with root:nobody permissions: [sai_name] driver = newhidups port = auto desc = "Computer Room" lsusb output is ok: ... Bus 002 Device 002: ID 0463:ffff MGE UPS Systems UPS ... ls -lr /proc/bus/usb/002 seems ok: /proc/bus/usb/002: dr-xr-xr-x 2 root root 0 Feb 3 12:40 . drwxr-xr-x 6 root root 0 Feb 3 12:40 .. -rw-r--r-- 1 root root 43 Feb 3 12:40 001 -rw-r--r-- 1 root nobody 52 Feb 3 12:40 002 ls -al /etc/hotplug/usb/ seems ok: ... -rw-r--r-- 1 root root 1105 Sep 8 13:35 libhid.usermap -rwxr-xr-x 1 root root 481 Sep 8 13:35 libhidups ... Then I try: export USB_DEBUG=3D3 /usr/lib/ups/driver/newhidups -DDDDD auto or /usr/lib/ups/driver/newhidups -DDDDD nobody auto and they give the same message: Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2) debug level is '5' Opening new device (0000/0000) Opening new device (0000/0000) Opening new device (0463/FFFF) Found 0x463 failed to claim USB device, trying 2 more time(s)... detaching kernel driver from USB device... failed to detach kernel driver from USB device... trying again to claim USB device... failed to claim USB device, trying 1 more time(s)... detaching kernel driver from USB device... failed to detach kernel driver from USB device... trying again to claim USB device... failed to claim USB device, trying 0 more time(s)... detaching kernel driver from USB device... failed to detach kernel driver from USB device... trying again to claim USB device... - Unable to fetch manufacturer string - Unable to fetch product string - No serial number string Unable to get HID descriptor (error sending control message: Operation not permitted) Opening new device (0000/0000) Opening new device (0000/0000) found 0 (-1) No USB/HID UPS found I have installed Ellipse premium 500 without problems in suse 9.2. Someone has had similar problems and have solved?. Best regards. Ricardo
This is a permissions problem; note the "nobody" in:> /proc/bus/usb/002: > dr-xr-xr-x 2 root root 0 Feb 3 12:40 . > drwxr-xr-x 6 root root 0 Feb 3 12:40 .. > -rw-r--r-- 1 root root 43 Feb 3 12:40 001 > -rw-r--r-- 1 root nobody 52 Feb 3 12:40 002This should be the ups user. The solution is to set up hotplugging correctly - something to do with /etc/hotplug/usb/libhidups. There were some posts on this list by Paul Mogren in January on how to fix hotplugging in Suse. -- Peter rimabel@upvnet.upv.es wrote:> > Hi, > > I have installed in suse 9.3 and ellipse premium 500 usb a psp 3.0 with yast2 > and versions: > > nut-2.0.2-4 > mgeups-psp-3.0.0-3 > > the first time that I launch psp it seems to contact > the UPS and you can make changes to the parameters > and all seems ok. If you make a reboot the psp hangs > up and if you try /etc/init.d/ups it fails: > > Starting service NUT: > -> Starting UPS driver: > Network UPS Tools - UPS driver controller 2.0.2 > Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2) > > No USB/HID UPS found > Driver failed to start (exit status=1) > > ups.conf is with root:nobody permissions: > > [sai_name] > driver = newhidups > port = auto > desc = "Computer Room" > > > lsusb output is ok: > ... > Bus 002 Device 002: ID 0463:ffff MGE UPS Systems UPS > ... > > ls -lr /proc/bus/usb/002 seems ok: > > /proc/bus/usb/002: > dr-xr-xr-x 2 root root 0 Feb 3 12:40 . > drwxr-xr-x 6 root root 0 Feb 3 12:40 .. > -rw-r--r-- 1 root root 43 Feb 3 12:40 001 > -rw-r--r-- 1 root nobody 52 Feb 3 12:40 002 > > ls -al /etc/hotplug/usb/ seems ok: > ... > -rw-r--r-- 1 root root 1105 Sep 8 13:35 libhid.usermap > -rwxr-xr-x 1 root root 481 Sep 8 13:35 libhidups > ... > > Then I try: > > export USB_DEBUG=3D3 > /usr/lib/ups/driver/newhidups -DDDDD auto > or /usr/lib/ups/driver/newhidups -DDDDD nobody auto > > and they give the same message: > > Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2) > > debug level is '5' > Opening new device (0000/0000) > Opening new device (0000/0000) > Opening new device (0463/FFFF) > Found 0x463 > failed to claim USB device, trying 2 more time(s)... > detaching kernel driver from USB device... > failed to detach kernel driver from USB device... > trying again to claim USB device... > failed to claim USB device, trying 1 more time(s)... > detaching kernel driver from USB device... > failed to detach kernel driver from USB device... > trying again to claim USB device... > failed to claim USB device, trying 0 more time(s)... > detaching kernel driver from USB device... > failed to detach kernel driver from USB device... > trying again to claim USB device... > - Unable to fetch manufacturer string > - Unable to fetch product string > - No serial number string > Unable to get HID descriptor (error sending control message: Operation not > permitted) > Opening new device (0000/0000) > Opening new device (0000/0000) > found 0 (-1) > No USB/HID UPS found > > I have installed Ellipse premium 500 without problems in suse 9.2. > > Someone has had similar problems and have solved?. > > Best regards. > > Ricardo > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser >
Hello, 2006/2/3, Peter Selinger <selinger@mathstat.dal.ca>:> > This is a permissions problem; note the "nobody" in: > > > /proc/bus/usb/002: > > dr-xr-xr-x 2 root root 0 Feb 3 12:40 . > > drwxr-xr-x 6 root root 0 Feb 3 12:40 .. > > -rw-r--r-- 1 root root 43 Feb 3 12:40 001 > > -rw-r--r-- 1 root nobody 52 Feb 3 12:40 002 > > This should be the ups user.eheh, in fact no. SuSE use the "nobody" user, not the "ups, nut or whatever ups/nut related name". This point is one of those addressed by the NUT Packaging Standard... the problem here seems more to be that the group (nobody) lacks the write flag (should be -rw-rw-r-- 1 root nobody). What is strange is that the /etc/hotplug/usb/libhidups already do the a chown root:nobody and chmod 660 ... Do you have changed something in this file? Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20060207/96b93294/attachment.htm