I use a subpatch that is very cpu-intensive, and the problem i have (as i already wrote in a previous post) is that it works fine for hours on certains days, and on some others it can start freaking out right away. This seems to be closely related to cpu load, since the load is always higher than 20 or 30% when it freaks out (the cpu load never gets much above 5 to 7 % with other patches). So someone suggested that it might be my laptop lowering the processors frequency depending on the heat, irrespective of the power needed by Pd at this particular moment. The fact that i don&#39;t hear anything unusual when cpu rule is set on Performance tends to confirm this. So what i want to try is program a switch that sets the rule on performance whenever the subpatch is on, and that sets it back to ondemand when it&#39;s off. <br>
Now maybe i could also reduce the general cpu load by using a lighter desktop. I&#39;m not if i&#39;d work.<br><br>Pierre<br><br><div class="gmail_quote">2010/8/16 Frank Barknecht <span dir="ltr">&lt;<a href="mailto:fbar@footils.org">fbar@footils.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Mon, Aug 16, 2010 at 01:11:53AM +0200, Pierre Massat wrote:<br>
&gt; I have two questions:<br>
&gt; Is there a way i could tell my laptop to use a certain cpu rule from within<br>
&gt; Pd? In a previous post I was advised to change the cpu rules so as to<br>
&gt; prevent the processor from lowering it&#39;s frequency. I am slightly afraid of<br>
&gt; frying my laptop if the cpu rule is set on Performance all the time, so i m<br>
&gt; wondering if i could let Pd choose depending on what subpatch is on. Is<br>
&gt; there a way to do this using [shell]?<br>
<br>
</div>Usually you have a tool like &quot;cpufreq-set&quot; available to use as a shell<br>
command to change the governors for CPU powersaving, check the man page<br>
for usage. You can use this with [shell] or write a quick pdlua object<br>
or whatever you prefer to use to execute external commands.<br>
&quot;cpufreq-info&quot; gives info about the current and available settings.<br>
<br>
I run the &quot;ondemand&quot; governor here and generally never touch<br>
it. The kernel scales frequencies up and down on its own and does so<br>
much faster, than I or Pd could do manually. But I guess, this depends a<br>
bit on your hardware.<br>
<br>
Ciao<br>
<font color="#888888">--<br>
Frank<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</font></blockquote></div><br>