yashsingh1/xdaforums huggingface dataset:
[Motorola Droid RAZR] BytecodeMe:
Then I can guarantee that you're doing something wrong, as I just tested it again. Are you hitting save after you set it up run as root and at boot? Is it on your internal sdcard? I can't think of anything else that could be wrong...

Sent from my XT912
[Motorola Droid RAZR] ruterjunior:
?

then just copy those lines and save it ready? any kernel?

my ics gsm 4.0.4 razrxt910
[Motorola Droid RAZR] garywojdan81:
Not sure what is different, but I followed the steps exactly, v.7 works for me but v.8 doesn't.
[Motorola Droid RAZR] BytecodeMe:
Let's see if this problem pops up again, I'll do some further research.

Yes, and save it to run as root and at boot. This is not a custom kernel, it's just changing values.
[Motorola Droid RAZR] therazrguy:
the script isnt working for me i am running 672.180.33 :(

Any suggestions on how to make it work?
[Motorola Droid RAZR] BytecodeMe:
Are you running it at boot and as root? Then rebooting? Are you taking the text and making a .txt file, then copying the text in?

Sent from my XT912
[Motorola Droid RAZR] therazrguy:
Yes I have made it as a txt file and then put I have allowed it on su and boot

Am I doing something wrong?

Visit my channel on youtube

youtube.com/Therazrguy
[Motorola Droid RAZR] kreez:
this script is not working on my razr running the 672.180.33 too.. :(
[Motorola Droid RAZR] dtrail1:
The script is working best on the 180.17 kernel (built 22th may). I tried both kernels.

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] therazrguy:
So this means this script doesn't work on the newest euopean leak (672.180.33)

Is there a way to make it work i need it badly plz help !

:)
[Motorola Droid RAZR] BytecodeMe:
Which script are you using, and are you rebooting?

Sent from my XT912
[Motorola Droid RAZR] dtrail1:
Just flash the kernel from 180.17

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] therazrguy:
I am using both the scripts

None of them is working :(

Visit my channel on youtube

youtube.com/Therazrguy
[Motorola Droid RAZR] prstorero:
How do I know if the script is truly having an effect on my device? The icons stayed as su and boot in script manager so I know they start up when I boot the phone but idk how to tell if its really having an effect or not
[Motorola Droid RAZR] BytecodeMe:
Check the log in script manager, if it says it was run successfully, it's working.

Sent from my XT912
[Motorola Droid RAZR] prstorero:
After every line it says cannot create. No such file or directory. And there's 3 logs of it when I hit view logs on boot
[Motorola Droid RAZR] BytecodeMe:
Yeah, if you downloaded that file, then that's why it isn't working. The downloader breaks the formatting which breaks the script. So take the text of the script, make an new file .txt file, copy paste the script in, and run it as root and at boot.
[Motorola Droid RAZR] prstorero:
Alright I'll try that and report back when I get the chance to get it running
[Motorola Droid RAZR] prstorero:
This is now what I get
[Motorola Droid RAZR] BytecodeMe:
This has to be on the root of your internal sdcard to work. But from that log, that's all that's missing.

Sent from my XT912
[Motorola Droid RAZR] prstorero:
Double post sorry. Refer to the one below this one
[Motorola Droid RAZR] prstorero:
It is on the root of my internal
[Motorola Droid RAZR] BytecodeMe:
Okay, then it looks like it's working then.
[Motorola Droid RAZR] prstorero:
Hmm odd I wonder why it has SD-ext in the command in there
[Motorola Droid RAZR] prstorero:
Since this is a kernel tweak, would setting my own values from setcpu break the script? Like screen on I have Max at 1ghz and screen off max is 600mhz.
[Motorola Droid RAZR] BytecodeMe:
No, that would not break the script.

Sent from my XT912
[Motorola Droid RAZR] prstorero:
I just installed the ikream rom and I still get that it says cannot create. No such file or directory found and its on my internal SD and all. I wish there was a sure fire way to know its working :P but thanks for the hard work :)
[Motorola Droid RAZR] BytecodeMe:
Try going into the text editor on Script Manager, it has to be script manager. And see if it has weird squares at the end of some of the lines, delete them and see if it works.

