yashsingh1/xdaforums huggingface dataset:
[Nexus S 4G Android Development] snrbobo:
cool. hows that working out for you? I no you said early you had tons of screen on time. just curious as too how many hours you got out of your battery with this tweak :D
[Nexus S 4G Android Development] tony1208:
Reserved ..

Sent from my Asus Transformer Tab
[Nexus S 4G Android Development] shabbypenguin:
well i charge my phone every night (my gf is pregnant i cant afford to miss a call). but i usually end the day with 60-70 percent
[Nexus S 4G Android Development] snrbobo:
hey congrat! and thats really good. today i'm gonna give it a go with ondemand.
[Nexus S 4G Android Development] jmack549:
Okay so I just changed from iPhone and I'm a huge noob. How exactly do I install this? I opened Rom Manager and pressed boot into recovery, and from there I got 4 options: Reboot, something else, Recovery Mode, and Power Off. I try to go into Recovery Mode and it just loops back to where I was. Any help?
[Nexus S 4G Android Development] dreamsforgotten:
Boot into recovery using vol up and power. Then flash the zip
[Nexus S 4G Android Development] shabbypenguin:
just tested with cm7 and matr1x kernel and batt.sh runs fine, as a side note i highly recommend any of you ns4g check it out, its a very nice kernel
[Nexus S 4G Android Development] gmap516:
Will this affect performance negatively and is it easy enough to disable if I decide I don't like it?
[Nexus S 4G Android Development] shabbypenguin:
yes there is a batt-rm.sh which will remove the battery script. how it affects performance is up to you, if you want the best battery life then the cpu speed will be lower at lower battery life..
[Nexus S 4G Android Development] Skimp Killah:
15 hours off charger with 30 percent to go
[Nexus S 4G Android Development] :
I ended up useing terminal program..now after i apply the setting is the terminal suppoed to be running in my task bar or no???
[Nexus S 4G Android Development] shabbypenguin:
no it runs in teh background

if you wanan check type

pidof batt.sh

if you geta number its running
[Nexus S 4G Android Development] johnxjets:
This is great

Sent from my Cyanogen Nexus 4G
[Nexus S 4G Android Development] benrees21:
Gonna try this now.

EDIT: I'm on 1.2ghz so how much % should I put to scale down so it don't go below 900mhz? - no worries, found a calculator and worked it out lol.
[Nexus S 4G Android Development] JeffR714:
I'm going to try this due to the fact that the shabby penguin stuff is excellent his Nexus S 4G One Click Root was great I do need to try to get more out of my battery I really use the NS4G for data rather than phone (That is the case with all my devices) so I'll let you know how it works out
[Nexus S 4G Android Development] infernosoft:
Once I have this installed, is there a safe widget to use to view and manually change the CPU clock speeds?
[Nexus S 4G Android Development] shabbypenguin:
no there isnt unfortuantly as this isnt an app but a bunch of scripts, only way to control it is via batt-conf

download terminal emulator from teh market and use batt-cfg to configure it :)
[Nexus S 4G Android Development] JarffVC:
I have disabled "Set On Boot" for clockspeed in SetCPU but I've also got my voltages set there too. Can I leave the undervolt settings in place or will that conflict?

Thank you for making this available!
[Nexus S 4G Android Development] shabbypenguin:
honestly i have no idea.. i use proton control for voltages myself :(
[Nexus S 4G Android Development] benrees21:
Cannot remove. Terminal says permission denied (you have root?)

Sent from my Nexus S running NSCollab, Matted Blues Theme and Netarchy 1.3.8 cfs kernel (Perfection) ;)
[Nexus S 4G Android Development] shabbypenguin:
do you have # or $ when you tried to run it?
[Nexus S 4G Android Development] benrees21:
$

Sent from my Nexus S running NSCollab, Matted Blues Theme and Netarchy 1.3.8 cfs kernel (Perfection) ;)
[Nexus S 4G Android Development] shabbypenguin:
that would be the issues :) type su in before you use any of the scripts and it should run fine then
[Nexus S 4G Android Development] benrees21:
Cool thanks. Done.

Sent from my Nexus S running NSCollab, Matted Blues Theme and Netarchy 1.3.8 cfs kernel (Perfection) ;)
[Nexus S 4G Android Development] DominoDoug:
I used to run this on my Hero last year when d3cad3nce released it. Glad to see it make its way to my new phone. BTW I'm running OpenSoju with stock kernel and the tweak works.

Thanks a bunch!
[Nexus S 4G Android Development] JarffVC:
Doesn't seem to be any issues, just brilliant battery life :cool::D
[Nexus S 4G Android Development] benrees21:
I had to remove it, my phone kept crashing and battery would get extremely hot.

Sent from my Nexus S running NSCollab, Matted Blues Theme and Netarchy 1.3.7 cfs kernel (Perfection) ;)
[Nexus S 4G Android Development] shabbypenguin:
what setting did you have it at? did you have setcpu installed? (or other cpu controlling app?)
[Nexus S 4G Android Development] benrees21:
No setcpu. Had it set 100mhz - 1.2ghz 25% reduction on battery

Sent from my Nexus S running NSCollab, Matted Blues Theme and Netarchy 1.3.7 cfs kernel (Perfection) ;)
[Nexus S 4G Android Development] shabbypenguin:
well sorry it didnt work out for ya :(
[Nexus S 4G Android Development] benrees21:
No worries.

Sent from my Nexus S running NSCollab, Matted Blues Theme and Netarchy 1.3.7 cfs kernel (Perfection) ;)
[Nexus S 4G Android Development] nmoreman:
I'm having issues. I flashed, turned on with terminal. If I type command, I get numbers, but I get a $. When trying to enter anything else, permission denied. Won't let me remove it, permission denied. Typed su (rooted), denied.

I guess I really need to know if it's running. Using matrix 1x3 on asop premium+

So seems to be opening at 1.2. I was going to turn it down, can use no frills, just need to know I'd

F this is running so I don't have conflicts
[Nexus S 4G Android Development] SA-07:
Hmm you can use the set at boot option in setcpu
[Nexus S 4G Android Development] nmoreman:
Glad you are reading since this is linked to your kernel.

Is the battery tweak in yours, or even the rom? I keep reading if you turn on setcpu, they can not play well together. That is why I gave my readings, I've loaded the tweak, but doesn't look like its running with su. I will download setcpu

if its not working, my download from xda isn't working on that either????

And didn't know if I should leave my phone running at 1200. Love the response, and as long as it doesn't overheat and especially if I can make it thru a day without plugging in, I'm good. Just flashed yesterday, haven't truly tested, downloaded and updated yesterday,but its looking very good for making it. I'm at 67% at 3:30, on since 7, not a lot of use, but also bump charged (used GPS), so again, looking good for now.

And change of topic, does this kernel support BLN - that is what I miss and would love to have running. Free didn't work on Net's kernel before I loaded yours in ASOP Premium+. No problem buying if it works.
[Nexus S 4G Android Development] SA-07:
I think you need to apply the tweak separately. And yeah, bln is in Matr1x
[Nexus S 4G Android Development] nmoreman:
Thanks, it looked like bln was in yours, but was also in Net's, yet free didn't work.

I will purchase and see if this works with yours.

And for the tweak, just asking. I did flash seperate. Shabby had noted in some previous conversations that this tweak might clash with setcpu. I have read and reread his instructions, using terminal. It will register numbers after one input (he says that means its running), but when I go to batt-cfg, it will allow me to select a choice, but doesn't seem to save, won't give su permission, and won't let me delete, so I'm about ready to decide its not running.

Since these are all new in combo, just trying to be sure I don't cause myself grief

when things don't play nicely.
[Nexus S 4G Android Development] infernosoft:
Automatic Script

