<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[HyperForum — Start powertop at boot]]></title>
		<link>https://forums.hyperbola.info/viewtopic.php?id=864</link>
		<atom:link href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=864&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Start powertop at boot.]]></description>
		<lastBuildDate>Wed, 31 May 2023 10:06:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Start powertop at boot]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=6219#p6219</link>
			<description><![CDATA[<div class="quotebox"><cite>throgh wrote:</cite><blockquote><p>Guessing so far: You have adjusted the <strong>doas.conf</strong> to grant your local user the right executing the command without entering the password?</p></blockquote></div><p>Correct!!</p><div class="quotebox"><cite>throgh wrote:</cite><blockquote><p>This is not per definition &quot;wrong&quot;</p></blockquote></div><p>Thank you, for answering!<br />In the meantime, about the <strong>doas.conf</strong> subject, I found that inserting the full path: <strong>/usr/sbin/command</strong> and not the alias: <strong>command</strong> is a lot safer, so I am more confident using it now!</p><div class="quotebox"><cite>throgh wrote:</cite><blockquote><p>Also to note: <strong>powertop</strong> is Linux-exclusive and no BSD-support elsewhere.</p></blockquote></div><p>I haven&#039;t tried bsd in x200 so I do not know if the high pich noise exists. I guess I&#039;ll have to find it out when hyperbola bsd makes it to alpha <img src="https://forums.hyperbola.info/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (nparafe)]]></author>
			<pubDate>Wed, 31 May 2023 10:06:06 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=6219#p6219</guid>
		</item>
		<item>
			<title><![CDATA[Re: Start powertop at boot]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=6216#p6216</link>
			<description><![CDATA[<p>Guessing so far: You have adjusted the <strong>doas.conf</strong> to grant your local user the right executing the command without entering the password? This is not per definition &quot;wrong&quot;. If you dislike doing more modifications you can for example rebuild the package for providing only under /usr/bin instead of /usr/sbin and so granting you more access without editing the configuration. Also so far to see there is no binding for the init-system itself. It is more about he access-rights.</p><p>Also to note: <strong>powertop</strong> is Linux-exclusive and no BSD-support elsewhere.</p>]]></description>
			<author><![CDATA[null@example.com (throgh)]]></author>
			<pubDate>Tue, 30 May 2023 19:17:56 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=6216#p6216</guid>
		</item>
		<item>
			<title><![CDATA[Start powertop at boot]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=6214#p6214</link>
			<description><![CDATA[<p>Hi,<br />this is a long post, so please be patient <img src="https://forums.hyperbola.info/img/smilies/hmm.png" width="15" height="15" alt="hmm" />&nbsp; .</p><p>I am using a librebooted x200, so as described <a href="https://libreboot.at/docs/misc/#high-pitched-whining-noise-on-idle-in-parabola">here</a>, I need to install powertop and start it at boot. </p><p>As the instructions given in the site doesn&#039;t apply to an alternative init system like openrc, I needed to find another method.</p><p>Furthermore, I have to disable the use of powertop in two external usb devices, so the commands I need to run in boot time are:<br /></p><div class="codebox"><pre><code>/usr/sbin/powertop --auto-tune
echo &#039;on&#039; &gt; &#039;/sys/bus/usb/devices/1-2.2/power/control&#039;;
echo &#039;on&#039; &gt; &#039;/sys/bus/usb/devices/1-2.5/power/control&#039;;</code></pre></div><p>I tried to add them in cron like this:<br /></p><div class="codebox"><pre><code>@reboot /usr/sbin/powertop --auto-tune
@reboot echo on | doas /sys/bus/usb/devices/1-2.2/power/control
@reboot echo on | doas /sys/bus/usb/devices/1-2.5/power/control</code></pre></div><p>but although powertop starts, the 2nd and 3d command don&#039;t work. (Also I have tried more compinations with or without doas.)</p><p>What I ended up doing, and it worked, was to add the commands to <strong>~/.xinitrc</strong> and also adjusting the <strong>/etc/doas.conf</strong> accordingly. I don&#039;t like messing with <strong>doas.conf</strong> though, and maybe there is something new for me to learn, <span class="bbu">so my question is</span> if there is a better (more secure?) alternative for this.</p>]]></description>
			<author><![CDATA[null@example.com (nparafe)]]></author>
			<pubDate>Tue, 30 May 2023 16:10:01 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=6214#p6214</guid>
		</item>
	</channel>
</rss>
