<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_Disable_Suspend</id>
	<title>Ubuntu Disable Suspend - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_Disable_Suspend"/>
	<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Disable_Suspend&amp;action=history"/>
	<updated>2026-04-30T02:30:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Disable_Suspend&amp;diff=124&amp;oldid=prev</id>
		<title>Noob: Created page with &quot;Tested on Ubuntu-mate 20.04&lt;br \&gt; Tested on Ubuntu-server 20.04&lt;br \&gt; &lt;br \&gt; installed ubuntu server 20.04 on giga home server and found it would suspend every 30 minutes if i was not logged in with ssh. does not suspend on virtualbox just on real hardware when xorg is installed.  disable suspend:&lt;br \&gt; &lt;code&gt;sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target&lt;/code&gt;  and if you want to re-enable suspend:&lt;br \&gt; &lt;code&gt;sudo systemctl unmask...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Disable_Suspend&amp;diff=124&amp;oldid=prev"/>
		<updated>2023-03-05T17:21:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Tested on Ubuntu-mate 20.04&amp;lt;br \&amp;gt; Tested on Ubuntu-server 20.04&amp;lt;br \&amp;gt; &amp;lt;br \&amp;gt; installed ubuntu server 20.04 on giga home server and found it would suspend every 30 minutes if i was not logged in with ssh. does not suspend on virtualbox just on real hardware when xorg is installed.  disable suspend:&amp;lt;br \&amp;gt; &amp;lt;code&amp;gt;sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target&amp;lt;/code&amp;gt;  and if you want to re-enable suspend:&amp;lt;br \&amp;gt; &amp;lt;code&amp;gt;sudo systemctl unmask...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Tested on Ubuntu-mate 20.04&amp;lt;br \&amp;gt;&lt;br /&gt;
Tested on Ubuntu-server 20.04&amp;lt;br \&amp;gt;&lt;br /&gt;
&amp;lt;br \&amp;gt;&lt;br /&gt;
installed ubuntu server 20.04 on giga home server and found it would suspend every 30 minutes if i was not logged in with ssh. does not suspend on virtualbox just on real hardware when xorg is installed.&lt;br /&gt;
&lt;br /&gt;
disable suspend:&amp;lt;br \&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and if you want to re-enable suspend:&amp;lt;br \&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for more on the mask and unmask check &amp;#039;man systemctl&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mask UNIT...&lt;br /&gt;
           Mask one or more units, as specified on the command line. This will link these unit files to /dev/null, making it impossible to start them. This is a stronger version of disable, since it&lt;br /&gt;
           prohibits all kinds of activation of the unit, including enablement and manual activation. Use this option with care. This honors the --runtime option to only mask temporarily until the next&lt;br /&gt;
           reboot of the system. The --now option may be used to ensure that the units are also stopped. This command expects valid unit names only, it does not accept unit file paths.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
unmask UNIT...&lt;br /&gt;
           Unmask one or more unit files, as specified on the command line. This will undo the effect of mask. This command expects valid unit names only, it does not accept unit file paths.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Noob</name></author>
	</entry>
</feed>