Re: [Nut-upsuser] Problem using an Eaton Ellipse ASR 750 VA on FreeBSD
Citeren Frederic Praca frederic.pr...@freebsd-fr.org: I wondered how the USB UPS are detected and if my UPS is described in the source code. Any idea of where I should take a look ? We search for a VendorID / ProductID combination. The one you posted earlier idVendor = 0x0463 idProduct = 0x is one of the combinations that are supported by the usbhid-ups driver (it is used for all MGE / Eaton devices with USB HID PDC support). If the driver can find this ID in the list of attached devices, it should find it. But I guess this is something related to the FreeBSD USB stack, which I know nothing of. Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected) ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Problem using an Eaton Ellipse ASR 750 VA on FreeBSD
Great !! It worked. In fact, the '-u' parameter you gave me allowed me to test as root and see it working. Changing owner to /dev/usb/4.2.* seemed to be insufficient and after changing the owner of the /dev/ugen4.2.* link, it finally got detected. Finally, it was easier than I thought and I should have tried this beforehand. Sorry for this dumb question :-) Thanks for helping me, every remaining tasks are FreeBSD specific. Fred Le Sat, 5 Mar 2011 10:27:06 +1030, Daniel O'Connor docon...@gsoft.com.au a écrit : On 05/03/2011, at 4:50, Frederic Praca wrote: As I feared, changing the group for ugen4.2 had no effect. I used to try 'usbhid-ups' by hand under root account. So the message still remains the same : # ./usbhid-ups -a eaton Network UPS Tools - Generic HID driver 0.35 (2.6.0) USB communication driver 0.31 No matching HID UPS found It will drop root privs though, try.. ./usbhid-ups -u root -a eaton I have an Ellipse 1000VA connected to my FreeBSD server using usbhid-ups [midget 10:26] ~ cat /usr/local/etc/nut/ups.conf [mge] driver = usbhid-ups port = usb # Give the system enough time to shutdown when the power fails offdelay = 120 # ondelay must be greater than offdelay so change it too ondelay = 130 ###pollonly [midget 10:26] ~ cat /usr/local/etc/devd/nut.conf attach 100 { match vendor 0x0463; match product 0x; action /usr/sbin/chown nutmon: /dev/$device-name; }; I built my NUT port with a new user (nutmon) vs using uucp but that shouldn't mater. I wondered how the USB UPS are detected and if my UPS is described in the source code. Any idea of where I should take a look ? What happens when you run it with -D -D -D to enable debugging? Fred -- L'homme est visiblement fait pour penser ; c'est toute sa dignité et tout son métier, et tout son devoir est de penser comme il faut. -+- Blaise Pascal (1623-1662), Pensées II.146 -+- ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -- Et chacun croit fort aisément Ce qu'il craint et ce qu'il désire. -+- Jean de La Fontaine (1621-1695), Le Loup et le Renard (Fables XI.6) -+- ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Problem using an Eaton Ellipse ASR 750 VA on FreeBSD
On 05/03/2011, at 20:16, Arjen de Korte wrote: We search for a VendorID / ProductID combination. The one you posted earlier idVendor = 0x0463 idProduct = 0x is one of the combinations that are supported by the usbhid-ups driver (it is used for all MGE / Eaton devices with USB HID PDC support). If the driver can find this ID in the list of attached devices, it should find it. But I guess this is something related to the FreeBSD USB stack, which I know nothing of. The root of the problem was the permissions on the ugen device node - when NUT dropped privs it couldn't open it. I should clean up my script to translate udev rules into devd ones and send a patch for the NUT port to install it so the perms get changed automagically.. Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected) ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
[Nut-upsuser] Tripp-Lite AVR-900U
Greetings. I have a Tripp-Lite AVR-900U that I am trying to get work with NUT. (I rather naively bought the thing assuming that since NUT worked with the AVR-750U, that the same would be so of this model.) Here's what I've got so far: # upsdrvctl start Network UPS Tools - UPS driver controller 2.4.3 Network UPS Tools - Generic HID driver 0.34 (2.4.3) USB communication driver 0.31 This TrippLite device (09ae:2010) is not (or perhaps not yet) supported by usbhid-ups. Please make sure you have an up-to-date version of NUT. If this does not fix the problem, try running the driver with the '-x productid=2010' option. Please report your results to the NUT user's mailing list nut-upsuser@lists.alioth.debian.org. No matching HID UPS found Driver failed to start (exit status=1) # upsdrvctl start Network UPS Tools - UPS driver controller 2.4.3 Network UPS Tools - Generic HID driver 0.34 (2.4.3) USB communication driver 0.31 This TrippLite device (09ae:2010) is not (or perhaps not yet) supported by usbhid-ups. Please make sure you have an up-to-date version of NUT. If this does not fix the problem, try running the driver with the '-x productid=2010' option. Please report your results to the NUT user's mailing list nut-upsuser@lists.alioth.debian.org. No matching HID UPS found Driver failed to start (exit status=1) I had to add a section in /etc/udev/rules.d/nut-usbups.rules; I just copied the line for the AVR-750U and changed the id to 2010 and then I got: # /lib/nut/usbhid-ups -a Tripp-Lite -x productid=2010 Network UPS Tools - Generic HID driver 0.34 (2.4.3) USB communication driver 0.31 Using subdriver: TrippLite HID 0.4 That seems OK, but now what? Is there a way to add the -x productid=2010 option to the ups.conf? And if I could, should I expect it to work? Thanks, Doug ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser