<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BDW] Stress. Platform is not able to recover successfully from S4 after 23 iterations"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94673#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BDW] Stress. Platform is not able to recover successfully from S4 after 23 iterations"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94673">bug 94673</a>
              from <span class="vcard"><a class="email" href="mailto:elio.martinez.monroy@intel.com" title="Elio <elio.martinez.monroy@intel.com>"> <span class="fn">Elio</span></a>
</span></b>
        <pre>S4 is called using the following instructions :

#!/bin/bash


cat /sys/power/state | grep disk
if [ $? -eq 0 ]; then
    date
    sleep 10
    # Clear old alarm
    echo '[CMD]echo 0 > /sys/class/rtc/rtc0/wakealarm'
    echo 0 > /sys/class/rtc/rtc0/wakealarm
        RC=$?
        if [ ${RC} -ne 0 ]; then
                check_rc "[CMD]echo 0 > /sys/class/rtc/rtc0/wakealarm" ${RC}
                return 1
        fi

    echo '[CMD]echo +40 > /sys/class/rtc/rtc0/wakealarm'
    echo +40 > /sys/class/rtc/rtc0/wakealarm
        RC=$?
        if [ ${RC} -ne 0 ]; then
                check_rc "[CMD]echo 40 > /sys/class/rtc/rtc0/wakealarm" ${RC}
                return 1
        fi

#    to change to /sys/class/rtc/rtcN/wakeup in future kernel
    dmesg -c >> dmesg
    echo '[CMD]echo disk > /sys/power/state    #S4'
    echo disk > /sys/power/state    #S4
    dmesg -c >> dmesg
else
    echo '[NOTE][CMD] S4 is not supported'
fi

echo "[CMD]suspend_resume end"</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>