CPU Frequency

olaf.get_cpufreq() int[source]

Get the current CPU frequency.

Returns:

The current cpufreq in MHz.

Return type:

int

olaf.set_cpufreq(value: int)[source]

Set the current CPU frequency. Must be running as root to use this function.

Parameters:

value (int) – The cpufreq in MHz to change to. Must be a value from A8_CPUFREQS.

olaf.get_cpufreq_gov() str[source]

Get the current cpu governor; ether "performance" or "powersave".

Returns:

The current CPU governor.

Return type:

str

olaf.set_cpufreq_gov(cpufreq_gov: str)[source]

Set the current cpu governor.

Parameters:

cpufreq_gov (CpuGovenor) – The CPU governor to change to. Must be "performance" or "powersave"

olaf.board.cpufreq.A8_CPUFREQS = [300, 600, 720, 800, 1000]

CPU frequencies for the Cortex A8 in MHz

Type:

list