[MOD/SCRIPT][7-29]CPU Editor - Secret to Die Hard Battery

Search This thread

smokin1337

Retired Recognized Developer
Jul 30, 2010
963
1,602
Virginia
Sticky mode is no longer needed the settings stick now without it. The script runs as a daemon.

Sent from my SAMSUNG-SGH-I747 using xda premium
 
  • Like
Reactions: godfirst

Tiffany84

Inactive Recognized Themer
Jul 27, 2010
6,280
3,323
Deleted

---------- Post added at 06:38 AM ---------- Previous post was at 06:37 AM ----------

As long as the file structure is the same which it should be. But the init post boot could be a problem. Let me look into first.

Sent from my SAMSUNG-SGH-I747 using xda premium

Ok, I'll wait for you to verify. Thanks.
 

DudeWatsThat

Senior Member
May 5, 2011
220
25
I think I found a bug when using ktoonez kernel and wanamlite 1.1 When selecting governor for cpu0 theres just random numbers being created same goes for cpu1.
 

godfirst

Senior Member
Jul 6, 2010
4,195
1,182
Somewhere Giving God All The Glory!
This is what I've gotten off of first day usage.

Sent from my SGH-I747M using Tapatalk 2
 

Attachments

  • uploadfromtaptalk1343420075763.jpg
    uploadfromtaptalk1343420075763.jpg
    62.1 KB · Views: 2,567
  • uploadfromtaptalk1343420083186.jpg
    uploadfromtaptalk1343420083186.jpg
    71 KB · Views: 2,448
  • Like
Reactions: idelgado782

ThatTmoGuy

Member
Jun 19, 2010
31
4
Rocklin, CA
Call me an idiot if I'm wrong, but I don't see anything to download here, did the op remove the link?

Edit: the link finally showed up, I'm an idiot.

Sent from my SAMSUNG-SGH-I747 using xda app-developers app
 
Last edited:
  • Like
Reactions: JB calhoun

smokin1337

Retired Recognized Developer
Jul 30, 2010
963
1,602
Virginia
Oki uploaded v2 now it should work with all roms including aosp/aokp. It edits the init.qcom.post_bot.sh instead of overwriting it. Let me know how it works on aosp:)


Call me an idiot if I'm wrong, but I don't see anything to download here, did the op remove the link?

Edit: the link finally showed up, I'm an idiot.

Sent from my SAMSUNG-SGH-I747 using xda app-developers app

Sorry i took it down to edit and upload again.
 
  • Like
Reactions: mbc663

smokin1337

Retired Recognized Developer
Jul 30, 2010
963
1,602
Virginia
This is the problem I'm talking about when selecting 1 for cpu0 governor.
Using ktoonsez kernel and wanamlite.

Thats weird, i have never seen that before. It looks at /sys/devices/system/cpu/cpu0/scaling_available_governors to get a list of governors. See if that file is there and whats in it. I get the selection screen when i use it but i am using faux's kernel.
 

DudeWatsThat

Senior Member
May 5, 2011
220
25
Thats weird, i have never seen that before. It looks at /sys/devices/system/cpu/cpu0/scaling_available_governors to get a list of governors. See if that file is there and whats in it. I get the selection screen when i use it but i am using faux's kernel.

Instead of cpu/cpu0/scaling_available_governors its in cpufreq/scaling_available_governors

I think the pics will explain better. Plus this happends when using cpu1 too.(all the random numbers).

Edit---

Extra screenshot added.
 
Last edited:

smokin1337

Retired Recognized Developer
Jul 30, 2010
963
1,602
Virginia
Instead of cpu/cpu0/scaling_available_governors its in cpufreq/scaling_available_governors

I think the pics will explain better. Plus this happends when using cpu1 too.(all the random numbers).

Edit---

Extra screenshot added.

Yea I forgot the cpufreq it's in the cpu editor though.
so it should show you the governors. Maybe download again and reflash




so... do we flash this or....

Yes

Sent from my SAMSUNG-SGH-I747 using xda premium
 

DudeWatsThat

Senior Member
May 5, 2011
220
25
Yea I forgot the cpufreq it's in the cpu editor though.
so it should show you the governors. Maybe download again and reflash






Yes

Sent from my SAMSUNG-SGH-I747 using xda premium

Done it twice today with previous version and v2. If I were to remove it I just delete files that were installed right?
I really wanna use this especially for the battery saving.
 

