You are not logged in.

#1 2013-10-23 17:27:26

to7m
Member
From: Norwich, UK
Registered: 2013-09-16
Posts: 15

Use different cpufreq governors based on which kernel is running?

Following the advice in https://wiki.archlinux.org/index.php/Pro_Audio, I've got to the cpufreq part. I've got both the default kernel and linux-rt installed. I think I want linux-rt to use the performance cpufreq governor, but suspect it would be inappropriate for general non-audio use. Is there a way to make Grub 2 boot linux-rt with performance, without it affecting the default kernel's cpufreq governor? Or maybe some other addition to the boot process that would detect which kernel is running, and then decide which cpufreq governor to use? Unless of course, linux-rt uses performance anyway, which would be convenient. I'm new here. Thanks!

Offline

#2 2013-10-23 17:55:43

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Use different cpufreq governors based on which kernel is running?

Use a BASH script, which maybe looks for "rt" in `uname -r`

To change to performance (an echo for each "cpu"):

cd /sys/devices/system/cpu/ &&

for c in cpu[0-9]* ; do
    echo performance > $c/cpufreq/scaling_governor
done

Offline

Board footer

Powered by FluxBB