Re: [Nut-upsuser] Problem w/ Belkin UPS on FreeBSD

2010-09-25 Thread Daniel O'Connor

On 25/09/2010, at 15:01, Bryce Edwards wrote:
 br...@tahiti[/usr/ports/sysutils/openupsd]s usbconfig
 ugen1.2: Belkin UPS Belkin at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
 
 br...@tahiti[/usr/ports/sysutils/openupsd]dmesg | grep -i belkin
 ugen1.2: Belkin at usbus1
 uhid0: Belkin Belkin UPS, class 0/0, rev 1.10/0.01, addr 2 on usbus1

Who owns /dev/usb/1.2.0 ? (and what perms)

You probably need to chown it to the user upsd will run as (eg uucp, nutmon, 
nobody).

You can do this by putting a file into /usr/local/etc/devd which looks like..
notify 100 {
match vendor 0x050d;
match product 0x0751;
action /bin/chown nutmon: /dev/$device-name;
}

(then unplug/replug the UPS to see if it did it)

--
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 w/ Belkin UPS on FreeBSD

2010-09-25 Thread Daniel O'Connor

On 25/09/2010, at 16:36, Daniel O'Connor wrote:
 You can do this by putting a file into /usr/local/etc/devd which looks like..
 notify 100 {
   match vendor 0x050d;
   match product 0x0751;
   action /bin/chown nutmon: /dev/$device-name;
 }

Oops I should have tested it :)
Try this instead
attach 100 {
match vendor 0x050d;
match product 0x0751;
action /usr/sbin/chown nutmon: /dev/$device-name;
};



--
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 w/ Belkin UPS on FreeBSD

2010-09-25 Thread Bryce Edwards
That did it, thanks!

The FreeBSD port runs nut as user uucp by default, and that is the
user I used to get it working.

::Bryce::


On Sat, Sep 25, 2010 at 2:48 AM, Daniel O'Connor docon...@gsoft.com.au wrote:

 On 25/09/2010, at 16:36, Daniel O'Connor wrote:
 You can do this by putting a file into /usr/local/etc/devd which looks like..
 notify 100 {
       match vendor 0x050d;
       match product 0x0751;
       action /bin/chown nutmon: /dev/$device-name;
 }

 Oops I should have tested it :)
 Try this instead
 attach 100 {
        match vendor 0x050d;
        match product 0x0751;
        action /usr/sbin/chown nutmon: /dev/$device-name;
 };



 --
 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] Problem w/ Belkin UPS on FreeBSD

2010-09-24 Thread Bryce Edwards
I'm sure I'm missing something, but I can't seem to get NUT working on FreeBSD.

br...@tahiti[/usr/local/etc/nut]cat ups.conf
[belkin]
driver = usbhid-ups
port = auto
vendorid = 050d
#productid = 0751

br...@tahiti[/usr/local/etc/nut]s /usr/local/libexec/nut/usbhid-ups
-D -a belkin
Network UPS Tools - Generic HID driver 0.34 (2.4.1)
USB communication driver 0.31
send_to_all: SETINFO driver.parameter.port auto
send_to_all: SETINFO driver.parameter.vendorid 050d
debug level is '5'
upsdrv_initups...
No appropriate HID device found
No matching HID UPS found


br...@tahiti[/usr/ports/sysutils/openupsd]s usbconfig
ugen1.2: Belkin UPS Belkin at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON

br...@tahiti[/usr/ports/sysutils/openupsd]dmesg | grep -i belkin
ugen1.2: Belkin at usbus1
uhid0: Belkin Belkin UPS, class 0/0, rev 1.10/0.01, addr 2 on usbus1

Please advise, thanks!

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser