yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] godfirst:
It's no longer needed, it automatically sticks now.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Bizdady:
If I wanted to go back to stock just reflash my rom?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] manatti:
I would like to know also what the differences all do. I am using power and save option. Wondering of battery slave will slow down device at all. Much appreciated for all the hard work.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] godfirst:
Yeah, or nand.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mastarifla:
Anyone try this with any of the Jellybean builds?

I guess I could be a guinea pig :)

Test 1

ROM: AOKP JB V2

KERNAL: AOKP JB FU V2 - no tweaks to kernal

Results

Booted up fine

Opened terminal emulator and did 8 then 3.

Rebooted

Settings stuck correctly and it's still speedy :) even in my GBA emulator! so far so good!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ikhtiaralam:
Tested with CM10 JellyBean

SGH- T999 (T- Mobile)

V2

Stock Cyanogen kernel

Did 8 and then 3.

Running really well.

Thank you!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xspeed9190:
I am curious. No matter what CPU app i use including this script. I set the CPU speeds and it always goes back to stock. I have tried multipule kernels and rom combos. I noticed that it goes to min:1.0ghz and max: 1.5 ghx when i leave the app and come back it goes back to that after i change it
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Warrior1975:
I have stock rom and adama Kernel, that would work?

Also, I have never used the terminal emulator, would any of you smarter people please explain what to do after flashing this? Sorry, I read through this but nobody went further than "run the script in the emulator". Thanks in advance!!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] hah2110:
so what is the difference in using conservative/powersave governors or ondemand with battery save profiles? What settings are you guys using for battery life that isn't causing lag?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Dx9:
When I set Ondeman Battery Saver it sets the max CPU at 1.2Ghz which is great but if I reboot it goes back to 1.5Ghz. I then have to go back into Terminal and set Battery saver again even though it shows current setting is Battery Saver. I have disabled voltage control app also to be on the safe side. Same issue.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] manatti:
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
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] manatti:
I'm also curious if anyone has tried the performance and battery option. I may try it tomorrow unless it makes any big difference in performance also had anyone tried turning on both cores to see if that is draining battery rapidly. Thanks
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] kingwp1:
Could someone describe the phone's behavior after turning on battery saver? Does it slow anything down or is there any kind of noticeable performance loss?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] caveman999:
I see no noticeable drop in performance after turning on battery saving mode. I'm sure if you use a benchmark you'll see a difference there, but benchmarks are stupid and don't tell you how the phone actually performs. The only difference that I have seen after applying this is that I get crazy good battery life :)

I'm getting the same issue. I use SetCPU and every time I reboot I have to reapply the battery saving options through terminal. It isn't a huge deal, I just wanted to point out that the settings are not sticking.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] kingwp1:
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.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
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.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] manatti:
I am using this on vzw root 66 stock and no notice in dropped performance. But my battery lasts crazy long. I feel like I have a dumb phone battery in a smart phone this is nuts. I used navigation today for 2 30 min trips, one way there one way back, been on for 9 hours 44 minutes, usage on xda and Web browsing and new feeds off and on, at 77 percent. This is with the battery saving option. I am just floored. :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] polish_pat:
Thanks for all, i did use SetCPU for all this but some some reason it never kept the clocks how i set them, will try this and report back with the results!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] d1ez3:
I just installed it on Synergy 1.3 I will report back tomorrow with results
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] dvaderx:
for me, I chose battery saver profile and did notice a performance hit.. so i disabled it.. have not tested any of the other profile settings yet.

I may widgetize the different profiles, so when i know i wont use my phone much i can enable that battery saver and then go back to performance after.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DROID3R:
This shuts down one of the cores????? : (

VERIZON GALAXY S 3
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
No it doesnt, it applies the settings to both cores. Neither core ever gets shut down.

On another note v3 is up now, i added scheduler and cache and now you can set your cpu speed even when using the profiles. So if you get a performance hit leave battery saver enabled and up the cpu speed by default battery saver is set to 1242000 so try something like 1350000.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] droidbird:
It does not shutdown one of your cores, but what it does do is changes the threshold when the 2nd core comes online.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] manatti:
Honestly I have noticed no lag but I don't play a lot of games on my phone. It feels the same it did as before so I'm not sure what is going on in that script but me likey. I will advise since I use it more aggressively during the week if I notice anything

Before I hit the hay, here is where I ended the day
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] catalyst11:
I just installed v3. In the terminal I switched it to battery saver then went to the min/max of each core and the setting showed 1124000 for both min and max of both cores. I tried to switch both min and max but none would stick. Am I doing something wrong?

