<?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=2057&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Disabling Hibernation & Suspend]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2057</link>
		<description><![CDATA[The most recent posts in [SOLVED] Disabling Hibernation & Suspend.]]></description>
		<lastBuildDate>Mon, 14 May 2018 19:48:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9123#p9123</link>
			<description><![CDATA[<p>You may name the file the way you like. it has nothing to do with the function. I guess *.pkla is mandatory, the internal format too, the rest is to your disposition. I took&#160; your solution, split it up in two files called disable-suspend.pkla and disable-hibernate.pkla. Works fine. No more suspend/hibernate in the shutdown dialogue. Choose a name that makes some sense for you. </p><p>Good luck, rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Mon, 14 May 2018 19:48:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9123#p9123</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9066#p9066</link>
			<description><![CDATA[<p>Still working so marked as SOLVED.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sun, 13 May 2018 23:27:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9066#p9066</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9060#p9060</link>
			<description><![CDATA[<p>Thanks Rolfie for the suggestion to search askUbuntu. I found something there that seems to be working:</p><div class="codebox"><pre><code>[Disable suspend (upower)]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable suspend (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable suspend when others are logged in (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-multiple-sessions
ResultActive=no
ResultInactive=no
ResultAny=no</code></pre></div><p>I put this where you suggested (/etc/polkit-1/localauthority/50-local.d) with your file name (enable-shutdown-reboot.pkla), and it seems to be working, even without a reboot. I will continue to monitor this throughout the day (with multiple reboots) and report back.</p><p><strong>EDIT:</strong><br />Didn&#039;t notice at first that this only dropped suspend from the shut down menu. So I went back and made this file look like this and that also removed hibernate:</p><div class="codebox"><pre class="vscroll"><code>[Disable suspend (upower)]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable suspend (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable suspend when others are logged in (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-multiple-sessions
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable hibernate (upower)]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable hibernate (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable hibernate when others are logged in (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=no
ResultInactive=no
ResultAny=no</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sun, 13 May 2018 18:04:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9060#p9060</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9059#p9059</link>
			<description><![CDATA[<p>Sorry, guess I confused two settings: the pkla I used was for the lightdm panel, not for the entry in the system menu. It has no influence on the system menu. I got a specific problem with ASCII and the lighdm panel solved this way. Thanks for the hint to the wrong directory spec. </p><p>Nevertherless, a specific pkla file in the /etc/polkit-1/localauthority/50-local.d/ is most likely the right choice for attacking your problem. What I have learned from posts at askUbuntu.com, using this makes the configuration safe against updates of the general policies. </p><p>I would recommend to do a search in askUbuntu.com and maybe uniix.stackexchange.com, there are lots of threads about various ways how to modify settings for shutdown, reboot, hibernate and suspend. </p><p>Rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 13 May 2018 17:29:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9059#p9059</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9056#p9056</link>
			<description><![CDATA[<p>I don&#039;t have a policykit-1 folder in /etc . . . but I do have a PolicyKit and a polkit-1 folder.</p><p>Also I&#039;m not understanding something. In that other thread you stated you did not enable suspend or hibernate. That&#039;s what I want, so why would I use the opposite settings?</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sun, 13 May 2018 16:00:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9056#p9056</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9055#p9055</link>
			<description><![CDATA[<p>To disable hibernate and shutdown, use the opposite setting as listed in my .pkla file. Got this from askUbuntu.com, you should be able to find a more detailled explantion there.</p><p>Rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 13 May 2018 15:50:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9055#p9055</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9053#p9053</link>
			<description><![CDATA[<div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>have a look at: <a href="https://dev1galaxy.org/viewtopic.php?id=2023" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=2023</a>, I think it will give you some interesting insight.</p></div></blockquote></div><p>Read that thread and followed GNUser&#039;s advice in installing lightdm and libpolkit-backend-1-0-elogind and libpolkit-gobject-1-0-elogind. I&#039;m still getting suspend and hibernate in the shut down menu. Did I forget to do something else?</p><p>BTW, last night I removed hibernate &amp; uswsusp as MiyoLinux wrote. Then I looked up upower in Synaptic to see what would happen if I deleted that also. It would have removed the Mate desktop as well! That doesn&#039;t seem right. And I still had suspend and hibernate in the shut down menu.</p><p>Also, this reminded me of another thing. In the Mate control center, I don&#039;t have any link to Power Management. I downloaded the mate-power-manager-common app, but still no dice. I do remember after installing it some kind of error message popped up which unfortunately I didn&#039;t write down.</p><p>I have a feeling that all of this is somehow related. Anyone have any advice?</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sun, 13 May 2018 15:40:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9053#p9053</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9046#p9046</link>
			<description><![CDATA[<p>Hi Ron,</p><p>have a look at: <a href="https://dev1galaxy.org/viewtopic.php?id=2023" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=2023</a>, I think it will give you some interesting insight.</p><p>Rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 13 May 2018 13:17:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9046#p9046</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9034#p9034</link>
			<description><![CDATA[<p>I never use either of them, so I&#039;m not familiar with them very well. If memory serves me, I didn&#039;t include hibernate in the Jessie build, so that may have something to do with it.</p><p>This is just a guess, but you could try...</p><div class="codebox"><pre><code>sudo apt-get remove --purge hibernate</code></pre></div><p>...followed by...</p><div class="codebox"><pre><code>sudo apt autoremove</code></pre></div><p>...to remove uswsusp too.</p><p>Both hibernate and suspend rely on upower...but if you remove that, you&#039;ll probably lose your power manager too. Might wanna wait to see if someone else has better advice. <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Sun, 13 May 2018 03:46:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9034#p9034</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9032#p9032</link>
			<description><![CDATA[<p>So I went ahead and edited this file. I still get suspend in the shut down menu, and <em>sometimes</em> hibernate. So this &quot;fix&quot; isn&#039;t really a fix at all. Is there any other way?</p><p>P.S. I always got suspend, and <em>sometimes</em> hibernate even before I edited this file. Why would I sometimes get hibernate, and sometimes not? Also, when I was running Jessie, neither one appeared on the shut down menu.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sun, 13 May 2018 02:52:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9032#p9032</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Disabling Hibernation & Suspend]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9017#p9017</link>
			<description><![CDATA[<p>I searched online how to get rid of the Suspend and Hibernate options from the shut down menu, and found the following instructions:</p><div class="codebox"><pre><code>There are two sections in this file:
/usr/share/polkit-1/actions/org.freedesktop.upower.policy
the first for suspend and the second for hibernate.
Near the end of each section will be a line with:

     &lt;allow_active&gt;yes&lt;/allow_active&gt;

It should be changed from “yes” to “no” to disable hibernate/suspend.</code></pre></div><p>Can someone here verify if this is a correct way to do this? Or, if there is a more correct way to do it?</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sat, 12 May 2018 03:26:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9017#p9017</guid>
		</item>
	</channel>
</rss>
