"modprobe msr" required
hotice opened this issue · 2 comments
Ubuntu 14.10: I tried to change the power plan via "pstate-frequency --set --plan max-performance" and I got this error:
wrmsr: open: No such file or directory
This was fixed after running:
sudo modprobe msr
Maybe you should add this to the readme?
P.s.: thanks for this tool, I find it very useful!
Thank you for this report.
Yes this was an oversight on my part. On my machine, I am running Intel's thermald program, which means that the msr module is always loaded as a result. I did not think to check for the msr module in the wrmsr calls in my program as a result. However, the wrmsr call should only happen if you have the msr-tools installed, meaning that you should atleast have the msr module. In commit 56 I have added basic code to handle the automatic loading of the msr module when running pstate-frequency.
Please check if your issue still occurs in commit 56 and higher, thank you.
P.S: Learned about thermald and got interested in writing pstate-frequency after reading your work on webupd8. webupd8 is what got me interested in Linux in the first place. Keep up the good work!
Thanks!
Hmmm I actually have thermald installed but msr wasn't loaded on my laptop (Ubuntu 14.10)... I'm really not sure why.
I tried commit 56 and it seems to work properly now. Thanks for the fix!