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.. Personally, I made it working with this entry in devd.conf : # Added for Eaton UPS support attach 100 { match vendor 0x0463; match product 0x; action /usr/sbin/chown -R -L uucp:uucp /dev/$device-name; }; 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 -- Le Temps : On n'a pas la même perception du temps selon les species, c'est ce qui fait que je peux passer à main entre toi et moi comme ça, parce que pour l'oxygène, une seconde, c'est peut-être dix secondes, et pour le béton, une seconde, c'est peut-être un millième de seconde... -+- Jean-Claude VanDamme -+- ___ 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
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
Re: [Nut-upsuser] Problem using an Eaton Ellipse ASR 750 VA on FreeBSD
Citeren frederic.pr...@free.fr: I have to manage an Eaton Ellipse ASR 750 VA UPS under a FreeBSD 8.2 server. I used nut from ports collection but I'm unable to detect the UPS by USB cable. [...] Any idea of how to make it works ? Did you follow the FreeBSD installation HOWTO that's mentioned in the documentation? http://people.freebsd.org/~thierry/nut_FreeBSD_HowTo.txt 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
On 04/03/2011, at 21:16, Arjen de Korte wrote: Any idea of how to make it works ? Did you follow the FreeBSD installation HOWTO that's mentioned in the documentation? http://people.freebsd.org/~thierry/nut_FreeBSD_HowTo.txt I don't think this will work due to the change to a new USB stack in 8.x For a quick test try.. sudo chown :uucp /dev/usb/4.2.* Then retry starting NUT. -- 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
Re: [Nut-upsuser] Problem using an Eaton Ellipse ASR 750 VA on FreeBSD
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 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 ? 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