I find myself going into terminal emulator way too many times in one day to enable and disable this amazing tweak, so I decided to look for a way to automate the script.

I looked on the Android Market and came across

GScript Lite

which allows you to basically write shell code and save it so you can just click and have it run. What I'm planning on doing is having a 'Disable' and 'Enable' script.

The problem is, that the batt-cfg script needs to be run and then requires input. So I tried looking at the code to batt-cfg and batt.sh so I can just copy the 'Enable' and 'Disable' code and make my mini scripts, but I don't know if I'll catch all of it.

shabbypenguin, would you be able to help in telling me which parts of the script I need?

I appreciate it and all the work you do - this tweak is amazing :)
[Nexus S 4G Android Development] shabbypenguin:
you could always have it just run and set a certain setting, if you look in the scripts and remove the menu and just have it set whatever then should be fine. all the options are in /system/etc/batt.conf

you could just have the script echo 1 to enabled and that will enable the script and then echo 0 to enabled and have that disable it :)
[Nexus S 4G Android Development] infernosoft:
Okay, thanks. So, regardless of whether or no it's enabled or disabled, batt.sh should be running at all times?
[Nexus S 4G Android Development] shabbypenguin:
ideally no, but that quick setting will disable it from changing stuff

but i never bothered to mess with it so it may very well shut down after one cycle (polling event)
[Nexus S 4G Android Development] infernosoft:
Okay that makes sense. I wasn't sure if the tweak ran as a daemon or not, but it doesn't seem like it.
[Nexus S 4G Android Development] Nexism:
just wanted to say...

thank you shabby for this great tweak. i have had very noticable battery life gains using this.

-Nexism
[Nexus S 4G Android Development] TheBurgh:
can you run the tweak and profiles in setcpu together
[Nexus S 4G Android Development] belvedere:
going to give this a whirl and see if I notice any drastic changes. using the default 1000 MHz settings.

edit: well I could tell a definite difference but at the expense of performance... but that's not all surprising as that's clearly the point of this tweak. I think if you're struggling to get and need a solid day's worth of battery, you should try out this tweak. UV'ing and using the Smartass governor works well enough for me. This will probably be useful the next time I go on a trip where chances to recharge can become fewer and far between.
[Nexus S 4G Android Development] imekul:
So how big of a difference is this making for folks? I'm always up for saving some battery life. :-)
[Nexus S 4G Android Development] shabbypenguin:
no you do not want setcpu or any other cpu managing app on your phone, if your on cyanogenmod you can confirm that the tweak is working properly when you go into cm settings and check teh max cpu in there. it will show things like 940 or 820 stuff you cant select normally.
[Nexus S 4G Android Development] TheBurgh:
thanks for the help
[Nexus S 4G Android Development] snakattak3:
Not starting at boot

I'm having a little trouble getting this to start at boot running the Matr1x kernel.

Is there a way this needs to be placed in start-up scripts?
[Nexus S 4G Android Development] Skimp Killah:
Last time I had this on my phone I went 17 hours with normal usage and still had 30 percent battery.

Shabby, what undrvolt setting do you use?

Sent from my Nexus S 5g.
[Nexus S 4G Android Development] shabbypenguin:
there is no undervolts in place, just underclocking. use with proton for best results

as for startup scripts unless mathkid broke something it should start on boot by itself ;)
[Nexus S 4G Android Development] SA-07:
Lol I never broke anything
[Nexus S 4G Android Development] snakattak3:
OK thanks. I'll just start it manually every reboot for a bit to see if the new 5.5 kernel update gives anyone else problems. In case anyone else has the same issues I've got:

Kernel 2.6.35.13-ck1-bfs-gd3b4a74 shankar@matr1x #24

Build: GRJ22
[Nexus S 4G Android Development] Skimp Killah:
I mean in proton, I set it to the recommended settings, which I think is -20mv for all frequencies

