Hello, I'm currently try to get newhidups running with the newhidups driver from nut 2.0.2. After some USB issues (usb_claim_interface() works only as root so far) newhidups is recognizing the device. Though it doesn't detect any state changes, meaning when I run the battery test mode it's not recognized. I wanted to try the CVS version but it seems anonymous CVS is broken. The error messages looks like this: https://alioth.debian.org/tracker/index.php?func=detail&aid=301952&group_id=1&atid=200001 Are nightly snapshots available somewhere? I wanted to try with CVS HEAD before I start tinkering around the code... Cheers, Thomas
On 8/15/05, Thomas Jarosch <thomas.jarosch@intra2net.com> wrote:> After some USB issues (usb_claim_interface() works only as root so far)Have you tried changing ownership on the /proc/bus/usb/*/* node to the nut user? That should allow usb_claim_interface() to work. I haven't had a chance to look over it much, but I think I saw some hotplug scripts from Arnaud somewhere that change ownership automatically when the USB UPS is plugged in. -- - Charles Lepple
arnaud.quette@mgeups.com
2005-Aug-16 08:22 UTC
[Nut-upsdev] Re: newhidups and APC Back-UPS CS 350
> I'm currently try to get newhidups running with > the newhidups driver from nut 2.0.2. > > After some USB issues (usb_claim_interface() works only as root so far) > newhidups is recognizing the device. Though it doesn't detect any state > changes, meaning when I run the battery test mode it's not recognized.as Charles said, the privileges problem need the hotplug scripts: http://lists.alioth.debian.org/pipermail/nut-upsuser/2005-August/000110.html> I wanted to try the CVS version but it seems anonymous CVS is broken. > The error messages looks like this: > https://alioth.debian.org/tracker/index.php?func=detail&aid=301952&group_id=1&atid=200001yep, the problem is still logged, but no update: https://alioth.debian.org/tracker/index.php?func=detail&aid=302019&group_id=1&atid=200001> Are nightly snapshots available somewhere? > I wanted to try with CVS HEAD before I start tinkering around the code...sadly, no. Charles: can you make a tarball and put it somewhere for people to test? Arnaud
On 8/16/05, arnaud.quette@mgeups.com <arnaud.quette@mgeups.com> wrote:> Charles: can you make a tarball and put it somewhere for people to test?http://www.ghz.cc/charles/nut/nut-snap-devel-2005-08-16.tar.gz also, for completeness: http://www.ghz.cc/charles/nut/nut-snap-testing-2005-08-16.tar.gz http://www.ghz.cc/charles/nut/nut-snap-stable-2005-08-16.tar.gz -- - Charles Lepple
Wolfgang Ocker
2005-Aug-17 07:12 UTC
CVS errors / CVS patch [was: Re: [Nut-upsdev] newhidups and APC Back-UPS CS 350]
On Mon, 2005-08-15 at 17:04 +0200, Thomas Jarosch wrote:> I wanted to try the CVS version but it seems anonymous CVS is broken. > The error messages looks like this: > https://alioth.debian.org/tracker/index.php?func=detail&aid=301952&group_id=1&atid=200001With this patch applied to the CVS source code you can access the broken CVS server installation at alioth: --- cvs-1.11.19.orig/src/client.c 2005-08-17 08:36:04.000000000 +0200 +++ cvs-1.11.19/src/client.c 2005-08-17 08:40:03.000000000 +0200 @@ -4078,9 +4078,12 @@ } else { + /* XXX error() disabled -- ignore messages from server. */ +#if 0 error (1, 0, "unrecognized auth response from %s: %s", root->hostname, read_buf); +#endif } free (read_buf); } Greetings, Wolfgang
Thomas, I see two differences between my system and yours (and I clearly don't have the EINVAL problems): 1) my kernel is newer (2.6.12-1.1372_FC3) 2) my libusb is older (libusb-devel-0.1.8-3) might the "distance" be too big in your case? The only problems that I have encountered with my Back-UPS ES 650 have been the overabundance of interrupt messages (almost 1 per sec), and that is taken care by running with pollinterval = 1 for the moment. Sorry, this is probably not of much help! AG -- ---------------------------------------------------------------------- Alfred Ganz alfred-ganz@agci.com AG Consulting, Inc. (203) 624-9667 440 Prospect Street # 11 New Haven, CT 06511 ----------------------------------------------------------------------
Thomas, Here are the specifics: 1) US hardware (from /etc/sysconfig/hwconf): ------------------------------------------------------------------ class: USB bus: PCI detached: 0 driver: ehci-hcd desc: "Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller" vendorId: 8086 deviceId: 265c subVendorId: 1019 subDeviceId: a884 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1d pcifn: 7 - class: USB bus: PCI detached: 0 driver: uhci-hcd desc: "Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4" vendorId: 8086 deviceId: 265b subVendorId: 1019 subDeviceId: a884 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1d pcifn: 3 ------------------------------------------------------------------ 2) software (from the lsmod output): uhci_hcd 35025 0 ehci_hcd 40013 0 ------------------------------------------------------------------ Hope this helps, AG -- ---------------------------------------------------------------------- Alfred Ganz alfred-ganz@agci.com AG Consulting, Inc. (203) 624-9667 440 Prospect Street # 11 New Haven, CT 06511 ----------------------------------------------------------------------