How to Change permanently CPU scaling governor

I’m trying to set the CPU governor to schedutil in latest dietpi on Orange Pi 3B using dietpi-config, the problem is that it never survives reboots.

I didn’t find a way to make it permanent in Dietpi. Anyone?

After you change it, is it depicted here?
grep GOVERNOR /boot/dietpi.txt

yes:

root@DietPi:~# grep GOVERNOR /boot/dietpi.txt
CONFIG_CPU_GOVERNOR=schedutil

And to which does it revert after reboot?

did’t change, it’s still schedutil in this file, but CPU changes to ondemand, and I need to change again to schedutil using:

dietpi-config

. I can confirm with command:

cpu

It shows ondemand after reboot.

maybe @MichaIng can have a look

Ok I just set to performance, then reboot. Idk why but it worked, stayed on performance. Then, I set to schedutil and after reboot stayed on schedutil this time.

The only thing I did was set to performance and reboot, before set to schedutil. Crazy thing.

So, it’s solved but idk how lol