Sent from my XT912
[Motorola Droid RAZR] prstorero:
Here's a pic of the code, at the end of the lines. If by weird squares, you mean brackets, there aren't any. If not brackets I still don't see anything at the end of the lines :P
[Motorola Droid RAZR] BytecodeMe:
Try using an app like ROM Toolbox/ JRummy16's Busybox Installer to run the script. Try copy and pasting the script in there and running it as root ands at boot.
[Motorola Droid RAZR] housas08:
On .39 european leak it doesn't work. Tried all methods. Some of the files (for example sched_features) do not exist when i explore the kernel folder.
[Motorola Droid RAZR] BytecodeMe:
Hmm, it was there before...just tells me I need more sleep.:laugh: Taken out, try again with the new script.
[Motorola Droid RAZR] prstorero:
Got it. Is there a way to know if its working with rom toolbox now? And should I delete the file from script manager? Idk if they conflict with being run from two different apps.
[Motorola Droid RAZR] BytecodeMe:
Go into ROM Toolbox, and check under Kernel Tweaks here are the values they need to be:

Dirty Ratio:90

Background Dirty Ratio:80

VFS cache pressure:15

Under CPU Control:

Governor=hotplug
[Motorola Droid RAZR] housas08:
Finally i got it to work! the only error that occured is:

sched_compat_yield (no such file)

but i checked inside toolbox, and values were as expected.

thank you!
[Motorola Droid RAZR] prstorero:
Mine are all different values
[Motorola Droid RAZR] BytecodeMe:
Do you have it to be set at boot in ROM Toolbox, as in settings is it run as root?
[Motorola Droid RAZR] prstorero:
Yup
[Motorola Droid RAZR] BytecodeMe:
Try taking the text and make a new file and using the same text, use the scripter in ROM Toolbox.
[Motorola Droid RAZR] prstorero:
I did that from the start, I started fresh :/
[Motorola Droid RAZR] The Sensei:
Got the same problems.

My values :

Dirty Ratio:20

Background Dirty Ratio:5

VFS cache pressure:100

BTW I cant see "Under CPU Control" in the options,using ROM Manager Premium (Latest Build)
[Motorola Droid RAZR] housas08:
If you have time and patience you can pair a bluetooth keyboard and type the code in rom toolbox manually from scratch.

Or if you want to make sure that the code works on your device, just go to a terminal emulator type: su

and then insert any line of the code. If by pressing enter no error occurs, then there is something wrong in the text file you insert (some missing # for example) and you have to check line by line.
[Motorola Droid RAZR] BytecodeMe:
I meant "CPU Control". What script are you using?

Sent from my DROID SPYDER
[Motorola Droid RAZR] The Sensei:
I am using the battery maximize script.
[Motorola Droid RAZR] dtrail1:
Same here and I also can't get it to work. The values are 95,60,D50. When using smanager I get only errors "no such file...". Set as root and on boot. Script lays on the the root of SD.

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] housas08:
If you want, try and use this attachment. It is tested and is recognised by script manager without any errors. Used it already in my both Razrs with success.
[Motorola Droid RAZR] The Sensei:
^ FAIL .
[Motorola Droid RAZR] housas08:
Could you at least post the error log or a short description?

I don't know if you really tried my attachment and you replied in 1 min though or it was referring to previous post! :)

*update: Tried running the script through both internal storage and external sd with success (after completely removing file and then using the attachment)
[Motorola Droid RAZR] dtrail1:
Looks like it's working. There is just one syntax error: "newline" unexpected...

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] prstorero:
Is this how the script is supposed to look? If so what's it supposed to do cause its way different than the normal battery script
[Motorola Droid RAZR] housas08:
I removed just 1 line "echo "1" > /proc/sys/kernel/sched_compat_yield" cause it doesn't exist in my kernel files (using .39 leak)

