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'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's off.
Now maybe i could also reduce the general cpu load by using a lighter desktop. I'm not if i'd work.

Pierre

2010/8/16 Frank Barknecht <fbar@footils.org>
On Mon, Aug 16, 2010 at 01:11:53AM +0200, Pierre Massat wrote:
> I have two questions:
> Is there a way i could tell my laptop to use a certain cpu rule from within
> Pd? In a previous post I was advised to change the cpu rules so as to
> prevent the processor from lowering it's frequency. I am slightly afraid of
> frying my laptop if the cpu rule is set on Performance all the time, so i m
> wondering if i could let Pd choose depending on what subpatch is on. Is
> there a way to do this using [shell]?

Usually you have a tool like "cpufreq-set" available to use as a shell
command to change the governors for CPU powersaving, check the man page
for usage. You can use this with [shell] or write a quick pdlua object
or whatever you prefer to use to execute external commands.
"cpufreq-info" gives info about the current and available settings.

I run the "ondemand" governor here and generally never touch
it. The kernel scales frequencies up and down on its own and does so
much faster, than I or Pd could do manually. But I guess, this depends a
bit on your hardware.

Ciao
--
Frank

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list