intel_speed_shift.default_epp being ignored on boot

Started by KevinPeters, June 16, 2022, 03:13:08 PM

Previous topic - Next topic
Using OPNSense 22.1.8 typing in:

sysctl dev.hwpstate_intel.0.epp=100

which results in a nice drop in CPU temperature.

I want this setting to persist at reboot, but regardless of where I put it, it is ignored. I have tried /boot/loader.conf.local
/etc/sysctl.conf
/etc/sysctl.conf.local
/etc/rc.conf.d/10-mysysctl


Interestingly, if I manually do a:
service sysctl restart

It immediately picks up the new setting and the temps drop.

So my question is, where can I put the setting so that it will be read at boot time?

Do in in System-> Settings -> Tuneables. It will survive a reboot.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+


Just to comment on the previous attempts:

> /boot/loader.conf.local

Won't work if it's a runtime value.

> /etc/sysctl.conf
> /etc/sysctl.conf.local

We don't use the sysctl rc service.

> /etc/rc.conf.d/10-mysysctl

This doesn't make any sense?


Cheers,
Franco

Also note that depending on your CPU, sysctl dev.hwpstate_intel.0.xyz may not work - on my i5250u, it doesn't :-(

root@OPNsense:~ # sysctl dev.hwpstate_intel.0
sysctl: unknown oid 'dev.hwpstate_intel.0'