Feb 26, 2013

(MOD) How to enable CPU1 Permanently

Inspred by rhino889a's post here.
snappy


Do at your own risk

This modifies script command @ boot then force CPU1 online.
It may brick or damage your phone.
You must be rooted and familiar with folder structure.


Easy Way

1. Download init.qcom.post_boot.sh
https://docs.google.com/file/d/0B69dMfqyU4n9QXhWYnd3VmhfRzg/edit?usp=sharing

2. Copy & Paste it on /system/etc

3. Restart

4. Enjoy



Hard Way

1. As rhino889a and Sepero mentioned the goal is turn on CPU1 by this command echo 1 > /sys/devices/system/cpu/cpu1/online and apply it on boot.

2. Open up init.qcom.post_boot.sh in /system/etc folder with your root browser (I used Rom Tool Box)

3. Our Board is msm8960. Find msm8960 related code block.

case "$target" in
"msm8960")
...
...
;;
esac

4. At the end of case block you see below.

chmod 220 /sys/devices/system/cpu/mfreq
chown root.system /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/devices/system/cpu/cpu1/online

5. Add echo 1 line. Change chmod 664 to 444

chmod 220 /sys/devices/system/cpu/mfreq
chown root.system /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online

6. Save the file. Make sure your change is applied.

7. Restart the phone.

8. After restart, check if CPU1 is online. You can use app or open up /sys/devices/system/cpu/cpu1/onlineand see if its value is 1









No comments:

Post a Comment