yyearth / turnoff-BD-PROCHOT

83 stars 11 forks source link

I needed to use 0xFFFFFE instead of 0xFFFFE #5

Open bkerin opened 1 year ago

bkerin commented 1 year ago

for me 0x1fc has a bit set in the sixth hex digit (counting from the right):

# rdmsr 0x1fc
24005f

So I needed to and with 0xFFFFFE, otherwise this happens:

# printf '%x\n' $((0x24005f & 0xFFFFE))
4005e

To be safe it's probably best to use 0xFFFFFFFE or perhaps even 0xFFFFFFFFFFFFFFFE (though I'm not sure the shell actually handles that).

ckcr4lyf commented 9 months ago

Just my 2 cents: script works as is on my Thinkpad T470s, i7-7600U