Sent from my Nexus S 5g.
[Nexus S 4G Android Development] b-reezy:
Would this cause my battery to take 8+ hours to charge from 40% to a full charge?
[Nexus S 4G Android Development] shabbypenguin:
b-reezy, whatchu doing over here? :P

what do you mean? as in it takes forever to charge? #blamesamung for that... there was talks of making fast charge work ages ago on the epic no idea on how to do it or w/e
[Nexus S 4G Android Development] b-reezy:
I switch phones like crazy. I have an evo, epic, nexus, evo 3d & picking up that photon in an hour or so. Lol

But I plugged my phone in at 12:30am it was at 42% I woke up at 9am and my phone was at 93% still haven't hit 100%.
[Nexus S 4G Android Development] shabbypenguin:
you were able to charge to 100% fully using the same rom etc previously and the only difference is battery tweak?

the only thing i can think of if thats the case is that it may be conflicting with something else(cm settings, setcpu, no-frills, etc etc) and causing a clash in each trying to set cpu speeds and as such causing both to run more then they should effectively draining the battery more then it should.. causing it not to charge as fast as it should :)

however samsung phones are notorious for slow charging and not charging 100%
[Nexus S 4G Android Development] Maximilian Mary:
The phone was probably done charging a couple hours ago. It stops charging at around 93-95% to avoid unnecessary battery stress, which shortens lifespan.
[Nexus S 4G Android Development] Skimp Killah:
14.5 hours off battery, pretty heavy use for a few hours, 20 % left. On the latest netarchy bfs with proton undervolting everything -20

Sent from my Nexus S 5g.
[Nexus S 4G Android Development] kbshowtyme:
I got about 15 hours but I had to change the performance in CM7, before I didn't know to change anything but now I use consevative and its great
[Nexus S 4G Android Development] Nexism:
quick question...

....please forgive the question if it is "dumb" or has already been answered. i was flashing the latest cm so i had to re-flash the batt tweak. i noticed in the instal script "grj22" the mod seems to be working fine with grj90 but i was wondering if the batt-tweak needs to be updated or is the curr version ok thanks in advance?

-Nexism
[Nexus S 4G Android Development] shabbypenguin:
its fine, the script still pulls teh same things, i put that in to let people know that that version was made for grj22... nothing more then cosmetic :)
[Nexus S 4G Android Development] Nexism:
wow thank you for the quick reply shabby. tweak works great btw.

-Nexism
[Nexus S 4G Android Development] lackonne:
my battery stopped charge when e reaches 96% of this happens before I use the battery tweak and 94% after using the battery tweak apps.

is there a way to charge up to 100% return

enclosed the screen captured.

it say bat status: full but bat level 94
[Nexus S 4G Android Development] shabbypenguin:
i decided to be nice, i had a long sarcastic post written up but instead ill take the 3-4 mins and just post a ****load of links

all i did was type in battery 100 into the search on the general forums.. theres all are threads with this issue in the op, of course ive browsed many more like this one... that have it hidden deep in it.

http://xdaforums.com/showthread.php?t=1177419

http://xdaforums.com/showthread.php?t=1168104

http://xdaforums.com/showthread.php?t=1145042

http://xdaforums.com/showthread.php?t=1018618

http://xdaforums.com/showthread.php?t=1040229

http://xdaforums.com/showthread.php?t=882679

now bear in mind these are just off the general section's search (i only went in 2 pages)

here is some from Q&A

http://xdaforums.com/showthread.php?t=1124816

http://xdaforums.com/showthread.php?t=1091103

http://xdaforums.com/showthread.php?t=1085155

http://xdaforums.com/showthread.php?t=1080665

http://xdaforums.com/showthread.php?t=1073849

http://xdaforums.com/showthread.php?t=1068888

http://xdaforums.com/showthread.php?t=1051486

http://xdaforums.com/showthread.php?t=1029969

http://xdaforums.com/showthread.php?t=1019214