i've mentioned it 1-2 pages before.

ALL the other lines are EXACTLY the same. It seems unordered when you open it with notepad, and that's why it works. If you copy paste the code from OP to notepad it becomes corrupted and can't be read right from the apps.

All the editing that i've done was through the phone editors.

Proof on the attachment (Razr screenshot).

As far as the new line error i don't think that it causes any conflicts. ;)

You can confirm this from the kernel settings through Rom Toolbox.

p.s. I can't open your attachment... And mine seems broken too... :S

-ok, i uploaded the image:

http://imageshack.us/f/24/screenshot2012070221103.jpg/
[Motorola Droid RAZR] therazrguy:
Link is broken my friend
[Motorola Droid RAZR] housas08:
There must be something wrong with all the attachements the last hours...

i uploaded to google docs.

https://docs.google.com/open?id=0B1vV1mGH5rAOcW8wZ0NCVU8xVEE

Just go to File and select download.

If any problem occurs, please inform me.

I just tested a downloaded file from the link above and it works.

edit: You have to open it using desktop layout if you are browsing through your mobile in order to be able to file -> download.
[Motorola Droid RAZR] The Sensei:
^ Why do you get that error? And BTW the author of the script says that it will NOT work unless it has been put in the root of the internal storage.

And about the error that you get,can you compile another file with the FULL code so that new EU leak users can use it hassle free?
[Motorola Droid RAZR] housas08:
Here is the OP code

https://docs.google.com/open?id=0B1vV1mGH5rAOdzc2MnV1SlJyZHc

The reason why it doesn't work to many of you is because windows notepad has Dos/Windows EOL (end of line) marker and Linux - Android demands UNIX EOL.

This conversion can be done through notepad++ on windows

My google docs links are already converted and ready to use. (and ofc tested)

I got that error because i have the latest leak available and that's .39 of the European leaks so, i don't have this file in my kernel folder... I guess when you update to a newer leak the error will occur to you too.

It works ANYWHERE you place it because it RUNS AFTER SU command, and this means that the script (line by line) applies on the root folder no matter what (and the file's original path DOES NOT MAKE ANY DIFFERENCE). You can find out by typing su on any terminal emulator on your phone and simply enter any type of command afterwards (the exact same way script manager works, it goes to the root folder via su command and then apply the code there).

These are Linux basics, hope i made it clear now.
[Motorola Droid RAZR] prstorero:
Here's what I get with the file you uploaded
[Motorola Droid RAZR] BytecodeMe:
^^^^^^^^^Means of worked for the most part. ^^^^^^^^^^^

Thank you! You've helped a lot of users!

When did I say it had to be on the ROOT of the sdcard? I only said it had to be on internal, and that was only to be safe.

Sent from my DROID SPYDER
[Motorola Droid RAZR] housas08:
I'm not surprised cause that's what appears to me as well. (both leaks .33 and .39)

So use my first upload in which this line is erased:

:)

https://docs.google.com/open?id=0B1vV1mGH5rAOcW8wZ0NCVU8xVEE

+1 to all

I have to admit that your script is VERY EFFECTIVE! I completed 24 hours using it and my battery lasted 30 to 40% longer!

Great job!

Feel free to use my links for your OP if you want!
[Motorola Droid RAZR] BytecodeMe:
I will, with all credit to you is course.

Sent from my DROID SPYDER
[Motorola Droid RAZR] prstorero:
Seems to be working full proof now :) thanks for making the script and also thanks to hous for the help on getting it to work for me :)

Just fyi I'm running the .211 ics cdma :)
[Motorola Droid RAZR] BytecodeMe:
Noted in the OP to uses housas08's script if you're having problems. Hope you enjoy the script!
[Motorola Droid RAZR] housas08:
I'm glad that i helped guys!

