donjuro

Android Expert
Mar 29, 2013
1,036
273
163
Aurora, IL
I always knew this phone had some pretty good hardware, I always wondered why it felt so sluggish though. I feel like the second core is off most of the time though. I used kernel tuner and changed the scheduler to deadline and turned cpu1 on, I left the governor as is. You guys might wanna try it. Swype for me is now lag free, and opening up gallery is buttery now. I can't wait for this custom kernel to be released and see what this phone can really do!
^ original post ^

setting cpu1 on and changing scheduler
Remember, you need to be rooted!

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. Locate init.qcom.post_boot.sh in /system/etc folder with your root browser (I used Rom Tool Box)

3. Create a backup file of this (i.e. init.qcom.post_boot.bak)

4. Now Modify the original init.qcom.post_boot.sh file

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

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

6. 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

7. 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

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

9. Restart the phone.

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

11. If you don't like this feature, remove modified lines (remove echo 1 line. Change chmod 444 to 664) or delete .sh file and rename .bak file to .sh. Make sure restart the phone.

As for setting the scheduler, I made an init.d script with these two lines:

[HIGH]echo "scheduler-name" > /sys/block/mmcblk0/queue/scheduler;
echo "scheduler-name" > /sys/block/mmcblk1/queue/scheduler;[/HIGH]

This sets the scheduler both for internal memory and the sdcard. As for which scheduler you should use, refer to this post: http://forum.xda-developers.com/showpost.php?p=23616564&postcount=4
:I went with deadline, but it's all personal preference.

References/sources:
http://forum.xda-developers.com/showpost.php?p=23616564&postcount=4
http://androidforums.com/motion-4g-all-things-root/693252-guide-unleash-dual-core-enable-cpu1.html

I've added copies of my own files for those of you who just want to "drag and drop"
 

Attachments

  • speedfix.zip
    2.4 KB · Views: 92
Misc.
Not sure about this but it could be possible cpu1 could still be turned off by other apps. If possible, hopefully the kernel being built well keep it on at all times. I have Rom toolbox pro, so I just use the cpu tools in there. I don't like having to many of the same apps, or even apps that perform the tweaks for me, I feel it slows my phone down, that's why I'm so excited for this new kernel and the development happening.
 
No, I know. I'm not gonna keep any apps yet. I wanna see how this kernel turns out first. Otherwise using apps to do your work would be a waste of resources.
 
I installed Kernel Tuner & Enabled CPU1,
This how they should run all the time,Like your CPU in your computer.
I was wondering why the phone was a little sluggish.With a 1.5GHz Dual Core CPU in it.
I to hope this can be fixed with a new kernel,And I understand that a lot if not all apps only use one core most of the time.
:D:D:D:D:D

Sent from my N9100
 
Prettu much all dual core phones with 4.0 and above have that power saving feature enabled. The only drawback I see from enabling both would be more battery drain.
 
I really don't see enough slow down on this phone to need any modification to it. I am very carefule about what I install on it as for apps. No crapola for sure.
 
I think lag is even on the simplest games. I see lag in con dozer too, but once I enabled the second core, it was all butter. I don't see the problem with leaving the second core enabled, I don't think the the cores being disabled is the same across all phones, I think what may be the same on many, but not all, is the governor. I'd leave mines to ondemand2 to still save power, but I'd like to have both cores enabled at all time, this phone already has a long battery life, I just want the performance.
 
I think lag is even on the simplest games. I see lag in con dozer too, but once I enabled the second core, it was all butter. I don't see the problem with leaving the second core enabled, I don't think the the cores being disabled is the same across all phones, I think what may be the same on many, but not all, is the governor. I'd leave mines to ondemand2 to still save power, but I'd like to have both cores enabled at all time, this phone already has a long battery life, I just want the performance.

Agreed,Like I said in an earlier post.
Both cores should be enabled,Like computer CPU's.
Like donjuro said,The only reason it's disabled is to conserve power and prolong battery life.

Sent from my N9100
 
But would it make too much of a difference in battery performance if both cores are enabled? Like I said, I would leave the governor to ondemand2 to save battery, I wouldn't be using the cpu at full tilt, only what I need when I need it. What I really wonder is if it uses more power to constantly turn the second core on and off, and if it would be saving more power to just leave it in at all times. Besides, what's the point of having a dual core phone if you only use it like it's a single core phone?
 
But would it make too much of a difference in battery performance if both cores are enabled? Like I said, I would leave the governor to ondemand2 to save battery, I wouldn't be using the cpu at full tilt, only what I need when I need it. What I really wonder is if it uses more power to constantly turn the second core on and off, and if it would be saving more power to just leave it in at all times. Besides, what's the point of having a dual core phone if you only use it like it's a single core phone?

No,Shouldn't.
Because the cores split the work load,Instead of the one core doing all the work load

Sent from my N9100
 
Do you play any high end games on it?

yes I play only a couple of games like Iron man 3, Solar Warfare those two are my favs. But the difference may be that I have removed most of the apps that want to run in the background like most of the Google apps and there is several, Browser, mms, Sprint stuff everything I don't use or need. I did a wipe once after they were gone and let me tell u it was a different phone. Kinda like running Slim Rom. :p