so to answer your question.. i do believe there is a rumor going around that someone may have heard about this issue.. but dont hold me to it
[Nexus S 4G Android Development] lackonne:
I'm sorry about that or my language because English is not my mother language I'm from Indonesia, btw thank you your kind information
[Nexus S 4G Android Development] ronnienyc:
how to remove the script?

Nice work Shabby.

How can this be removed form the phone, other than reverting to a prior Nand backup?

Using the uninstall script, I got errors such as:

Mount: Operation Not Permitted.
[Nexus S 4G Android Development] shabbypenguin:
make sure you run it as root :)
[Nexus S 4G Android Development] chalan30:
lol

(10 char)
[Nexus S 4G Android Development] jholm7:
Feedback

I love the where this is going. I gave it a try using MIUI 1.8.5 and Netarchy Nexus 1.3.9-bfs.

My setting are as follows:

BFS

USB 200MHz-1.2GHz

AC 200MHz-1.2GHz

Battery 200MHz-1GHz

No change to any setting not listed.

The USB and AC ranges work perfectly; however, the battery setting is odd. Last night, when switching to the battery presetting, it was set at 980MHz instead of 1GHz, naturally defaulting to 800MHz as max. Today it changed to 950MHz for my 1GHz setting, again, maxing at 800MHz.

I'm gonna tweak a couple of things and try a couple kernels and edit this post with more feedback.

Thanks for the awesome work.

EDIT: Kernel changed to Netarchy Nexus 1.3.7-bfs

Settings:

noop

rest unchanged

Simmilar results:

Charging fine

battery 960MHz instead of 1GHz

EDIT2: No change in kernel

Settings:

Battery 800MHz

Results:

784MHz setting, max load at 400MHz

EDIT3: No change in kernel

Settings:

Battery 1200MHz

Results:

1.176GHz setting, max load at 1GHz

EDIT4: Kernel change to Matr1x 5.5-bfs

Settings:

Battery 1200MHz

Results:

1.164GHz setting, max load at 1GHz

Charging settings still correct.
[Nexus S 4G Android Development] shabbypenguin:
yes as teh battery lowers so does the cpu speed, thats the whole concept of this script. so those "setting" are for when its 100% battery or plugged in. as you lose battery you lose performance. thus maximizing battery life :)

i have noticed that with this phone you do get some odd numbers tho, on the heroc it would just stick to whatever the next hiughest step in the kernel was, but here it seems to skip em
[Nexus S 4G Android Development] jholm7:
Ah. That explains why what I saw and what I read didn't seem to wash. The implementation wasn't what I expected.

Very clever. ;)

I will just have to experiment with battery levels. I guess I have to actually unplug my phone long enough to actually discharge past 90%. At least I know it won't take very long.
[Nexus S 4G Android Development] LordLugard:
Ok, so i flashed the zip and not sure what else there is to do. I made sure to uninstall setCPU so as not to conflict as was mentioned it could. Haven't really noticed any better battery life. It's 5pm now and down to 26%, not impressive.

Not sure if the tweak is even working or if i've "set it up" properly. Go easy on me now...is there anything else i need to do in regards to this tweak to make sure it's working and doing its thing? :o

Fired up terminal emulator to confirm if the tweak was infact running but there's a $ sign i can't seem to get rid off to input the commands in the O.Post.
[Nexus S 4G Android Development] shabbypenguin:
what rom are you running? what kernel?

type in su and youll get #
[Nexus S 4G Android Development] LordLugard:
MIUI 1.8.5 ROM is what i'm on.