ATTENTION!!!

IT SEEMS THAT ROM TOOLBOX HAS SOME KIND OF BUG AND IT DOESN'T READ THE TRUE VALUES OF OUR KERNEL FILES SOMETIMES!!!

I roll back to .33 version yesterday (which apparently will be the final one for European users) and tried to apply the battery patch again. Everything seemed to work ok but when i got into ROM Toolbox the readings were completely wrong. Further more, it couldn't set the governor to hotplug. So i thought it was unable to handle any modifications.

I downloaded antutu CPU Master, set Governor to Hotplug SUCCESSFULLY and then tried to verify that the script works...

SO

IF YOU WANT TO BE COMPLETELY SURE THAT THE SCRIPT IS ENABLED, AFTER CONFIGURING IT WITH THE INSTRUCTIONS OF THE OP, THEN REBOOT YOUR PHONE AND OPEN A TERMINAL EMULATOR.

THEN TYPE:

su
cat /proc/sys/vm/dirty_ratio

and press enter

if the number that appears is 90

then the script is enabled. Otherwise (if you see a different number) it's not.

Ofc you can try and compare any other line of the script's code (meaning to type cat and the path that leads to the modification of the file) just make sure that the value matches the one of the quotes inside the script.
[Motorola Droid RAZR] netblaster:
Ι get exact the same log, but the values in ROM Toolbox don't change as they should...

Any ideas?!
[Motorola Droid RAZR] Skyblue93:
I'd like to give some advice cuz I was having trouble with it too yesterday (I'm on .33 leak) but now it work.

I used the performance script and ROM tool box. At first, I copied the script, but it didn't work. The values were different as posted on this thread.

I then I realized when I copied the text/script and pasted it in scripter...It created a space at the bottom, so all I did was press back space at very bottom of the script and it worked. :)

Check the spacing at the top and bottom. :)
[Motorola Droid RAZR] housas08:
I suppose it's a .33 ROM Toolbox bug after all... Just try my verification method posted on the previous page... It should be ok!
[Motorola Droid RAZR] dtrail1:
I tried everything and it still doesn't work. Does it matters when using setcpu at the same time?
[Motorola Droid RAZR] housas08:
Can you describe your problem? You can use setcpu, or any program that can set the governor to hotplug on startup.

I suppose you don't use simultaneously 2 programms to set your governor.
[Motorola Droid RAZR] dtrail1:
The problem is I tried any method which is described here and I don't get the values in terminal emulator. I tried Rom toolbox and Smanager. And of course I don't use two programs to set cpu frequency. When used Rom toolbox I've deleted setcpu before.
[Motorola Droid RAZR] BytecodeMe:
Are you making sure nog to open it up in any windows based text editor?

Sent from my DROID SPYDER
[Motorola Droid RAZR] housas08:
Which leak do you have?

.33 and .39 are the most common and i've tested them both (and many other mates i asked)

if you run the script, you get errors?

I suggest you to uninstall ROM Toolbox cause it doesn't work with the official ics europe release... I've been using antutu to set the governor at Hotplug and sManager to run the script.
[Motorola Droid RAZR] icecreamsandwich:
so im new to scripts, it booted on startup of rhe device(su notification) but as soon as i run the script manually it says permission denied...
[Motorola Droid RAZR] dtrail1:
Type su first.

@ Leviathan: Sure, I did it directly via my razr. What exactly has to be displayed in the smanager log that shows me that it works correctly? When there is a green "0" there are errors in the log like "no such file or directoy"...
[Motorola Droid RAZR] housas08:
If you see more than one "no such file or directory" errors, then the txt file is not well-formated... try my converted txt. link on the original post.

