Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5, #3 and bdprochot_on.sh #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bdprochot_off.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sudo modprobe msr
r=`sudo rdmsr 0x1FC`
#echo $r > temp
s='0x'$r''
f=$(($s&0xFFFFE))
sudo wrmsr 0x1FC "obase=16;$f"|bc
echo "$r"" write to ""reg 0x1FC"
f=$(($s&0xFFFFFE))
sudo wrmsr 0x1FC $f
echo "$f"" write to ""reg 0x1FC"
echo "BD PROCHOT off."
9 changes: 4 additions & 5 deletions bdprochot_on.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
#

sudo modprobe msr
# r=`sudo rdmsr 0x1FC`
# s='0x'$r''
# f=$(($s|0x00001))
r=`sudo rdmsr 0x1FC`
s='0x'$r''
f=$(($s|0x1))

# sudo wrmsr 0x1FC "obase=16;$f"|bc
sudo wrmsr 0x1FC 4005d
sudo wrmsr 0x1FC $f

echo "BD PROCHOT on."