<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3456&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / how to get hibernation?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3456</link>
		<description><![CDATA[The most recent posts in how to get hibernation?.]]></description>
		<lastBuildDate>Wed, 16 Jun 2021 17:32:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30275#p30275</link>
			<description><![CDATA[<p>i have swap 23G / 16G ram. Once i click &quot;hibernate&quot; sometimes it works sometimes not. it has a very strange behaviour.<br />Sometimes its a problem to resume. sometimes the laptop is not power off - the power led is on.<br />when i hard reset the laptop it boots new.</p>]]></description>
			<author><![CDATA[dummy@example.com (DevuanUser345)]]></author>
			<pubDate>Wed, 16 Jun 2021 17:32:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30275#p30275</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25225#p25225</link>
			<description><![CDATA[<p>it functions however with </p><div class="quotebox"><blockquote><div><p>sudo hibernate --force</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Mon, 12 Oct 2020 10:31:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25225#p25225</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25224#p25224</link>
			<description><![CDATA[<p>on another laptop i have also problem with hibernation. it is running on devuan beowulf</p><div class="codebox"><pre><code>sudo hibernate
hibernate:Warning: Tuxonice binary signature file not found.
Some modules failed to unload: nvidia
hibernate: Aborting suspend due to errors in ModulesUnloadBlacklist (use --force to override).</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Mon, 12 Oct 2020 07:51:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25224#p25224</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25147#p25147</link>
			<description><![CDATA[<p>For hibernation you need the swap to equal the available RAM. It is possible to hibernate with less swap than RAM but only if all the memory isn&#039;t in use.</p><p>IIRC the Debian installer assigns the swap space to be equal to the available RAM if automated partitioning is used but I always pre-partition so I might be wrong.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 07 Oct 2020 19:42:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25147#p25147</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25131#p25131</link>
			<description><![CDATA[<p>You are probably right.</p><p>I can&#039;t find what the default is for the Devuan/Debian Installer, but you are right that the general recommendation is that you should have more swap than memory, and mostly the recommendation is x2.</p><p>This doesn&#039;t explain why yours has much less.</p><p>I&#039;ve never used automatic partitioning, usually because I&#039;m configuring something more complicated like LVM or RAID or have other live OS already on other partitions and don&#039;t want to lose them.</p><p>My mail sever has no swap (well it never hibernates and I&#039;d rather it kill processes than try and use swap).</p><p>My desktop machine has lots of disks, from various generations of installs, most have swap partitions and I actually use a different partition for hibernation, which is x2 RAM, than the primary one, which is about 1.5 x RAM, that I use for swap as such.</p>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Tue, 06 Oct 2020 22:21:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25131#p25131</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25130#p25130</link>
			<description><![CDATA[<div class="quotebox"><cite>Marjorie wrote:</cite><blockquote><div><div class="quotebox"><cite>kapqa wrote:</cite><blockquote><div><p>well, i have just let devuan installer do automatic partitioning, there must be an error then -<br />surely i have forgot to double check the partitioning process.</p></div></blockquote></div><p>I doubt if the automatic configuration of the partitioning would have allowed for your wish to use swap for hibernation.</p></div></blockquote></div><p>sorry, but i don&#039;t understand,<br />i was under the impression that the ratio on debian/ubuntu for automatic partitioning &gt; swapfile size is around 1:1.5 (memorysize:swapfile) .. it should hence be around 4.5 GB with 3GB RAM.</p>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 06 Oct 2020 21:42:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25130#p25130</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25119#p25119</link>
			<description><![CDATA[<div class="quotebox"><cite>kapqa wrote:</cite><blockquote><div><p>well, i have just let devuan installer do automatic partitioning, there must be an error then -<br />surely i have forgot to double check the partitioning process.</p></div></blockquote></div><p>I doubt if the automatic configuration of the partitioning would have allowed for your wish to use swap for hibernation.</p>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Tue, 06 Oct 2020 17:15:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25119#p25119</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25118#p25118</link>
			<description><![CDATA[<p>well, i have just let devuan installer do automatic partitioning, there must be an error then -<br />surely i have forgot to double check the partitioning process.</p>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 06 Oct 2020 16:22:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25118#p25118</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25114#p25114</link>
			<description><![CDATA[<div class="quotebox"><cite>kapqa wrote:</cite><blockquote><div><div class="codebox"><pre><code>root@devuan:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          2.8Gi       491Mi       1.8Gi        85Mi       601Mi       2.1Gi
Swap:         255Mi          0B       255Mi</code></pre></div></div></blockquote></div><p>Whatever the other issues , this looks problematic for successful hibernation since the Mem in use (491Mi), which is what needs to be written to disk on hibernation, is nearly twice as large as Swap you have (255Mi, all free).<br />Usually you would want to have as much swap as memory.</p>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Tue, 06 Oct 2020 09:53:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25114#p25114</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25111#p25111</link>
			<description><![CDATA[<p>no, it was done with &quot;sudo&quot;</p><div class="quotebox"><blockquote><div><p>sudo&#160; echo disk &gt; /sys/power/state</p><p>echo: write error: No space left on device</p></div></blockquote></div><p>when evoked with root it gives</p><div class="codebox"><pre><code> echo disk &gt; /sys/power/state
-bash: echo: write error: No such device</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 06 Oct 2020 01:39:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25111#p25111</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25110#p25110</link>
			<description><![CDATA[<p>sorry, but i don§t remember if root or sudo, but i think was after &quot;su -&quot;</p><div class="codebox"><pre><code>cat /sys/power/state /proc/swaps
freeze mem disk
Filename				Type		Size	Used	Priority
/swapfile                               file		262140	0	-2
root@devuan:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          2.8Gi       491Mi       1.8Gi        85Mi       601Mi       2.1Gi
Swap:         255Mi          0B       255Mi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Tue, 06 Oct 2020 01:35:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25110#p25110</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25100#p25100</link>
			<description><![CDATA[<p>Hmm, can we see</p><div class="codebox"><pre><code>cat /sys/power/state /proc/swaps
free -h</code></pre></div><p>You did run my suggested command from a root prompt, right?</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 04 Oct 2020 20:02:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25100#p25100</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25099#p25099</link>
			<description><![CDATA[<p>hello ,</p><p>i am also having problems with hibernate on lenovo t400 and devuan beowulf. if remember correctly it functioned on ascii.</p><p>suspend works (although not when closing laptop lid, but when evoked manually through dedicated keyboard combination or when typing &quot;sudo pm-suspend&quot;).</p><p>hibernation however, fails.</p><div class="codebox"><pre><code>sudo hibernate</code></pre></div><p>does not go full hibernation (does not count the per-cents of progress) and from black screen resumes to active state with message</p><div class="codebox"><pre><code>hibernate:Warning: Tuxonice binary signature file not found.</code></pre></div><div class="codebox"><pre><code>sudo pm-hibernate</code></pre></div><p>also seems to go hibernation mode, but then resumes to normal with no terminal output whatsoever.</p><p>EDIT: tried also other suggestion</p><div class="codebox"><pre><code> echo disk &gt; /sys/power/state
-bash: echo: write error: No space left on device</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (kapqa)]]></author>
			<pubDate>Sun, 04 Oct 2020 19:23:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25099#p25099</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25089#p25089</link>
			<description><![CDATA[<p>For already built-in automagic options...</p><div class="codebox"><pre><code>man loginctl</code></pre></div><p>...or...</p><div class="codebox"><pre><code>loginctl --help</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Sat, 03 Oct 2020 18:36:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25089#p25089</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to get hibernation?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25086#p25086</link>
			<description><![CDATA[<div class="quotebox"><cite>scjorge wrote:</cite><blockquote><div><p>I kind of vaguely remember trying to install the uswsusp/uspsusp package but not being able to find it for the Droid4... this seems to be connected to a hibernation-module in the kernel, right? or is it just about the devices repositories?</p><p>I don&#039;t know anything about compiling kernels (yet!), but, if I do learn, will it be possible to compile it for that device with the &quot;hibernation-module/functionality&quot; activated? or is it another module? another technique?</p><p>how can I get hibernation? i love hibernation <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></div></blockquote></div><p>You can achieve hibernation either through kernel mode, which requires the appropriate kernel module, or in userspace, using uswsusp or tuxonice.</p><p>If your device <a href="https://leste.maemo.org/Motorola_Droid_4" rel="nofollow">https://leste.maemo.org/Motorola_Droid_4</a> lacks both kernel support (available kernels don&#039;t have the appropriate kernel module) and you don&#039;t have the package uswsusp in your sources then I think that means that you would have to compile one or the other to get hibernation (though even then it could be possible that your hardware lacks the appropriate hooks to make it work).</p><p>NB. Just as an update on my earlier posts I <em>do</em> now have hibernate running using kernel mode on Beowulf on my (pretty ordinary) AMD64 hardware, though I also still use pm-hibernate to call it as I have a few things I want to invoke in the pre-sleep and post-wake scripts.</p><p>You also need to have a resume=UUID=your.swap.drive.UUID (or similar) command in the linux vmlinux line in your grub menuentry. This tells the kernel where to store/restore your memory image.</p>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Sat, 03 Oct 2020 16:05:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25086#p25086</guid>
		</item>
	</channel>
</rss>
