On Sat, May 21, 2011 at 5:05 AM, Ralf <span dir="ltr"><<a href="mailto:ralf.mardorf@alice-dsl.net">ralf.mardorf@alice-dsl.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi :)<br>
<br>
today I installed Ardour3, perhaps Paul Davis recommendation is more<br>
important than mine [1].<br>
<br>
My Kernel is set to use 'performance' as default setting for the CPU<br>
frequency scaling [2]. If I start a GNOME session it's set to "ondemand"<br>
automatically.<br>
<br>
I'm starting sessions by a script, unfortunately some Ubuntu installs<br>
need a "sudo" before "cpufreq-selector -g performance", while others are<br>
not fine with the "sudo", some other installs, e.g. Suse do need a<br>
different command, ok, Suse keeps "performance" ;). Older Ubuntu<br>
installs needs a SUID bit set ;).<br>
<br>
So I need to write a script checking for the distro + distro version or<br>
I need to set it by the panel each time after starting a GNOME session,<br>
or I need to add aliases to the shells. At the moment I'm doing it by<br>
the panel.<br>
<br>
The right way should be, that Ubuntu Studio GNOME does use the kernel's<br>
default. This needs a fix. The DE shouldn't try to be smarter than the<br>
user!<br>
<br>
Btw. using "ondemand" might safe 1W on modern 40/50W CPUs. This isn't<br>
much pollution projected onto Linux audio users. I'm using "ondemand"<br>
when not making music, but the default should be "peformance". Note that<br>
some people are working on a Jack frequency scaling!<br>
<br>
Cheers!<br>
<br>
Ralf<br>
<br>
<br>
<br>
<br>
[1]<br>
$ ./install.sh<br>
<br>
Welcome to the Ardour installer<br>
<br>
Sat May 21 10:32:35 CEST 2011<br>
Architecture is x86<br>
[snip]<br>
<br>
System failed the quick sanity check... Looking for the cause<br>
<br>
!!! WARNING !!! - Your system seems to use frequency scaling.<br>
This can have a serious impact on audio latency. You have two choices:<br>
(1) turn it off, e.g. by chosing the 'performance' governor.<br>
(2) Use the HPET clocksource by passing "-c h" to JACK<br>
(this second option only works on relatively recent computers)<br>
<br>
Press ENTER to continue:^C<br>
$ ./install.sh<br>
<br>
Welcome to the Ardour installer<br>
<br>
Sat May 21 10:36:01 CEST 2011<br>
Architecture is x86<br>
Unpacking bundle for x86<br>
<br>
Checking system libs to see if they are compatible with Ardour.<br>
<br>
<br>
Found existing Ardour installation.<br>
Do you want to run the<br>
uninstaller /opt/<a href="http://Ardour-3.0alpha3_9210-dbg.uninstall.sh" target="_blank">Ardour-3.0alpha3_9210-dbg.uninstall.sh</a> ? [y/n]: n<br>
<br>
Installing Ardour 3.0alpha3 built from 9210 in /opt<br>
<br>
mkdir: cannot create directory `/opt/Ardour-3.0alpha3_9210-dbg': File<br>
exists<br>
Adding Ardour to the applications menu<br>
<br>
Creating a desktop link for Ardour<br>
<br>
Copying uninstall script to /opt<br>
<br>
<br>
Checking to see if Jack is installed<br>
<br>
Jack OK<br>
<br>
Cleaning up<br>
<br>
!!! Install Complete !!!<br>
<br>
Press ENTER to exit installer:<br>
<br>
[2]<br>
$ cat config-2.6.33.9-rt31 | grep CONFIG_CPU_FREQ_DEFAULT_GOV<br>
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y<br>
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set<br>
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set<br>
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set<br>
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set<br></blockquote><div><br></div><div>hey Ralph,</div><div><br></div><div>the way im reading this email, you are experiencing ubuntustudio using the "on demand" CPU scaling setting at startup, and you want it to be "performance" by default. that is a very valid point. i encountered this same issue, and i googled around a bit, found an easy fix, and now, when i start my production machine, it starts in "performance" mode. the issue is this... not all ubuntustudio users are doing audio production, and not all ubuntustudio users doing audio production are using JACK. also, main ubuntu uses the "on demand" setting by default. this is a bug report where CPU scaling was defaulting to "performance" instead of "on demand" <a href="https://bugs.launchpad.net/ubuntu/+source/cpufreqd/+bug/344252">https://bugs.launchpad.net/ubuntu/+source/cpufreqd/+bug/344252</a> . i would say realistically, thats something that will not be changed, however that is something easy for you to change on your machine, and i can help you with that if needed. now would be a great time to address issues like this though. since we are switching to XFCE, and im assuming most of the power management tools will be changing. we could potentially put something in the ubuntustudio controls that checks for CPU scaling and offers to set it differently. this would be something you would need to personally be proactive about though. this is an example of a bug report marked "wishlist" <a href="https://bugs.launchpad.net/ubuntustudio/+bug/695892">https://bugs.launchpad.net/ubuntustudio/+bug/695892</a> . you could start with that, and email the -dev list about the possibility of including some kind of option in ubuntustudio-controls... or just set the CPU scaling default on your machine and let it go... im sure paul davis has strong opinions about ubuntustudio and our default settings. with much due respect for paul davis, i totally agree, and i think a lot of us would like to have an ubuntustudio that is tailored for running JACK and ardour out-of-the-box. however, this is not what *every* user will want, and arguably, not what the majority would want. i think the agrument is, if you are a power user using JACK, you will know how to, and know that you need to tweak these things. someone coming to ubuntustudio for arguably lighter needs might not care to find out how to change the CPU governor settings. if you strongly disagree with that, then this would be a good point for your upcoming wishlist bug report.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
<br>
--<br>
Ubuntu-Studio-users mailing list<br>
<a href="mailto:Ubuntu-Studio-users@lists.ubuntu.com">Ubuntu-Studio-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>MH<div><br><a href="http://opensourcemusician.libsyn.com/" target="_blank">http://opensourcemusician.libsyn.com/</a></div><div><a href="http://wnclug.ourproject.org/" target="_blank">http://wnclug.ourproject.org/</a></div>
<br>