Sent from my VZW SIII
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] droidbird:
I noticed when i tried to set min/max in v3 on cpu0/1 to 384000/1350000 after setting 8->3 that /system/etc/cpueconf looked very wrong with cpu0/1 min and max speeds and i ended up editing it by hand so i can't send useful debugging info at the moment.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
It got applied the settings shown aren't getting refreshed in script you have to exit and run the script again. I'll fix it on the next round.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] amgpower63:
Smokin, thank you for your work. I really appreciate it!! I just have a quick question about the script. After flashing the script and following directions (setting governor profile, etc), will the phone show effect immediately? Or will I have to wait a day or two for things to be settled down?

Edit: I use KT747 Sammy kernel 7/19c just for reference!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] asaqwert:
So I've been playing around with this script on the free gs3 room which comes with the script built in. I'm finding though that regardless of any setting i choose, after a deep sleep or long sleep or whatever or a reboot all of the settings go back you stick. I'm using faux123 v008 kernel of that matters. Any help?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] SpartanG087:
So I use battery saver on demand profile and min/max freq are not sticking. Even after a reboot. Are adjusted freq supposed to show up in the script after reboot? Thanks.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] d1ez3:
What type of offscreen cpu profile does this script use? I listen to podcasts at work for about 8 hours a day and it would be nice to have the cpu sitting as low as possible the whole time since my device will be awake the entire time with the screen off the majority of the time.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] hah2110:
Bump.....
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Kenneth.Torres:
conservative uses the lowest frequency set, I use on demand with battery save and see NO lag. You have an s4 snapdragon and 2gb of ram, if you want to see lag try the OG moto Droid
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mormoney:
+1., not sticking...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Hurleyzero1:
Does anyone know if this script works with Imoseyon tw kernel?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] d1ez3:
Should I turn powersave mode off on the phone when this is running for better battery savings?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Hurleyzero1:
This isnt a kernel. But i didnt notice crazy battery life either so im trying Imoseyon kernel
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] weedolo9y:
Give it a few changes guys if your flash happy you will never see good battery life I posted a screen shot from this mod running on his rom hour and a half screen on time still was at 92 percent battery but I'm stable on my fourth charge without flashing anything

Sent from my SAMSUNG-SGH-I747 using Xparent ICS Blue Tapatalk 2
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Kenneth.Torres:
agreed, here's mine
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] hah2110:
And what settings/kernel are you using?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
OP- Still getting that bug I reported a few days back,using faux kernel like you suggested v007 with wanamlite v1.2

I got no clue why it wont show me the governor's.

--Update--

Just found out why heres the log screenshot. Need your help dev.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
Honestly im not sure either, looks like its the rom i am guessing but i am not sure how.

For anyone having problems with settings sticking see the bottom of the OP. Flash the start_stop_daemon.zip if /system/xbin/start-stop-daemon doe NOT exist.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
I don't know if screenshot showed but heres what's in CPU-editor.log

/system/xbin/profiles[22]: cannot create /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: No such file or directory

/system/xbin/profiles[23]: cannot create /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq: No such file or directory

/system/xbin/profiles[24]: cannot create /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq: No such file or directory

/system/xbin/profiles[111]: cannot create /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: No such file or directory

Battery Saver Profile Enabled - 07-30-2012 07:14:03 PM
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
That's because cpu1 isn't active. Look at the op and see if you have the file I mention at the bottom in red
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
Yes start-stop-daemon is in system/xbin

How is it possible that both cpu1 and 0 be inactive since I can't set governors for cpu0 either.

I don't know if cpu sleep could be interfering.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
It could be I guess, and I meant cpu1 is not active when it boots. Cpu 0 is always active. The governors thing gets me, can you open terminal or adb shell and type su followed by busybox. It will list what applets are installed, paste it so I can see it.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
app_103@android:/ $ export PATH=/data/local/bin:$PATH

app_103@android:/ $ su

app_103@android:/ # busybox

BusyBox v1.20.0-cm9 static (2012-05-06 01:46 +0200) multi-call binary.

Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko

and others. Licensed under GPLv2. Merged for bionic by tpruvot@github

See source distribution for full notice.

Usage: busybox [function] [arguments]...

or: busybox --list

or: function [arguments]...

BusyBox is a multi-call binary that combines many common Unix

utilities into a single executable. Most people will create a

link to busybox for each function they wish to use and BusyBox

