<div dir="ltr">[I got a bounce when sending this so trying again]<div><br></div><div><span style="font-size:12.8000001907349px">I think you should be able to alter the behavior with the 0xf2 and 0xf4 registers in the LDN4 block.</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Right now mainboard/google/panther/devicetree.cb has this:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>device pnp 2e.4 on # Environment Controller</div><div>        io 0x60 = 0x700</div><div>        io 0x62 = 0x710</div><div>        irq 0x70 = 0x09</div><div>        irq 0xf2 = 0x20   <<<<< PCR 1</div><div>        irq 0xf4 = 0x0  <<<<< PCR 2</div><div>        irq 0xfa = 0x12</div><div>end</div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">0xf2 bit 5 and 0xf4 bit 5,6 should have some effect on this behavior.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">F4<5> and F2<5>:</div><div style="font-size:12.8000001907349px">1 X : Always ON</div><div style="font-size:12.8000001907349px">0 1 : Memory</div><div style="font-size:12.8000001907349px">0 0 : Always OFF</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">And then F4<6> seems to be the bit that gates the PWRON pulse from the superio and lets the southbridge control the default behavior.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I think if you set "irq 0xf2 = 0x20" (in theory if the datasheet is right F2<5> doesn't matter for always on) and "irq 0xf4 = 0x20" and then do not call it8772f_ac_resume_southbridge() (which is setting 0xf4=0x60) it should let the superio control the behavior and always power on when AC Is attached.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">One other thing to try is to remove the RTC battery and let it reset the superio state after you have things configured as desired.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">-duncan</div><div style="font-size:12.8000001907349px"><br></div><div class="" style="font-size:12.8000001907349px"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 9, 2015 at 10:15 AM, Matt DeVillier <span dir="ltr"><<a href="mailto:matt.devillier@gmail.com" target="_blank">matt.devillier@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Duncan,<br>
    <br>
    took a look at the IT8772F data sheet (well, 8712, closest I could
    find: <a href="http://www.hardwaresecrets.com/datasheets/it8712f.pdf" target="_blank">http://www.hardwaresecrets.com/datasheets/it8712f.pdf</a> ) and it
    seems that there's no setting of the PCR1/2 registers that will
    force #PSON high when AC power is applied - it's always conditional
    on the previous system power state. <br>
    <br>
    I'd be happy for someone else to take a look and tell me I'm
    misreading though :)<br>
    <br>
    cheers,<br>
    Matt<div><div class="h5"><br>
    <br>
    <div>On 3/26/2015 5:21 PM, Matt DeVillier
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      On 3/26/2015 9:49 AM, Duncan Laurie wrote:<br>
      <blockquote type="cite">
        <div dir="ltr">
          <div class="gmail_extra">
            <div class="gmail_quote">On Wed, Mar 25, 2015 at 11:35 PM,
              Matt DeVillier <span dir="ltr"><<a href="mailto:matt.devillier@gmail.com" target="_blank"></a><a href="mailto:matt.devillier@gmail.com" target="_blank">matt.devillier@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings

                all!<br>
                <br>
                I was wondering if it's possible to have Panther (Asus
                ChromeBox - Haswell/Lynxpoint) power on when AC power
                connected regardless of the previous power state. 
                Currently, the box will power on if AC power is lost and
                the device was powered on, but not if powered off.  I
                have a use case where it would be convenient to be able
                to power on the boxes by toggling AC power (eg, the
                boxes are not within physical reach).  I modified the
                CMOS default setting for 'power_on_after_fail' to be
                enabled and verified its status with nvramtool.  I also
                tried modifying lpc.c/smihandler.c in the southbridge
                code to force MAINBOARD_POWER_ON (rather than
                MAINBOARD_POWER_KEEP) in all cases, to no avail.<br>
                <br>
                Am I approaching this from the wrong angle, or is it
                perhaps not possible with these boxes?<br>
                <br>
              </blockquote>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>This might be due to the SuperIO instead of the
                Southbridge.  Panther does call
                it8772f_ac_resume_southbridge() which *should* be making
                the southbridge the one responsible for the power
                behavior when AC is applied, but as a first test you
                could try removing that call to see if the default
                SuperIO behavior is closer to what you want.</div>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
      Hi Duncan, I tried removing the call as suggested, but it didn't
      change the behavior at all.  Any thoughts as to where to look
      next?<br>
      <br>
      thanks!<br>
      -Matt<br>
      <br>
      <blockquote type="cite">
        <div dir="ltr">
          <div class="gmail_extra">
            <div class="gmail_quote">
              <div><br>
              </div>
              <div>-duncan</div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>