OK Peter Here goes. I uninstalled the 2.03 and then compiled and installed using the following
./configure --prefix=/usr --with-user=nut make make usb make install make install-usb One funny thing to note. when I run the command newhidups, without specifying the location /usr/bin, for some reason I get the error -bash: /sbin/newhidups: No such file or directory weird. /usr/bin is in my path. Anyway... right now no big deal. Here is the output as requeted. /usr/bin/newhidups -DD -u root -x generic -x vendorid=0925 auto Network UPS Tools: New USB/HID UPS driver 0.28 (2.1.0) debug level is '2' Checking device (046D/C20D) (003/004) - VendorID: 046d - ProductID: c20d - Manufacturer: Logitech - Product: WingMan Attack 2 - Serial Number: unknown - Bus: 003 Trying to match device Device does not match - skipping Checking device (05A9/0518) (003/002) - VendorID: 05a9 - ProductID: 0518 - Manufacturer: OmniVision Technologies, Inc. - Product: USB Camera - Serial Number: unknown - Bus: 003 Trying to match device Device does not match - skipping Checking device (0451/2046) (003/003) - VendorID: 0451 - ProductID: 2046 - Manufacturer: unknown - Product: unknown - Serial Number: unknown - Bus: 003 Trying to match device Device does not match - skipping Checking device (0925/1234) (002/002) - VendorID: 0925 - ProductID: 1234 - Manufacturer: Richcomm Tech - Product: UPS2004 - Serial Number: unknown - Bus: 002 Trying to match device Device matches HID descriptor retrieved (Reportlen = 78) Report descriptor retrieved (Reportlen = 78) Found HID device Report Descriptor size = 78 Detected a UPS: Richcomm Tech /UPS2004 Using subdriver: GENERIC HID 0.1 Can't find object ffa00001.ffa00002.ffa10003 Path: ffa00001.ffa00002.ffa10003, Type: Input Can't find object ffa00001.ffa00002.ffa10004 Path: ffa00001.ffa00002.ffa10004, Type: Input Can't find object ffa00001.ffa00002.ffa10005 Path: ffa00001.ffa00002.ffa10005, Type: Input Can't find object ffa00001.ffa00002.ffa10006 Path: ffa00001.ffa00002.ffa10006, Type: Input Can't find object ffa00001.ffa00002.ffa10007 Path: ffa00001.ffa00002.ffa10007, Type: Input Can't find object ffa00001.ffa00002.ffa10008 Path: ffa00001.ffa00002.ffa10008, Type: Input Can't find object ffa00001.ffa00002.ffa10009 Path: ffa00001.ffa00002.ffa10009, Type: Output Can't find object ffa00001.ffa00002.ffa1000a Path: ffa00001.ffa00002.ffa1000a, Type: Output Can't find object ffa00001.ffa00002.ffa1000b Path: ffa00001.ffa00002.ffa1000b, Type: Output Can't find object ffa00001.ffa00002.ffa1000c Path: ffa00001.ffa00002.ffa1000c, Type: Output entering identify_ups(0x0925, 0x1234) upsdrv_updateinfo... dstate_init: sock /var/state/ups/newhidups-auto open on fd 5 upsdrv_updateinfo... Waiting for notifications... upsdrv_updateinfo... Waiting for notifications... upsdrv_updateinfo... Waiting for notifications... Keeps on repeating the same thing over and over again until I press Control C. Eli On Wednesday, 14 בJune 2006 18:52, Peter Selinger wrote: > Hi Eli, > > sorry, I forgot to say: you should first get and compile the newest > development tree of NUT from the SVN repository. The -x generic flag > will not work with 2.0.3. See > http://www.networkupstools.org/source.html > > -- Peter > > Eli Wapniarski wrote: > > Hi Peter > > > > Thanks for responding. > > Running newhidups -DD -u root -x generic -x vendorid=3D0925 auto produces > > > > Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3) > > Fatal error: 'generic' is not a valid flag for this driver. > > > > However, newhidups -DD -u root -x vendorid=3D0925 auto > > > > Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3) > > > > debug level is '2' > > Checking device (046D/C20D) (003/004) > > - VendorID: 046d > > - ProductID: c20d > > - Manufacturer: Logitech > > - Product: WingMan Attack 2 > > - Serial Number: unknown > > - Bus: 003 > > Trying to match device > > Device does not match - skipping > > Checking device (05A9/0518) (003/002) > > - VendorID: 05a9 > > - ProductID: 0518 > > - Manufacturer: OmniVision Technologies, Inc. > > - Product: USB Camera > > - Serial Number: unknown > > - Bus: 003 > > Trying to match device > > Device does not match - skipping > > Checking device (0451/2046) (003/003) > > - VendorID: 0451 > > - ProductID: 2046 > > - Manufacturer: unknown > > - Product: unknown > > - Serial Number: unknown > > - Bus: 003 > > Trying to match device > > Device does not match - skipping > > Checking device (0925/1234) (002/002) > > - VendorID: 0925 > > - ProductID: 1234 > > - Manufacturer: Richcomm Tech > > - Product: UPS2004 > > - Serial Number: unknown > > - Bus: 002 > > Trying to match device > > Device does not match - skipping > > Checking device (0000/0000) (002/001) > > - VendorID: 0000 > > - ProductID: 0000 > > - Manufacturer: Linux 2.6.16-1.2133_FC5smp uhci_hcd > > - Product: UHCI Host Controller > > - Serial Number: 0000:00:1d.0 > > - Bus: 002 > > Trying to match device > > Device does not match - skipping > > Checking device (0000/0000) (005/001) > > - VendorID: 0000 > > - ProductID: 0000 > > - Manufacturer: Linux 2.6.16-1.2133_FC5smp uhci_hcd > > - Product: UHCI Host Controller > > - Serial Number: 0000:00:1d.3 > > - Bus: 005 > > Trying to match device > > Device does not match - skipping > > Checking device (0000/0000) (004/001) > > - VendorID: 0000 > > - ProductID: 0000 > > - Manufacturer: Linux 2.6.16-1.2133_FC5smp uhci_hcd > > - Product: UHCI Host Controller > > - Serial Number: 0000:00:1d.2 > > - Bus: 004 > > Trying to match device > > Device does not match - skipping > > Checking device (0000/0000) (001/001) > > - VendorID: 0000 > > - ProductID: 0000 > > - Manufacturer: Linux 2.6.16-1.2133_FC5smp ehci_hcd > > - Product: EHCI Host Controller > > - Serial Number: 0000:00:1d.7 > > - Bus: 001 > > Trying to match device > > Device does not match - skipping > > No appropriate HID device found > > No matching USB/HID UPS found > > > > I really appreciate this effort. > > > > Eli > > > > > Eli, > > > > > > Gamatronic is not currently supported by the newhidups driver. You > > > have two options: > > > > > > (1) look at the file data/driver.list or > > > http://www.networkupstools.org/compat/ to find a serial driver > > > that matches your device, and/or > > > > > > (2) post the output of > > > > > > newhidups -DD -u root -x generic -x vendorid=3D0925 auto > > > > > > and we'll try to see if any USB driver can be modified to support > > > this device. > > > > > > -- Peter > > > > > > Eli Wapniarski wrote: > > >> Hi > > >> > > >> I am running FC5 with nut coming from the fc5 extras repositories. I > > >> =3D2= > > > > 0 > > > > >> am trying to configure a Gamatronic D-Compact ups. The cable that came > > >> = > > > > =3D20 > > > > >> with the ups has a serial connector on one end and a usb on the other. > > >> > > >> cat /proc/bus/usb/devices produces > > >> > > >> T: Bus=3D3D01 Lev=3D3D01 Prnt=3D3D01 Port=3D3D01 Cnt=3D3D01 Dev#=3D3D > > >> 4= > > > > =20 > > > > >> Spd=3D3D1.5 MxCh=3D > > >> =3D3D 0 > > >> D: Ver=3D3D 1.10 Cls=3D3D00(>ifc ) Sub=3D3D00 Prot=3D3D00 MxPS=3D3D 8 > > >> #C= > > > > fgs=3D3D 1 > > > > >> P: Vendor=3D3D0925 ProdID=3D3D1234 Rev=3D3D 0.01 > > >> S: Manufacturer=3D3DRichcomm Tech > > >> S: Product=3D3DUPS2004 > > >> C:* #Ifs=3D3D 1 Cfg#=3D3D 1 Atr=3D3D80 MxPwr=3D3D100mA > > >> I: If#=3D3D 0 Alt=3D3D 0 #EPs=3D3D 1 Cls=3D3D03(HID ) Sub=3D3D00 > > >> Prot= > > > > =3D3D00 =20 > > > > >> Driver=3D3D=3D > > >> usbhid > > >> E: Ad=3D3D81(I) Atr=3D3D03(Int.) MxPS=3D3D 6 Ivl=3D3D10ms > > >> > > >> So the ups is detected. But when I try to run > > >> > > >> upsdrvctl -u nut start or upsdrvctl -u root start I get > > >> > > >> Network UPS Tools - UPS driver controller 2.0.3 > > >> execv: Permission denied > > >> Driver failed to start (exit status=3D3D1) > > >> > > >> > > >> /etc/rc.d/init.d/ups start produces > > >> > > >> Starting newhidups: Network UPS Tools: New USB/HID UPS driver 0.28 > > >> (2.0.3= > > > > ) > > > > >> No matching USB/HID UPS found > > >> [FAILED] > > >> Starting upsd: Network UPS Tools upsd 2.0.3 > > >> Can't connect to UPS [Gamatronic] (-auto): No such file or directory > > >> Synchronizing........ giving up > > >> [ OK ] > > >> Starting UPS monitor (master): Network UPS Tools upsmon 2.0.3 > > >> Using power down flag file /etc/killpower > > >> > > >> > > >> Fatal error: insufficient power configured! > > >> > > >> Sum of power values........: 0 > > >> Minimum value (MINSUPPLIES): 1 > > >> > > >> Edit your upsmon.conf and change the values. > > >> [FAILED] > > >> > > >> /etc/sysconfig/ups contains > > >> > > >> # If the UPS is locally attached set it to "yes" > > >> SERVER=3D3Dyes > > >> # Model of the UPS (filename to call for it, without path) > > >> # Example - one of > > >> # apcsmart - APC SMartUPS and similar > > >> # fentonups - Fenton UPS > > >> # optiups > > >> # bestups > > >> # genericups > > >> # ups-trust425+625 > > >> # upsdrvctl > > >> # You MUST change this, or set SERVER to "no" > > >> # To support multiple drivers, set MODEL=3D3Dupsdrvctl > > >> MODEL=3D3Dnewhidups > > >> # UPS device - needed if UPS is locally attached > > >> DEVICE=3D3Dauto > > >> # Any options to pass to $MODEL > > >> # ex. for my TrippLite UPS, use > > >> # OPTIONS=3D3D"-t 5" > > >> OPTIONS=3D3D > > >> # Any options to pass to upsd > > >> UPSD_OPTIONS=3D3D > > >> # > > >> # [End] > > >> > > >> /etc/ups/ups.conf contains > > >> > > >> [Gamatronic] > > >> driver=3D3D newhidups > > >> port =3D3D auto > > >> desc =3D3D "Gamatronic D-Compact" > > >> > > >> > > >> I tried to modifying /etc/udev/rules.d/nut-usbups.rules to inlcude the > > >> = > > > > =3D20 > > > > >> following lines before LABEL=3D3D"nut-usbups_rules_end" to include > > >> > > >> # Gamatronic D-Compact - usbhid-ups > > >> SYSFS{idVendor}=3D3D=3D3D"0925", SYSFS{idProduct}=3D3D=3D3D"1234", > > >> =20 MODE=3D3D"660", GRO=3D > > >> UP=3D3D"nut" > > >> > > >> I got the same results. Please help me to get nut configured > > >> correctly. > > >> > > >> Thanks > > >> > > >> Eli > > >> > > >> _______________________________________________ > > >> Nut-upsuser mailing list > > >> [email protected] > > >> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