It should be error free or at most with 1 error (due to the missing file for the european leaks) meaning the /proc/sys/kernel/sched_compat_yield line.
[Motorola Droid RAZR] dtrail1:
Look:
[Motorola Droid RAZR] teelium:
I use a governor called Eternityprj_MCPmot_hotplug and an I/O scheduler named vr. Will these interfere with any of your scripts? I'm mainly thinking about the battery improvement script.
[Motorola Droid RAZR] housas08:
this is definitely a misformated txt file... download and try mine.

https://docs.google.com/file/d/0B1vV1mGH5rAOcW8wZ0NCVU8xVEE/edit?pli=1

go to file --> download and put it in your phones memory. Open with sManager as usual... set on boot and su.

you should be ok then.
[Motorola Droid RAZR] biggiesmalls657:
I noticed your Android OS and system are way to high. Phone Idle should be at top and you can double or even triple you battery.
[Motorola Droid RAZR] dtrail1:
Dude, when phone idle is on top it means that you didn't use your device for a couple of hours/days. On ICS it's normal that screen is on the first place, when something else is there instead of screen, something is wrong!
[Motorola Droid RAZR] biggiesmalls657:
Yes well if Android OS is above phone idle then doesnt that mean the cpu is awake when the screen is off?
[Motorola Droid RAZR] dave_k605:
Ty 4 this

Sent from my SCH-I500
[Motorola Droid RAZR] biggiesmalls657:
I have a modified build.prop that I made myself to help with battery. Many things I have done to my phone to get a nice build but I dont know how to make it into a zip to flash with the md5 stuff? A dev willing to show me or do I need to know a lot?
[Motorola Droid RAZR] icecreamsandwich:
thanks, is that battery saving or performance?
[Motorola Droid RAZR] garywojdan81:
I have a working init.d now, can I implement these scripts through that?
[Motorola Droid RAZR] housas08:
Glad I helped!

It's the battery saving one.

I suppose you can implement it, but I haven't tried it.
[Motorola Droid RAZR] BytecodeMe:
If you use the battery saving script then nothing will be interfered with. If you use the battery script however, then you Governor and I/O scheduler will be messed with.

No, android OS takes up battery when you have widgets, when you switch bands a lot, when your connections are turned off and on a lot, when there are a lot of force closes, etc. I have 2 widgets, and JuiceDefender turns my connections on and off a lot. Just because it's high doesn't mean that, the phone was kept awake.

If you give me the files, this weekend I'll make it into a flashable .zip. Only reason I haven't done the same with this is because the user would have to have an init.d folder.
[Motorola Droid RAZR] biggiesmalls657:
I do and can send you my build.prop.
[Motorola Droid RAZR] garywojdan81:
Couldn't get it to work with init.d but script manager works fine.
[Motorola Droid RAZR] biggiesmalls657:
Heres the file :)
[Motorola Droid RAZR] garywojdan81:
What exactly have you tweaked?
[Motorola Droid RAZR] biggiesmalls657:
MaxEvents/sec to 220

Wifi Scan Interval 180

Larger Virtual Memory to 128m

pm.sleep_mode=1

ro.ril.disable.power.collapse=0

small tweaks but i want to learn more ;)
[Motorola Droid RAZR] dtrail1:
I did it for you ;)

---> https://dl.dropbox.com/u/58821234/buildprop_modified.zip
[Motorola Droid RAZR] biggiesmalls657:
How did you do that? I want to help mod things and do stuff. Can I come out and play with my friends mommy? lol Thanks dude!
[Motorola Droid RAZR] BytecodeMe:
You beat me to it. :)

There are plenty of guides on XDA, look them up.

Sent from my DROID SPYDER
[Motorola Droid RAZR] An1mA:
Just flash the builprop who dtrail made in cwm right?
[Motorola Droid RAZR] BytecodeMe:
Yes, clear cache and dalvik to be safe.

Sent from my DROID SPYDER
[Motorola Droid RAZR] BytecodeMe:
With your permission, I would like to enhance that build.prop and add it to the OP?

Sent from my XT912 with Tapatalk
[Motorola Droid RAZR] biggiesmalls657:
I would be honored.

