<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 08/02/2011 15:50, Arjen de Korte wrote:
    <blockquote
      cite="mid:20110208095024.105567drsbqr5cy8@mail.de-korte.org"
      type="cite">Citeren Kevin <a class="moz-txt-link-rfc2396E" href="mailto:bakdong@gmail.com">&lt;bakdong@gmail.com&gt;</a>:
      <br>
      <br>
      Good. I assume you tried this on the CS-500, right? Do you have
      any idea how long the delay is before the device actually shuts
      down?
      <br>
      <br>
    </blockquote>
    <br>
    Yes, this is with the CS 500. The bad news is that the "# usbhid-ups
    -a apc1500 -k -DDD" command doesn't work, producing<br>
    <br>
    <pre>Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 1.000000
Report[buf]: (2 bytes) =&gt; 14 01
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 1.000000
Initiating UPS shutdown
upsdrv_shutdown...
<b><font color="#ff0000">instcmd(shutdown.return, [NULL])
find_nut_info: unknown info type: shutdown.return</font></b>

instcmd(load.on.delay, [NULL])
find_nut_info: unknown info type: load.on.delay

instcmd: info element unavailable load.on.delay

instcmd(shutdown.reboot, [NULL])
Report[set]: (4 bytes) =&gt; 13 0a 00 00
upsdrv_cleanup...

</pre>
    (Full output is attached) What do i have to do to get the
    shutdown.return command recognised (without breaking the process for
    the Smart-UPS 1000!)<br>
    <br>
    <blockquote
      cite="mid:20110208095024.105567drsbqr5cy8@mail.de-korte.org"
      type="cite">
      <blockquote type="cite">Would you like me to provide any more
        output?
        <br>
      </blockquote>
      <br>
      It would be nice to know under what conditions you tested this
      command. We would like to see what happens both with and without
      mains present at the time of running this command. I both work as
      expected, we may have found a workable solution. I do have to
      check the report descriptors of some other APC devices, to check
      if we're not shooting ourselves in the foot by adding this (to see
      if there may be conflicts with other known devices).
      <br>
      <br>
    </blockquote>
    I have not tested this on the Smart-UPS 1000 since the new changes.
    That is still on the 'to do' list. I will let you know on the power
    tests.<br>
    <br>
    <br>
    In summary, I have commented out the two lines:<br>
    <br>
    <pre> /* { "load.on.delay", 0, 0, "UPS.Output.DelayBeforeStartup", NULL, DEFAULT_ONDELAY, HU_TYPE_CMD, NULL },*/

and 

/* { "load.on.delay", 0, 0, "UPS.APCGeneralCollection.APCDelayBeforeStartup", NULL, DEFAULT_ONDELAY, HU_TYPE_CMD, NULL },*/
</pre>
    <br>
    and added this line:<br>
    <br>
    <pre>{ "shutdown.return", 0, 0, "UPS.Output.APCDelayBeforeReboot", NULL, "1", HU_TYPE_CMD, NULL },


Question:

Should the old line:

{ "shutdown.reboot", 0, 0, "UPS.APCGeneralCollection.APCDelayBeforeReboot", NULL, "10", HU_TYPE_CMD, NULL },

remain, or should I comment it out too?


</pre>
  </body>
</html>