<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>automatic suspend Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/automatic-suspend/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 24 Jul 2018 18:22:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Schedule Shutdown on Linux</title>
		<link>https://www.osradar.com/schedule-shutdown-on-linux/</link>
					<comments>https://www.osradar.com/schedule-shutdown-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Tue, 24 Jul 2018 18:22:52 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[automatic suspend]]></category>
		<category><![CDATA[schedule shutdown]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[suspend schedule]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=5010</guid>

					<description><![CDATA[<p>Scheduling is one of the most interesting things you can do for increasing your productivity on lots of things. This technique is also quite useful in certain situations when you don’t want to manage things with your hands. For example, you can easily schedule SHUTDOWN on your system without many complexions. Yes, it’s possible to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/schedule-shutdown-on-linux/">Schedule Shutdown on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Scheduling is one of the most interesting things you can do for increasing your productivity on lots of things. This technique is also quite useful in certain situations when you don’t want to manage things with your hands. For example, you can easily schedule SHUTDOWN on your system without many complexions. Yes, it’s possible to automate the shutdown of your system and also, wake up system!</p>
<p>Let’s take a look on automating the entire shutdown process.</p>
<h1>Automatic shutdown</h1>
<p>As the name suggests, every Linux system comes up with the “shutdown” tool. The tool is generally for shutting down the system with the power of performing a number of additional tasks.</p>
<p>For example, you can easily configure the tool for commencing shutdown at a specific time of the day.</p>
<pre class="">sudo -s
OR
su -

shutdown -P now</pre>
<p>This command tells the computer to shut it down just now. Alternatively, tell your computer to shut itself down at exactly 8:00 PM (20:00).</p>
<pre class="">shutdown -P 20:00</pre>
<p>Note that the time is in 24-hr format. That’s the problem with the “shutdown” tool. Don’t worry; you can easily use this <a href="http://www.onlineconversion.com/date_12-24_hour.htm">awesome online converter</a> for converting 12-hr into 24-hr.</p>
<p><img loading="lazy" class="size-full wp-image-5012 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/07/time-to-24-hr-converter.png" alt="" width="1152" height="413" srcset="https://www.osradar.com/wp-content/uploads/2018/07/time-to-24-hr-converter.png 1152w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-24-hr-converter-300x108.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-24-hr-converter-768x275.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-24-hr-converter-1024x367.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-24-hr-converter-696x250.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-24-hr-converter-1068x383.png 1068w" sizes="(max-width: 1152px) 100vw, 1152px" /></p>
<p>If you want to cancel the scheduled shutdown, run this command:</p>
<pre class="">shutdown -c</pre>
<h1>Rebooting with “shutdown”</h1>
<p>As I said earlier, “shutdown” tool, despite its name, is capable of doing more than that. Run this command for rebooting your computer at 5:30 PM (17:30).</p>
<pre class="">shutdown -r 17:30</pre>
<p>If you wish to cancel, run the command as usual:</p>
<pre class="">shutdown -c</pre>
<h1>Scheduling wakeups</h1>
<p>There is another tool “rtcwake”. This tool suspends the system and then, wakes it up at a specific time. For acquiring the entire cheatsheet of “rtcwake”, run the following command:</p>
<pre class="">rtcwake --help &gt;&gt; ~/rtcwake-help.txt</pre>
<p>A popular method of suspending the system is suspending it to RAM. Suspending to RAM offers greater power saving and faster performance on waking up. Run the following command:</p>
<pre class="">su -
OR
sudo -s

rtcwake -m mem -s 28800
</pre>
<p>Here, you will notice that we’ve used the time in seconds. It’s the best way to make precise calculations despite having a little usage difficulty. You can take the help of this <a href="https://www.tools4noobs.com/online_tools/hh_mm_ss_to_seconds/">tool for converting time to seconds</a>.</p>
<p><img loading="lazy" class="size-full wp-image-5013 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/07/time-to-second-converter.png" alt="" width="1150" height="342" srcset="https://www.osradar.com/wp-content/uploads/2018/07/time-to-second-converter.png 1150w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-second-converter-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-second-converter-768x228.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-second-converter-1024x305.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-second-converter-696x207.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/time-to-second-converter-1068x318.png 1068w" sizes="(max-width: 1150px) 100vw, 1150px" /></p>
<p>If you want to suspend your system to disk, run this command:</p>
<pre class="">rtcwake -m disk -s 43200</pre>
<p>There are other things that you can do right from the same command. For example, if you want to start Firefox right after the computer wakes up, the command should look like this:</p>
<pre class="">sudo rtcwake -m disk -s 43200 &amp;&amp; firefox</pre>
<p>Use the “&amp;&amp;” (without quotes) to tell Bash shell to perform “command1 AND command2 AND …”. This command line will start LibreOffice, GIMP, and Firefox one after another.</p>
<pre class="">sudo rtcwake -m disk -s 43200 &amp;&amp; libreoffice &amp;&amp; gimp &amp;&amp; firefox</pre>
<h1>Don’t suspend right away!</h1>
<p>Generally, whenever you use the command with “rtcwake”, it will immediately suspend the system for waking up after the specified time period. However, you may not want to suspend when you run the command. In that case, use this command line:</p>
<pre class="">rtcwake -m no -s 43200</pre>
<p>It’ll tell “rtcwake” only to wake up the computer after 12 hours (43200 seconds). You have to manually suspend your system before the time so that the computer can do the job properly.</p>
<p>Enjoy!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/schedule-shutdown-on-linux/">Schedule Shutdown on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/schedule-shutdown-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