Ok, typed in su first (thx for that) and got a number, 107. So i guess it's working (supposedly)...
[Nexus S 4G Android Development] shabbypenguin:
what kernel are you on?
[Nexus S 4G Android Development] LordLugard:
Oh sorry, Matr1x kernel.
[Nexus S 4G Android Development] SA-07:
Hmm really? That's really odd....maybe try flashing the other variant? ( cfs/ bfs)
[Nexus S 4G Android Development] shabbypenguin:
i swear you have a script that detects whenever someone says matr1x in that thread you get a notification. to test this i am gunna go find obscure forums and post about your kernel ;)
[Nexus S 4G Android Development] LordLugard:
Why do you think i need to flash again? According to the original post, if you type the code in terminal and get a number value then it should be working, and also on irc, they recommended CFS vs BFS.
[Nexus S 4G Android Development] SA-07:
I just suggested, but its up to you ;)
[Nexus S 4G Android Development] clj575:
Hey Shabby, I am trying to remove the battery tweak on my current set up. Getting a message after running batt-rm.sh stating mount: permission denied (are you root?) and rm: remove '/system/bin/batt.sh

I also try to remove the tweak in the menu in batt-cfg but nothing happens...

Any ideas? I am using netarchy's 1.4.0 cfs universal kernel with miui 1.8.26.

I ran batt-cfg again and completed the removal option then exited..went back into terminal and ran pidof batt.sh and nothing came up so I assume this was removed. Not sure what happened but the first few times it wouldn't remove the tweak.
[Nexus S 4G Android Development] shabbypenguin:
this is a power users script. you need to be # when you use any of teh commands....
[Nexus S 4G Android Development] clj575:
You need to be what?
[Nexus S 4G Android Development] fergie716:
You have to be in adb shell
[Nexus S 4G Android Development] clj575:
The op suggests terminal or adb...I am using terminal as previously stated.
[Nexus S 4G Android Development] shabbypenguin:
regardless of terminal or emulator, you need to have root privileges, so type su in to get to # if your on $... if your on $ the scripts wont work...
[Nexus S 4G Android Development] clj575:
thanks...my phone was getting hot so I wanted to remove all the mods and tweaks to see what was causing it.
[Nexus S 4G Android Development] penpen72:
question

What happened to the step by ster directions on how to get this to work. I ran it before...then got distracted by my Photon and now wanting to go back to NS4G. There was directions on the OP originally.
[Nexus S 4G Android Development] PRBajista:
Nevermind..................
[Nexus S 4G Android Development] Bobguy21:
The step by step is on the first page. It tells you all you need to know. But it runs on its own if its working on your device. Get mobile terminal app for free from the market and type su to get superuser privaleges and then types: pidof batt.sh if there is a number then its running. :)
[Nexus S 4G Android Development] Bobguy21:
I'm running this on the miui.us rom with an extended battery. It has been unplugged for 14 hours and has been in moderate to heavy use and it is still at 68%. I love this tweak and the devs who put it together. You Guys solved the one problem I have with android. (The battery) Now my life is complete. Thank you. +100 Rep. :) also it stays running after any boot at all. Awesome.
[Nexus S 4G Android Development] Bobguy21:
Awesome got to love this stuff :)

Nexus S 4G using miui.us with matr1x kernal 9.0 and batttweak RC1
[Nexus S 4G Android Development] pitbullmommy45245:
Will you still get good battery life with the 1000 setting?
[Nexus S 4G Android Development] Bobguy21:
Not the greatest BC you are setting it to maximum. But this tweak is made to correct battery drainage while running and on the go. And it is only 200 mhz more. I just like the default BC it is smooth as butter at just at 800mhz.

Nexus S 4G using miui.us with matr1x kernal 9.0 and batttweak RC1
[Nexus S 4G Android Development] pitbullmommy45245:
I just flashed it and i had bout 50% on my battery it seems like my batter has drained faster than normal. Im a heavy user to. Should i have waited till it was charged all the way? Or will it get better after a dew cycles?
[Nexus S 4G Android Development] Bobguy21:
You should have done a battery pull once fully charged when off. To reset battery stats. And it works fine from what I have read and it works great for me.

Nexus S 4G using miui.us with matr1x kernal 9.0 and batttweak RC1