Edit: cause actually after i sent you that build.prop I relooked to make more tweaks and found something interesting. If you add the line of code ro.mot.deep.sleep.supported=true to multiple sections in the file you get it to sleep more and i am at a day on battery with 63 percent left and i have used my phone hard the first 20 percent
[Motorola Droid RAZR] dtrail1:
If that really works, I will test it, modify it and publish it to more people :)
[Motorola Droid RAZR] biggiesmalls657:
If it bootloops you have SS to back you up. I have modified the build.prop since the Ally for tweaks and smoothness/performance. I used to use apps but wanted to get more involved with android. We are an awesome community! :) It would cool to modify the mapphone. Someday
[Motorola Droid RAZR] biggiesmalls657:
This would be my battery stats I promised everyone :) I texted 20 to 50, took 13 and a half minutes of HD video, facebook countless times, mobile data on some and or wifi, just played with, forums. This device deserves a medal. Also if you change the io scheduler to Noop you definitely see a better battery experience.
[Motorola Droid RAZR] dtrail1:
Your build.prop gets me a battery drain about 2% per minute! :D

Mate, I am sure that this can't work on every device. Otherwise every user has to modify its own file because everyone has another Rom. The other thing is that you can't really safe battery or get better performance with a modified build.prop, this can be handled best by the kernel and it's settings.
[Motorola Droid RAZR] biggiesmalls657:
What rom are you on? Is your device a CDMA device? Razr and maxx are the same device.

Also same software, did you wipe dalvik and battery stats?
[Motorola Droid RAZR] dtrail1:
No need to wipe dalvik for another build.prop - it has nothing to do with app cache. I have an EU Razr, yes I know that they are all same hardware. I've checked your file. It's from verizon, CDMA, and everything worked, which means that ICS is now "multi-network" verified :) So there will be no GSM ptach neede in the near future, GSM users should be able to use US-Custom Roms which were compiled to the official ICS. Thanks, dude! That's great to know!

Btw: I am running Epsilon Rom. I figured out, that I have the best battery life when removing any tweaks, scripts, battery-apps and stuff like that. No more changing betwenn 2G/3G and I have the same battery life like seen on your screenshot, but with much more usage! ;)

What I mean is, better let the build.prop as it was before and wait until Kexec will be released. With the use of custom kernels we will get awesome battery life and great performance!
[Galaxy S II Q&A, Help & Troubleshooting] emk2z:
Hello to all and thanks for your time.

First of all i did search about such a thread and could not find any which seemed to help including the stickies.

My problem is something on my room is misbehaving and chews trough the battery like hell.i need help identifying it.

To id my system :I'm on 9100xxlpw stock rooted no additional battery managers.

to describe the problem. I charged the phone to 100% and 5 hours later it was 50%.(i was sleeping so they're was no usage)

CPU spy reports 30 min of deep sleep rest 200mghz.

I'll add battery stats later.but basically Android system is chewing the batt. System appears to sleep but doesn't go deep sleep
[Galaxy S II Q&A, Help & Troubleshooting] MistahBungle:
Install BetterBatteryStats. That should give you some clues as to what's causing the drain.
[Galaxy S II Q&A, Help & Troubleshooting] emk2z:
Added Screen shots, please ignore media player and usb. I took screen shots as soon as I notice strange stuff but somehow system showed the screen shots duplicated so I deleted duplicates. Later I noticed I deleted the originals (most probably there was one c to begin with but gallery showed me duplicates, which is strange :confused:).

New ones are taken after apprx. 1 hour of XDA browsing & listening to music.
[Galaxy S II Q&A, Help & Troubleshooting] Sun90:
open BBS app then press soft menu key ones then select more and in that press Dump to file

then u see the log file in ur internal sdcard, post the same so that it can be checked to determine the wakelocks causing batt drain:)
[Galaxy S II Q&A, Help & Troubleshooting] emk2z:
Gladly....