<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Hibernate: 'echo reboot > /sys/power/disk' no longer has any effect"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=57882">57882</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Hibernate: 'echo reboot > /sys/power/disk' no longer has any effect
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bugzilla@alastairj.plus.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Before updating to systemd 196 a few days ago, it was possible to reboot
immediately after hibernating, by setting /sys/power/disk to 'reboot'. This is
useful if you want to, for example, boot up a different Linux distro.

However after upgrading to 196, the system powers down instead.


Carried out by doing the following -
    echo reboot > /sys/power/disk
    systemctl hibernate

Checking /sys/power/disk after doing the 'echo' shows as expected - 
    platform shutdown [reboot] suspend

Checking /sys/power/disk after powering back on and thawing - 
    [platform] shutdown reboot suspend


Journalctl | grep "Hibernation mode" used to produce a single line for the
hibernation -
Nov 30 17:42:17 <hostname> kernel: PM: Hibernation mode set to 'reboot'

Now it gives 2 lines -
Dec 04 11:44:30 <hostname> kernel: PM: Hibernation mode set to 'reboot'
Dec 04 11:44:30 <hostname> kernel: PM: Hibernation mode set to 'platform'


So it looks like the original contents of /sys/power/disk ('reboot') are being
overwritten ('platform') by the 'systemctl hibernate' command.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>