Re: [Nut-upsuser] APC Back-UPS ES 700 under FreeBSD

2008-08-15 Thread Marius Nünnerich
On Mon, Aug 11, 2008 at 10:34 AM, Arjen de Korte <[EMAIL PROTECTED]> wrote:
>> It is currently not possible for me to reach the ups, but as far as I
>> remember the vendorid was 0x051d.
>
> That is not surprising, since this is the vendorid of APC.
>
>> -D or more didn't bring up anything interesting.
>
> I beg to differ here. If the UPS would be recognised by the kernel (which
> is still to be seen), this would at least reveal the vendorid and
> productid and sometimes also the reason why the driver can't connect.
>
>> But I can rerun it and poste the output here when I'm at the machine
>> again.
>
> Please do. You may want to run the driver as root, to rule out any
> permissions problems
>
>usbhid-ups -D -u root -a 
>
> If it doesn't work as root, changes are that the productid is unknown to
> us. If it only works as root, there may be a permissions problem.
>
> Best regards, Arjen

OK, thank you all!
It was a simple permission problem, now everything runs just fine.
For the record:
Everything I did was adding
perm ugen* 0660
own ugen* root:uucp
perm usb* 0660
own usb* root:uucp
to /etc/devfs.conf
The default user für nut is uucp on FreeBSD, so no need to add another user.
Beware of the security implications with these rules!

Bye
Marius

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


Re: [Nut-upsuser] APC Back-UPS ES 700 under FreeBSD

2008-08-11 Thread Arjen de Korte
> It is currently not possible for me to reach the ups, but as far as I
> remember the vendorid was 0x051d.

That is not surprising, since this is the vendorid of APC.

> -D or more didn't bring up anything interesting.

I beg to differ here. If the UPS would be recognised by the kernel (which
is still to be seen), this would at least reveal the vendorid and
productid and sometimes also the reason why the driver can't connect.

> But I can rerun it and poste the output here when I'm at the machine
> again.

Please do. You may want to run the driver as root, to rule out any
permissions problems

usbhid-ups -D -u root -a 

If it doesn't work as root, changes are that the productid is unknown to
us. If it only works as root, there may be a permissions problem.

Best regards, Arjen


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


Re: [Nut-upsuser] APC Back-UPS ES 700 under FreeBSD

2008-08-10 Thread Marius Nünnerich
On Sun, Aug 10, 2008 at 8:03 PM, Arjen de Korte <[EMAIL PROTECTED]> wrote:
>> I'm currently trying to install a APC Back-UPS ES 700 on FreeBSD. This
>> UPS has a usb connection to the PC and is recognized as:
>
> [...]
>
>> Anyone has an idea what to try next? Maybe there is just some usb id
>> missing in the driver so it will recognize this ups?
>
> You could start with providing some more information. What are the
> productid and vendorid of this device? Also, running the 'usbhid-ups'
> driver in debug mode (add '-D' to the commandline) may help to
> diagnose where things go wrong.

It is currently not possible for me to reach the ups, but as far as I
remember the vendorid was 0x051d.

-D or more didn't bring up anything interesting. But I can rerun it
and poste the output here when I'm at the machine again.

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


Re: [Nut-upsuser] APC Back-UPS ES 700 under FreeBSD

2008-08-10 Thread Arjen de Korte
> I'm currently trying to install a APC Back-UPS ES 700 on FreeBSD. This
> UPS has a usb connection to the PC and is recognized as:

[...]

> Anyone has an idea what to try next? Maybe there is just some usb id
> missing in the driver so it will recognize this ups?

You could start with providing some more information. What are the
productid and vendorid of this device? Also, running the 'usbhid-ups'
driver in debug mode (add '-D' to the commandline) may help to
diagnose where things go wrong.

Best regards, Arjen
-- 
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B  7A FE 7E C1 EE 88 BC 57


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


Re: [Nut-upsuser] APC Back-UPS ES 700 under FreeBSD

2008-08-10 Thread Marius Nünnerich
On Sat, Aug 9, 2008 at 12:10 PM, Marius Nünnerich <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm currently trying to install a APC Back-UPS ES 700 on FreeBSD. This
> UPS has a usb connection to the PC and is recognized as:
>
> ugen0: APC Back-UPS ES 700 FW:829.D2 .I USB FWD2 rev 1.10/1.06, addr 2
>
> my ups.conf looks like:
> [back-ups]
>  driver = usbhid-ups
>  port = auto
>  desc = "server"
>
> When I now run /usr/local/libexec/nut/upsdrvctl start the output is:
> Network UPS Tools - UPS driver controller 2.2.2
> Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)
>
> No matching HID UPS found
> Driver failed to start (exit status=1)
>
> I chmodded /dev/ugen0 to 777 for testing but it doesn't help.
>
> Anyone has an idea what to try next? Maybe there is just some usb id
> missing in the driver so it will recognize this ups?
>
> Kind regards
> Marius
>

BTW has anyone this exact ups working with nut?
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] APC Back-UPS ES 700 under FreeBSD

2008-08-09 Thread Daniel O'Connor
On Sat, 9 Aug 2008, Marius Nünnerich wrote:
> Hi all,
>
> I'm currently trying to install a APC Back-UPS ES 700 on FreeBSD.
> This UPS has a usb connection to the PC and is recognized as:
>
> ugen0: APC Back-UPS ES 700 FW:829.D2 .I USB FWD2 rev 1.10/1.06, addr
> 2
>
> my ups.conf looks like:
> [back-ups]
>   driver = usbhid-ups
>   port = auto
>   desc = "server"
>
> When I now run /usr/local/libexec/nut/upsdrvctl start the output is:
> Network UPS Tools - UPS driver controller 2.2.2
> Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)
>
> No matching HID UPS found
> Driver failed to start (exit status=1)
>
> I chmodded /dev/ugen0 to 777 for testing but it doesn't help.
>
> Anyone has an idea what to try next? Maybe there is just some usb id
> missing in the driver so it will recognize this ups?

Try chmod'ing /dev/usb* 666.

Unfortunately it seems you can't just grant privs to your NUT user for a 
specific device - libusb also needs /dev/usb* to find them :(

-- 
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


signature.asc
Description: This is a digitally signed message part.
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser