Harrison Mixbus Forum

Full Version: CPU Governor set to power save not performance Ubuntu studio 22.04
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi All
If I forget to change this after boot from power save MB has a hissy fit.

Is there a way to set performance as default? Looking at some old posts lots of editing config files
places I would rather not ry if possible.

I'm sure I could set this once in 20.04 and it stayed on performance.

Any ideas?
Cheers All
(04-30-2022, 02:34 PM)wavesound Wrote: [ -> ]Hi All
If I forget to change this after boot from power save MB has a hissy fit.

Is there a way to set performance as default? Looking at some old posts lots of editing config files
places I would rather not ry if possible.

I'm sure I could set this once in 20.04 and it stayed on performance.

Any ideas?
Cheers All

Try
Code:
sudo systemctl disable ondemand
once.

If you don't like it to be full on all time anymore you simply re-enable it.

MMM
(04-30-2022, 09:51 PM)madmaxmiller Wrote: [ -> ]
(04-30-2022, 02:34 PM)wavesound Wrote: [ -> ]Hi All
If I forget to change this after boot from power save MB has a hissy fit.

Is there a way to set performance as default? Looking at some old posts lots of editing config files
places I would rather not ry if possible.

I'm sure I could set this once in 20.04 and it stayed on performance.

Any ideas?
Cheers All

Try
Code:
sudo systemctl disable ondemand
once.

If you don't like it to be full on all time anymore you simply re-enable it.

MMM

Hi Thanks for the reply I got this:

[sudo] password for studio:  
Failed to disable unit: Unit file ondemand.service does not exist.



cheers
(05-08-2022, 03:35 PM)wavesound Wrote: [ -> ]
(04-30-2022, 09:51 PM)madmaxmiller Wrote: [ -> ]
(04-30-2022, 02:34 PM)wavesound Wrote: [ -> ]Hi All
If I forget to change this after boot from power save MB has a hissy fit.

Is there a way to set performance as default? Looking at some old posts lots of editing config files
places I would rather not ry if possible.

I'm sure I could set this once in 20.04 and it stayed on performance.

Any ideas?
Cheers All

Try
Code:
sudo systemctl disable ondemand
once.

If you don't like it to be full on all time anymore you simply re-enable it.

MMM

Hi Thanks for the reply I got this:

[sudo] password for studio:  
Failed to disable unit: Unit file ondemand.service does not exist.



cheers

Fantastic! That means that that service which sets your CPU ondemand is not installed.
Here's a clunky but simple method with minimal scripting:
Code:
sudo su
nano /etc/rc.local

*** Add the lines: ***

echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
...
...

(adjust for your number of physical cores)
You can also make that into little scripts which you can run as root, one with "powersave" or "ondemand" and one with "performance"

HTH
MMM
(05-09-2022, 05:59 AM)madmaxmiller Wrote: [ -> ]
(05-08-2022, 03:35 PM)wavesound Wrote: [ -> ]
(04-30-2022, 09:51 PM)madmaxmiller Wrote: [ -> ]
(04-30-2022, 02:34 PM)wavesound Wrote: [ -> ]Hi All
If I forget to change this after boot from power save MB has a hissy fit.

Is there a way to set performance as default? Looking at some old posts lots of editing config files
places I would rather not ry if possible.

I'm sure I could set this once in 20.04 and it stayed on performance.

Any ideas?
Cheers All

Try
Code:
sudo systemctl disable ondemand
once.

If you don't like it to be full on all time anymore you simply re-enable it.

MMM

Hi Thanks for the reply I got this:

[sudo] password for studio:  
Failed to disable unit: Unit file ondemand.service does not exist.



cheers

Fantastic! That means that that service which sets your CPU ondemand is not installed.
Here's a clunky but simple method with minimal scripting:
Code:
sudo su
nano /etc/rc.local

*** Add the lines: ***

echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
...
...

(adjust for your number of physical cores)
You can also make that into little scripts which you can run as root, one with "powersave" or "ondemand" and one with "performance"

HTH
MMM

Yup, something simple as making an executable script along this example:


Code:
cat /usr/local/bin/SCALE_GOV
echo "$1" | tee /sys/devices/system/cpu/cpu*//cpufreq/scaling_governor &>/dev/null
 and then calling it with:
SCALE_GOV powersave
or
SCALE_GOV performance
There's a neat utility called cpupower-gui if you want a graphical way to change scaling governor. I prefer to change it back to ondemand when not doing audio production, to save power and run cooler.
i have installed the indicator-cpufreq on xubuntu from the ubuntu repos and with 2 clicks it sets the governor for all the cores. i think you need cpufreq package installed but it works as a graphical front end and works great.
(05-10-2022, 07:49 AM)sunrat Wrote: [ -> ]There's a neat utility called cpupower-gui if you want a graphical way to change scaling governor. I prefer to change it back to ondemand when not doing audio production, to save power and run cooler.

I even don't switch to "performance" every time I do audio. It keeps the fans off. Although, it must be said that my "powersave" is someone else's "performance" Big Grin
Maybe that's a good reason for having a beefy CPU? (I have that XEON machine only through some lucky coincidence)

MMM
(05-10-2022, 06:54 PM)madmaxmiller Wrote: [ -> ]I even don't switch to "performance" every time I do audio.

Same. With a few minor tweaks, mainly a good kernel, rt-irq and threadirqs, ondemand governor setting can well handle most except the heaviest tasks. It is also mentioned in the recently revised wiki guide -
https://wiki.linuxaudio.org/wiki/system_configuration
Hi All
Just done a quick test on this this system and in power save mode MB shows
many xruns when sitting idle, plus DSP is at 90%.
Setting performance, restarting Jack and all is as it should be.

So we need a way to enable performance from boot.

Any ideas on Ubuntu 22.04 Studio?

Cheers all.

Smile
Pages: 1 2 3