[Nut-upsuser] Powercool?

Tim Clarke tim.clarke at manifest.co.uk
Sat Jan 23 17:11:11 UTC 2016


On 23/01/16 16:52, Charles Lepple wrote:
> [please use reply-all to include the list on your response]
>
> On Jan 23, 2016, at 11:14 AM, Tim Clarke <tim.clarke at manifest.co.uk> wrote:
>> Centos 6.7
>> Linux man8.m1.manifest.co.uk 2.6.32-573.12.1.el6.i686 #1 SMP Tue Dec 15
>> 18:25:17 UTC 2015 i686 i686 i386 GNU/Linux
>>
>> Installed:
>> nut.i686                             2.6.5-2.el6              
>> @epel           
> I don't remember off the top of my head if there were any gotchas to rebuilding NUT on Centos 6.x, but I suspect you can install the SRPM, drop in a newer NUT tarball, update the .spec file, and rebuild. Centos 7 has NUT 2.7.2 in EPEL, I believe.

Erm ....
ftp://rpmfind.net/linux/fedora/linux/development/rawhide/source/SRPMS/n/nut-2.7.3-6.fc24.src.rpm
? And where do I get a .spec file?
*drowns*

>
>> Using driver "genericups" and upstypes 4-8, 10, 13-17, 19 and 21-22
>> (achieved by following the "testing compatibility" steps at the end of
>> the genericups man page) I get OL. But none of them detect OB or LB or
>> SD (or any other state) when I cut the supply to the UPS.
>>
>> There's no serial control port.
> Right, genericups needs either a physical RS-232 port, or a fully-functional USB-to-serial converter, connected to a contact-closure UPS. Otherwise, the OL status is just reflecting the default state of the floating pins coming into the motherboard serial port.

So using the genericups driver is pointless?

>
>> "dmesg | grep usb" gives me:
>>
>> usb 1-3.1: new low speed USB device number 4 using ehci_hcd
>> usb 1-3.1: New USB device found, idVendor=0001, idProduct=0000
>> usb 1-3.1: New USB device strings: Mfr=1, Product=1, SerialNumber=1
>> usb 1-3.1: Product: ATCL FOR UPS
>> usb 1-3.1: Manufacturer: ATCL FOR UPS
>> usb 1-3.1: SerialNumber: ATCL FOR UPS
>> usb 1-3.1: configuration #1 chosen from 1 choice
>> usb 1-3.1: can't set config #1, error -71
>>
>> and lsusb gives:
>> Bus 001 Device 016: ID 0001:0000 Fry's Electronics
>>
>> The idVendor and idProduct are horrid, alas.
> Indeed.
>
> We thought we had this one solved. NUT 2.7.2 added a driver (nutdrv_atcl_ups) for this device: http://news.gmane.org/find-root.php?message_id=52B4C54E.1050106%40ariwainer.com.ar

Yes I read that avidly but fruitlessly.

>
> However, this "ATCL FOR UPS" string might be for a generic USB-to-serial chip, in which case the nutdrv_qx driver (subdriver fuji) might work better: http://thread.gmane.org/gmane.comp.monitoring.nut.user/8808/focus=8812 (merged and first available in NUT 2.7.3)
>
> I've been pondering setting up some CentOS VMs, but that might be a while. Let us know if you need additional information on rebuilding the RPMs.

yes please :/

>
> Also, what does 'lsusb -v -d0001:0000' return when run as root?

Bus 001 Device 016: ID 0001:0000 Fry's Electronics
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0001 Fry's Electronics
  idProduct          0x0000
  bcdDevice            0.00
  iManufacturer           1 ATCL FOR UPS
  iProduct                1 ATCL FOR UPS
  iSerial                 1 ATCL FOR UPS
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      32
          Report Descriptor: (length is 32)
            Item(Global): Usage Page, data= [ 0xa0 0xff ] 65440
                            (null)
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Local ): Usage, data= [ 0x03 ] 3
                            (null)
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x08 ] 8
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position
Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x04 ] 4
                            (null)
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x08 ] 8
            Item(Main  ): Output, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position
Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
      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              10
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)


>

-- 
Tim Clarke



More information about the Nut-upsuser mailing list