<?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=5973&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How to Hibernate and Suspend]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5973</link>
		<description><![CDATA[The most recent posts in How to Hibernate and Suspend.]]></description>
		<lastBuildDate>Fri, 08 Sep 2023 17:30:41 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[How to Hibernate and Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44170#p44170</link>
			<description><![CDATA[<p>The following information was taken mostly from the following link:</p><p><a href="https://askubuntu.com/questions/848698/wake-up-from-suspend-using-wireless-usb-keyboard-or-mouse-for-any-linux-distro" rel="nofollow">https://askubuntu.com/questions/848698/ … nux-distro</a></p><p>Situation:&#160; Computers have this thing called power saving using Hibernation and Suspend.&#160; I had never used it because, well, I never configured it correctly - but I really did not try very hard.&#160; For a lot of years, I always left the computer running all day and would sometimes shut it down at night.&#160; My local utility raised the electricity rates recently, so I thought I would try a little harder.</p><p>Result:&#160; I have Hibernation and Suspend working flawless and upon waking up the system by either pressing the power button or typing a key on the keyboard or wiggling the mouse the system works perfectly.&#160; Even if I save the system state with virtual machines running, they too will work perfectly.</p><p>How to configure for Hibernate/Suspend, taken from other devuan sources - mainly from dev1galaxy.org:<br />My system started as chimaera and was upgraded to daedalus.<br />- Create a swap partition as least as large as your current amount or RAM.<br />- Configure your system to use this partition as your swap area.<br />- at terminal run &quot;blkid&quot; to get the uuid info for this partition<br />- Add this swap partition to fstab<br />&#160; &#160; </p><div class="quotebox"><blockquote><div><p>UUID=12345-your-uuid none&#160; &#160; swap&#160; &#160; sw&#160; &#160; 0&#160; &#160; 0</p></div></blockquote></div><p>- Add entry to /etc/initramfs-tools/conf.d/resume<br />&#160; &#160; </p><div class="quotebox"><blockquote><div><p>RESUME=UUID=12345-your-uuid</p></div></blockquote></div><p>- Update initramfs with:<br />&#160; &#160; </p><div class="quotebox"><blockquote><div><p>update-initramfs -u</p></div></blockquote></div><p>-&#160; &#160; reboot</p><p>This should get the Hibernation and Suspend working from the xfce menu.&#160; In my case, I had a problem getting the system to wake up by pressing a keyboard key or moving the mouse.&#160; Pressing the system power button worked fine.&#160; I then found the link above and ran two commands to get some system information, and then made an entry to the /etc/rc.local file.</p><p>Command #1, as root:&#160; <br />&#160; &#160; </p><div class="quotebox"><blockquote><div><p>grep . /sys/bus/usb/devices/*/product</p></div></blockquote></div><p>This will produce output that looks like this, as it will list your usb devices.&#160; My usb keyboard and mouse were the bottom two:</p><div class="quotebox"><blockquote><div><p>/sys/bus/usb/devices/1-3/product:ASM107x<br />/sys/bus/usb/devices/1-4/product:HD Pro Webcam C920<br />/sys/bus/usb/devices/1-5/product:USB Receiver<br />/sys/bus/usb/devices/1-6/product:USB Receiver</p></div></blockquote></div><p>Command #2, as root:<br />&#160; &#160; </p><div class="quotebox"><blockquote><div><p>grep . /sys/bus/usb/devices/*/power/wakeup</p></div></blockquote></div><p>This will list the devices and whether they will be allowed to wake the system:<br /><em>Note:</em> all of mine were disabled, which is why they were not waking up the system.</p><div class="quotebox"><blockquote><div><p>/sys/bus/usb/devices/1-3/power/wakeup:disabled<br />/sys/bus/usb/devices/1-5/power/wakeup:disabled<br />/sys/bus/usb/devices/1-6/power/wakeup:disabled</p></div></blockquote></div><p>In my case, I wanted my usb keyboard and usb mouse to wake the system, so I added this to my /etc/rc.local file:<br />echo enabled &gt; /sys/bus/usb/devices/1-5/power/wakeup<br />echo enabled &gt; /sys/bus/usb/devices/1-6/power/wakeup</p><p><em>Note:</em>&#160; <br />In daedalus I had to add &quot;sleep 30&quot; to the&#160; /etc/rc.local&#160; to get it to work:</p><p>So the related contents of the rc.local file is:</p><div class="quotebox"><blockquote><div><p>sleep 30<br />echo enabled &gt; /sys/bus/usb/devices/1-5/power/wakeup<br />echo enabled &gt; /sys/bus/usb/devices/1-6/power/wakeup</p></div></blockquote></div><p>Now, when I step away from the system and I don&#039;t know when I will return, I simply Menu &gt; Logout &gt; Suspend.&#160; When I shut it down at night, I Menu &gt; Logout &gt; Hibernate.&#160; These could be shortened with a script added to the desktop.</p><p>This works flawlessly now and has for over a year.&#160; Hope this helps someone.</p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Fri, 08 Sep 2023 17:30:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44170#p44170</guid>
		</item>
	</channel>
</rss>
