I am trying to replace value in the file of constraint_0_power_limit with new value using echo "45000000" | sudo tee constraint_0_power_limit_uw
That file is under /sys/class/powercap/intel-rapl/intel-rapl:0/
When I use above command, I get tee: constraint_0_power_limit_uw: No data available
error.
How can I fix that error?
The ability to adjust TDP (Thermal Design Power) at the OS (Linux) level requires:
Check by looking at the enable flag. Two examples:
.
Now, attempt to enable the one that is disabled:
Which does not look good. So let's check dmesg on this computer:
So, observe that it is BIOS that is not allowing it. And in this case, the BIOS does not support this at all, it isn't just disabled. Readers will want to check their BIOS for some sort of enable, but I could not find such a switch in the BIOS of my computer that does work.
So, for the computer where we know this will not work:
Now, for the computer that has enable as 1:
Note: While researching for this answer, I did find testimonies where users were able to write a 1 to
enable
from the 0 state. I think this would indicate that BIOS supports this stuff, but it defaulted to disabled.