Steve Kelem
2007-Feb-23  10:29 UTC
[Nut-upsuser] how do I find the association between a usb port and a /dev entry?
I looked through the faq, but couldn't find an answer to this.
I'm trying to configure nut-2.0.4-26 on SuSE linux 10.2.
In ups.conf, I have
[myups]
    driver = belkinunv
    port = /dev/undefined
    desc = "Local UPS"
I'm trying to find out what the port should be set to.
lsusb shows:
Bus 001 Device 005: ID 050d:0980 Belkin Components
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x050d Belkin Components
  idProduct          0x0980
  bcdDevice            0.06
  iManufacturer           4
  iProduct               20 UPS
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower               20mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     820
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval             248
Device Status:     0x0001
  Self Powered
Thanks for any help you can give,
Steve
Herman J van der Merwe
2007-Feb-23  11:01 UTC
[Nut-upsuser] how do I find the association between a usb port anda /dev entry?
Steve, first check what ports your OS found - run dmesg command. Then I do not know if this could also be a problem, but make sure that USB2 driver is loaded first - here is an extract from a tech site: --------------------- USB1 (uhci or ohci), which is also available on your system, is the first to be detected and loaded during system start. Thus, USB2 falls behind. This problem is mainly observed in connection with combicards (i.e., systems equipped with a combination of USB1 and 2). Here's one way to solve it. Instruct the kernel to load USB2 (ehci) first. Start YaST, select 'System' then 'Editor for /etc/sysconfig Files'. A new window will be displayed. Now select 'System' and 'Kernel' on the left side and mark 'MODULES_LOADED_ON_BOOT'. Insert the value ehci-hcd in the line in the upper right section, exit YaST, and reboot your system. Alternative Approach It is also possible to load the module ehci-hcd manually. To do this, edit the file /etc/sysconfig/kernel as root and insert the value ehci-hcd between the quotation marks in the line: MODULES_LOADED_ON_BOOT="" Save the changes and reboot your system. USB2 will now be loaded first. ----------------------------- ----- Original Message ----- From: "Steve Kelem" <steve@kelem.net> To: <nut-upsuser@lists.alioth.debian.org> Sent: Friday, February 23, 2007 10:28 AM Subject: [Nut-upsuser] how do I find the association between a usb port anda /dev entry?>I looked through the faq, but couldn't find an answer to this. > > I'm trying to configure nut-2.0.4-26 on SuSE linux 10.2. > > In ups.conf, I have > > [myups] > driver = belkinunv > port = /dev/undefined > desc = "Local UPS" > > I'm trying to find out what the port should be set to. > > lsusb shows: > Bus 001 Device 005: ID 050d:0980 Belkin Components > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.10 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 8 > idVendor 0x050d Belkin Components > idProduct 0x0980 > bcdDevice 0.06 > iManufacturer 4 > iProduct 20 UPS > iSerial 0 > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 34 > bNumInterfaces 1 > bConfigurationValue 1 > iConfiguration 0 > bmAttributes 0xc0 > Self Powered > MaxPower 20mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 1 > bInterfaceClass 3 Human Interface Devices > bInterfaceSubClass 0 No Subclass > bInterfaceProtocol 0 None > iInterface 0 > HID Device Descriptor: > bLength 9 > bDescriptorType 33 > bcdHID 1.00 > bCountryCode 33 US > bNumDescriptors 1 > bDescriptorType 34 Report > wDescriptorLength 820 > Report Descriptors: > ** UNAVAILABLE ** > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x0008 1x 8 bytes > bInterval 248 > Device Status: 0x0001 > Self Powered > > Thanks for any help you can give, > Steve > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.412 / Virus Database: 268.18.3/698 - Release Date: 2/23/2007 > >
Arjen de Korte
2007-Feb-23  11:43 UTC
[Nut-upsuser] how do I find the association between a usb port and a /dev entry?
> I looked through the faq, but couldn't find an answer to this. > > I'm trying to configure nut-2.0.4-26 on SuSE linux 10.2. > > In ups.conf, I have > > [myups] > driver = belkinunvThis is the wrong driver. You appear to have an UPS with a USB connection, while belkinunv is for a serial connected one. I think your UPS may be supported by the newhidups driver, although we've had quite a number of updates to that driver since nut-2.0.4 came out. You may want to checkout nut-2.0.5 or (even better) the version available in the SVN trunk (where newhidups is replaced by the usbhid-ups driver). If you don't know how to build this, contact me off-list and I'll send you an RPM package for openSUSE 10.2.> port = /dev/undefinedThat can be set to 'auto', it is not used for a USB UPS. Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57