<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — sleep mode after a few minutes of inactivity]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=1123&amp;type=atom" />
	<updated>2025-01-23T16:31:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=1123</id>
		<entry>
			<title type="html"><![CDATA[Re: sleep mode after a few minutes of inactivity]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8543#p8543" />
			<content type="html"><![CDATA[<p>Xidle has a problem when the machine wakes up, after a few seconds it goes back to sleep mode, so I found this solution with Xautolock.</p><div class="codebox"><pre><code>xidle -program &quot;/usr/bin/xtrlock&quot; -timeout 300 &amp;
xautolock -time 30 -locker &quot;/usr/bin/doas zzz&quot; -detectsleep &amp;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gnu]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=717</uri>
			</author>
			<updated>2025-01-23T16:31:11Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8543#p8543</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: sleep mode after a few minutes of inactivity]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8542#p8542" />
			<content type="html"><![CDATA[<p>After several attempts I managed to get it working.</p><div class="codebox"><pre><code>xidle -program &quot;/usr/bin/doas zzz&quot; -timeout 7200 &amp;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gnu]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=717</uri>
			</author>
			<updated>2025-01-22T19:22:50Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8542#p8542</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: sleep mode after a few minutes of inactivity]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8541#p8541" />
			<content type="html"><![CDATA[<p>Thank you very much, I will try it</p>]]></content>
			<author>
				<name><![CDATA[gnu]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=717</uri>
			</author>
			<updated>2025-01-22T16:37:38Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8541#p8541</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: sleep mode after a few minutes of inactivity]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8539#p8539" />
			<content type="html"><![CDATA[<p>You can do it with xidle, doas and zzz </p><p> </p><div class="codebox"><pre><code> 
xidle -timeout 120 -program &#039;doas zzz&#039; &amp; </code></pre></div><p> </p><p> For easyness, you can place that at ~/.xinitrc, above the&nbsp; last line you would put to start the window manager, such as &#039;exec icewm-session&#039;:&nbsp; </p><div class="codebox"><pre><code> 

xidle -timeout 120 -program &#039;doas zzz&#039; &amp; 

exec icewm-session
 </code></pre></div><p>&nbsp; </p><p>You need to add yourself to the &#039;power&#039; group.</p>]]></content>
			<author>
				<name><![CDATA[anthk]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=568</uri>
			</author>
			<updated>2025-01-22T14:42:28Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8539#p8539</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[sleep mode after a few minutes of inactivity]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8538#p8538" />
			<content type="html"><![CDATA[<p>Is there a simple way, like a bash script or something similar, to make the computer go into sleep mode after a few minutes of inactivity?</p>]]></content>
			<author>
				<name><![CDATA[gnu]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=717</uri>
			</author>
			<updated>2025-01-22T13:47:27Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8538#p8538</id>
		</entry>
</feed>