smokin1337

Retired Recognized Developer
Jul 30, 2010
963
1,602
Virginia
Done it twice today with previous version and v2. If I were to remove it I just delete files that were installed right?
I really wanna use this especially for the battery saving.

Can you try flashing a different kernel ? I just want to know if its the kernel or the rom. If it is the kernel and you want to use the kernel you have now, send me /system/etc/init.qcom.post_boot.sh and i will edit it to set the battery saver on boot.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 88
    CPU Editor Snapdragon

    This mod allows you to easily change cpu settings on the fly, and supports dual core devices. Easier and cheaper $$ than available apps that do the same thing !!

    ReadMe​

    Quad core support coming soon !!

    This mod will work on dual core devices with snapdragon processors, to check compatibility use a file explorer and go to /system/etc and look for a file named init.qcom.post_boot.sh, if that file exists this mod will work !! It is confirmed working on the Galaxy S3 and HTC One Series.

    This is 90% of the secret behind my roms battery life, select ondemand profile from the menu and select battery saver. And see how long your battery lasts :)

    Features:
    Change CPU Governor
    Change CPU Min/Max Frequencies
    Set Dual Core CPU's Independently - Governor and Frequencies
    Force Dual Core - Second Core Online ALL The Time
    View Current Settings For Everything
    Settings applied on boot/reboot
    OnDemand Profiling
    Edit I/O Scheduler
    Edit Cache Size

    Usage:
    Flash in recovery
    Reboot
    Open terminal
    Type "su" without the quotes
    Type "cpu" without the quotes
    Make your selections

    Notes:

    An error appears sometimes when enabling or disabling force dual core, it's ok the settings still get applied.

    Settings get applied immediately

    Cores can be set independently, you can make the governors and frequencies different on each core. Could be a great battery saver by limiting the second cores resources.

    Force Dual Core will make the second core stay online all the time

    Some kernels do not have a available_scaling_freq so the available frequencies will not be displayed, look up the settings your kernel has either in your rom thread or kernel thread.

    OnDemand Profiling allows you to set profiles for ondemand governor, the settings possible are performance, performance and battery, and battery saver. Setting will only apply to ondemand govenor !! This will overwrite your cpu settings ie. Governor and frequency.

    If you experience a dip in performance while using battery saver, in v3+ you can set your own cpu speed and still use the profile. By default battery saver underclocks the cpus to 1242000, you can now run "cpu" and set battery saver for ondemand profile then edit maxcpu0 and maxcpu1 to a higher frequency like 1350000 until your performance is how you want it.

    ChangeLog:

    v3:
    - Added I/O scheduler
    - Added cache size
    - Added clear all settings ie., disable
    - Made it possible to change cpu frequencies when using a profile

    Screenshot:
    Screenshot_2012-07-29-23-46-05.jpg

    Anyone having trouble with settings sticking use a file explorer and go to /system/xbin and look for a file called start-stop-daemon, if it's not there flash start_stop_daemon.zip in attachments... The script DEPENDS on this file, it will be in the next version to be sure its there :)

    Please report any bugs you may find here.

    Thanks to -viperboy- for some of the code used

    Enjoy ....
    3
    Firsts
    Thanks bro!

    Sent from my SGH-I747 using Tapatalk 2
    2
    Thread Cleaned
    In thread is not the place for this and not helping your case!
    Pissing matches and arguing in thread will not be tolerated. This is what PM is for.
    Thank you for your cooperation
    Friendly Neighborhood Moderator
    2
    How do you see what settings are currently enabled?
    I want to know if its sticking on reboot. I saw this questions asked in the thread already, but no one answered.

    In /data there is a file called cpu editor.log after a reboot look at the bottom of the file, it says battery saver enabled with a timestamp look at the time it will say something close to the current time.

    Sent from my SAMSUNG-SGH-I747 using xda premium
    2
    It's easy, open the terminal emulator you downloaded in the play store. When it opens, assuming you are rooted just type the letters su and the type the letters cpu and the you should see the options there. I picked option 8 for on demand then the number 3 for battery save if that's what you want and then you should be good. Reboot and you are all set.

    I have been using my phone for about 8 hours and medium Usage, 2 separate 30 min phone calls and reading news feeds off and on all day and reading and replying here and I'm at 71 percent. This is crazy
    Sent from my SCH-I535 using xda app-developers app