yyearth / turnoff-BD-PROCHOT

83 stars 11 forks source link

hex value to wrmsr should be prefixed 0x or plain decimal value used #3

Open strainer opened 3 years ago

strainer commented 3 years ago

Hi I was delighted to find your script works on my Latitude. Just one thing I noticed the wrmsr line seems to send the desired value as hex but without an 0x prefix. This hasn't caused noticable problems as the top bit is usually cleared so throttling stops. But the hex value seems not read correctly without 0x prefixed.

I changed the wrmsr line to state the desired value as decimal and it seems to work fine ( wrmsr 0x1fc "$f" ) I reread the register value after it is written and it seems correctly set when the computed decimal value is used. I also briefly tested prefixing 0x to the hex value and it seemed to work too.