will act like whatever it was invoked as.

Currently defined functions:

[, [[, ash, awk, base64, basename, bbconfig,

blockdev, bunzip2, bzcat, bzip2, cal, cat, catv,

chattr, chgrp, chmod, chown, chroot, clear, cmp,

cp, cpio, cut, date, dc, dd, depmod, devmem, df,

diff, dirname, dmesg, dos2unix, du, echo, egrep,

env, expand, expr, false, fdisk, fgrep, find, fold,

free, freeramdisk, fuser, getopt, grep, groups,

gunzip, gzip, head, hexdump, id, insmod, install,

kill, killall, killall5, less, ln, losetup, ls,

lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzop,

lzopcat, makedevs, md5sum, mkdir, mkdosfs, mke2fs,

mkfifo, mkfs.ext2, mkfs.vfat, mknod, mkswap,

mktemp, modinfo, modprobe, more, mount, mountpoint,

mv, nanddump, nandwrite, nice, nohup, od, patch,

pgrep, pidof, pkill, printenv, printf, ps, pstree,

pwd, rdev, readlink, realpath, renice, reset,

resize, rev, rm, rmdir, rmmod, run-parts, sed, seq,

setconsole, setserial, setsid, sh, sha1sum,

sha256sum, sha512sum, sleep, sort, split, stat,

strings, stty, swapoff, swapon, sync, sysctl, tac,

tail, tar, tee, test, time, top, touch, tr, true,

ttysize, tune2fs, umount, uname, unexpand, uniq,

unix2dos, unlzma, unlzop, unxz, unzip, uptime,

usleep, uudecode, uuencode, watch, wc, which,

whoami, xargs, xzcat, yes, zcat

app_103@android:/ #

Wait since cpu1 isn't active when it boots..I'm running single core all the time?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
No cpu 1 becomes active when needed. Start-stop-daemon is not listed, flash the file in the op see if it fixes it.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
Thank you this solved it I just hope it does stick at boot. This is very weird before flashing the zip, there was a file named startstopdeamon. Ill report back any other thing that I might find. Now I get to use the awesome battery saver :D
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ipaq_101:
For me CPU 0 sticks but CPU 1 doesn't.

I am ready to give up and go back to setcpu, I was really hoping this would stick.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
Cpu 1 is dynamic it goes on and off. Be sure you have start-stop-daemon in /system/xbin if not flash the zip to install it
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ipaq_101:
I have it installed.

Here is what I am doing

Governor:

CPU0: Ondemand

CPU1: Ondemand

Max:

CPU0: 1512000 - Sticks

CPU1: 1512000 - Reverts back to 1836000

Min:

CPU0: 486000 - Sticks

CPU1: 486000 - Sticks

OnDemand Profile:

Battery & Performance

I/O Scheduler:

deadline

Any Suggestions?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] bvermett:
I have giving up. Everything says invalid. Disappointed will try again with next update. Nice work though sure all the kinks will get worked out.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
Weird, that file is there right ? The settings should get applied when cpu 1 comes online.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ipaq_101:
Yup its there.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
Ok wanna paste what's in /system/etc/cpueconf that's the config file.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
Having the same issue here using battery saver it uses 1134mhz change it to 1350 for both cores, close up terminal open it up again, switches back to default and after a while cpu spy reports use of 1836 when in cpu editor its supposedly 1134 the current frequency.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
Sorry for quoting myself.

Edit--

Used quadrant to check current frequency and it says 1350,1836 hasn't been active yet, cpu editor still says 1130.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ipaq_101:
#!/system/bin/sh

profile=2

gov0=

gov1=

maxcpu0=1512000

maxcpu1=1512000

mincpu0=486000

mincpu1=

dual=

sched=

cache=

Whenever I go back into terminal after I applied the settings and recheck the settings the max cpu1 shows 1836000, even after I run antutu and both cores are in use, I recheck and cpu1 has not changed in terminal.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
Check the settings at /sys/devices/system/cpu use a file explorer and open these files:

/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq <<< Thats the real max frequency for cpu0 it should be whatever you set in cpu editor

/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq <<< Thats the real max frequency for cpu1 it should be whatever you set in cpu editor

You can set cpu1 and it will apply when its online to check that do this:

open /sys/devices/system/cpu/cpu1/online in a text editor and make it 1

There will be new folder there open cpufreq/scaling_max_freq and it will be what is set in cpu editor.

The init line for the script is written to /system/etc/init.qcom.post_boot.sh so it has to run at boot, the only way the settings wont stick at boot is if start-stop-daemon is not in /system/xbin.

The current settings in the cpu editor are wrong they read from the wrong file so they are inaccurate it will be fixed in the next release and start-stop-daemon will be included too.

If the settings are still not sticking then i am at a loss they all work for me and i have checked alot. Hope that helps
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
Everything in there are the settings that I applied, during tomorrow I will monitor frequencies more closely. As for the file in /xbin its definitely there I will run multiple reboots and share my finds tomorrow.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] smokin1337:
Those are default values, my script changes them and allows you to change them. It has to use values at boot to create the files thats them, my script adds a line to it to run itself on boot as a daemon so it consumes little power and monitors the cpus.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ShensMobile:
I just installed this and fired it up. First thing I did was go to OnDemand Profile and set it to battery saver. Then I went to CPU0 Governor and I was expecting to have a choice of which governor to set it to. Instead, I just got a bunch of scrolling numbers. What do I do to set my CPU's to the OnDemand profile?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] DudeWatsThat:
I had the same problem just flash the start_stop_deamon zip file in the OP its what solved it for me as recommended by the dev.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] droidbird:
I understand that those are defaults, but in reviewing these versus what you script does on a 8 (ondemand) -> 3 (powersave) it looks like the only three differences are:

sampling_down_factor 4 default, 1 in your script

powersave_bias is 0 default, 1 in your script

scaling_max_freq is 1.5GHz default, 1.1GHz in your script

Is that accurate or am I missing something?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ipaq_101:
I entered 1 for CPU1 and that created the folder you mentioned, but the scaling max was still 1836000, not what I had set, so I manually changed it to 1512000 and saved it, when I reopened it was still 1512000
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ShensMobile:
I just flashed it, yet I still just get a bunch of scrolling numbers...

To clarify, I'm running an HTC One S with the stock EU kernel. I've gone back and looked at some of the suggestions but nothing in terminal works for me at all so I'm not even at the point where settings don't stick...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] ipaq_101:
I rebooted and then checked the CPU1 folder and it said that CPU FREQ folder didn't exist, it disappeared after reboot and only the cpuidle folder was present with a file named online.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] boynamedstacy:
This sounds pretty sweet. I can't wait to give it a try!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] godfirst:
Script is working fine for me, I haven't done a reboot after setting my io schedule but couldn't spy shows that it's doing what I ask. Do I really need to reboot for the io scheduler to change?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] svibrant67:
Ok so I really don't understand how this works...

I'm not new to flashing & scripts, etc... But i had v2 flashed on my T-Mobile S3 & didn't see a change in battery life at all. Yeah i understand the settings are preset which is great, but what good r they if u don't see a change in battery life? I go to Terminal Console, type su, then cpu (no quotations) i get the list, i press #8 & then #3 for the battery saving presets...do i need to select something else? I checked Governor one & it says its on the "on-demand profile" which i assume is the battery saving one correct? I think a better guide on how to set up the scripts presets should be thought of & to clear up confusion.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] torontommy:
would this work with task650 and ktoonesz 's AOKP Jellybean preview ROM and KERNEL?

Would it hurt the phone to try?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] chadster214:
I\O Scheduler

I\O Scheduler not sticking on mine. it keeps reverting to cfq after reboot
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] aqhilles:
I'm using this with Synergy v1.3. So far battery has been great. With little use, I'm at 75% of batt life left and 8hrs of up time.

I do have the stock batt saving option on.

I'm using option 3 (batt saving mode) with the OnDemand gov.

This morning I installed CPUSleep (allegedly, it shuts down one core.) and will see how it works with the script.

So far, this app has been GREAT!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] boynamedstacy:
The directions in the OP were plain as day for me. I got set up and running in no time. There is even instructions on what to do if your settings don't stick. Might wanna read a bit more? I couldn't give instructions any better than what is already there.

Sent from my GSIII
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] twohawks:
I looked for the start-stop-daemon in /system/xbin/ and saw two separate files. One Start and one Stop. Is that what I'm looking for or is it actually start-stop-daemon?

I flashed the start-stop-daemon file you posted and went to look -- I still only have a Start and a Stop, not a file that is both in one line.

Am I missing something?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] iNaShTy:
How do i flash this there is 2 files which one do i download??!?!?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Hurleyzero1:
Read the OP.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Kaotix01:
I have a question... how does forcing dual core mode effect batt. Life and or performance on our phones. I flashed the zip and did some light tweaking. Everything is working fine i was just wondering.