pyamsoft / pstate-frequency

Easily control Intel p-state driver on Linux
https://pyamsoft.blogspot.com/
GNU General Public License v2.0
172 stars 19 forks source link

"modprobe msr" required #4

Closed hotice closed 9 years ago

hotice commented 9 years ago

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!

pyamsoft commented 9 years ago

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!

hotice commented 9 years ago

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!