Related
I just used this script found HERE
Follow the directions...
Required:
rooted phone
busybox installed [get from market]
Terminal Emulator [get from market]
make sure your rooted and busybox installed....
Im using my deodexed rom, not debloated, my ram is hanging at 183-185mb
any questions about script ask in the original thread.
any questions on working on continuum, post in this thread
phone is amazingly faster!
NOTE: looks like it unroots phone.
To reroot use superoneclick 2. 3. 3
I'm working on what we can do to stop this...
Good find! This is a good boost.. What this does is:
The phone has a selected amount of memory for it's tasks. Over time this memory gets used up. When the phone's memory reaches a specific amount the phone automatically deletes specific files.. In the process of all of this, everything is slowed down. What this script does is delete the cache which is using up the ram/memory. Instead of allowing the phone to manage this, this script deletes the files in a specific interval.. In this case, i think it is every hour(don't quote me)..
I utulized something similar to this in my previous rom.. it however lowered the point the phone deleted the items out of memory automatically.
Many scripts like this are out.
Code:
#!/system/bin/sh
# Adrenaline Shot
sync;
sleep 1
echo "3" > /proc/sys/vm/drop_caches;
echo "1" > /proc/sys/vm/drop_caches;
sleep 1
echo " ** Turbo Boosted ** ";
One option you could do is create an init.d script to automatically run this(as long as you have imnuts' custom kernel installed)
Likewise, as long as you have busybox installed you should be able to make an sysctl script that will run this on boot.
pattielipp said:
Good find! This is a good boost.. What this does is:
The phone has a selected amount of memory for it's tasks. Over time this memory gets used up. When the phone's memory reaches a specific amount the phone automatically deletes specific files.. In the process of all of this, everything is slowed down. What this script does is delete the cache which is using up the ram/memory. Instead of allowing the phone to manage this, this script deletes the files in a specific interval.. In this case, i think it is every hour(don't quote me)..
I utulized something similar to this in my previous rom.. it however lowered the point the phone deleted the items out of memory automatically.
Many scripts like this are out.
Code:
#!/system/bin/sh
# Adrenaline Shot
sync;
sleep 1
echo "3" > /proc/sys/vm/drop_caches;
echo "1" > /proc/sys/vm/drop_caches;
sleep 1
echo " ** Turbo Boosted ** ";
One option you could do is create an init.d script to automatically run this(as long as you have imnuts' custom kernel installed)
Likewise, as long as you have busybox installed you should be able to make an sysctl script that will run this on boot.
Click to expand...
Click to collapse
Thanks for explaining it. Did imnuts get unit.d to work? I did not see a confirmation
Sent from my SCH-I400 using xda premium
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
With imnuts kernel init.d scripts are working.. they are finicky, but i did have them working for a period of time when i was looking into init.d and sysctl scripts.
biznazz said:
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
flash another ec09 build.. most include root capabilities.. If you want a stock deodexed and rooted build go with ciscoo's build.. if you want deodexed adn debloated, i have a release out.. Both of these are rooted...
biznazz said:
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
As did i lol... superoneclick 2.3.3 works
Sent from my SCH-I400 using xda premium
Ok thanks ciscoo. Could you add that bit of info into the op for others that decide to flash this. thanks duder
Sent from my SCH-I400 using xda premium
Sure will. I wasn't sure until u mentioned it.
Sent from my SCH-I400 using xda premium
Just tried this,FREAKIN AWESOME!
Sent from my SCH-I400 using Tapatalk
abby_nitewolf said:
Just tried this,FREAKIN AWESOME!
Sent from my SCH-I400 using Tapatalk
Click to expand...
Click to collapse
Did it unroot ya though?
Sent from my SCH-I400 using xda premium
ciscogee said:
Did it unroot ya though?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
Just flashed. Insta unroot. S1c rerooted fine. Here's my question. I looked, before I rooted again. Su is still in bin, and su and busybox are both in xbin. Maybe someone better with scripts can clear this up, but i can't see where the boost script should affect su at all. I looked at the updater script, and the boost script itself. I'd be very curious, if someone knows.
Sent from my SCH-I400 using Tapatalk
When you run this it removes all running scripts and applications from the ramdisk that are stored in the cache. Root is given at startup as well as other scripts being run only once, however they stay in the ram until the memory is needed, then they are replaced. This completly clears the cache.. for those running this, if you reroot your phone does this unroot it again after a specific amount of time? 1 hour or 1 day after the script is run?
pattielipp said:
When you run this it removes all running scripts and applications from the ramdisk that are stored in the cache. Root is given at startup as well as other scripts being run only once, however they stay in the ram until the memory is needed, then they are replaced. This completly clears the cache.. for those running this, if you reroot your phone does this unroot it again after a specific amount of time? 1 hour or 1 day after the script is run?
Click to expand...
Click to collapse
Rerooted at 0730. It's 1245 now. Just checked and i still have root.
Sent from my SCH-I400 using Tapatalk
Txwolf1980 said:
Rerooted at 0730. It's 1245 now. Just checked and i still have root.
Sent from my SCH-I400 using Tapatalk
Click to expand...
Click to collapse
Is ram still down also?
Sent from my SCH-I400 using xda premium
To be honest, There was only an 11mb drop with me. But, that (such as it was) is back up. Just ran it again, kept SU, but usage actually increased... Figures, I'd have the retarded phone of the bunch. Kinda supports the whole 'phone reflects it's user' line of thought.
yeah i was confused when it unrooted me. i just pushed the files back in and activated root again. It has been a day already and i still have root. i had about a 30mb difference with me. it may not be much for others but for me every mb counts.
In script OP. not this threads OP. Is the fix for unroot problem.
Sent from my SCH-I400 using xda premium
ciscogee said:
In script OP. not this threads OP. Is the fix for unroot problem.
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
Lol you beat me to it, i was about to post that
Sent from my ADR6425LVW using Tapatalk
Hey all, back again with a new present! I guess my hiatus didn't last that long.
This time I present to you a script that will in theory (and so far for me, in reality) save us some battery without having to risk our hardware with undervolting! I present to you...
CPU Sleeper
What is it?
Its a fairly simple script that will put CPU 1 OFFLINE when the screen turns off. Once the screen comes back on, it will allow CPU 1 back ONLINE.
How does it work?
Since we have dual core CPUs, we have a CPU 0 and a CPU 1, core 1 and core 2, while the screen is off we really only need to have 1 core active, this script will make sure CPU 1 shuts off while the screen is off, then resumes normal usage when the screen comes back on.
Who do we thank for this awesome script?
eugene373 is the one that released this for the T989 (the phone I use) and I thought, hey, with our crappy battery life, we could use this! So, I asked his permission to repost it over here for us, and he was great with his reply, be sure to stop by and give him a thanks!
Here is his original release thread.
WARNING! READ THIS!
This script relies on init.d OR script manager! CM9, for some reason, tends to run this at the exact same time it runs some other script (I forget atm which) and it will clash, causing no boot! CM9 users MUST use the script manager version install! Flex Reaper appears to work fine with it as init.d. I strongly urge you to use the script manager version of this, NOT the flashable version. Always make a nandroid backup before modifying the system, including this!
Instructions
Available in 2 versions, script only version which you can place wherever you want and run however you want, or a CWM/TWRP flashable zip that will place the file for you in /system/etc/init.d and set permissions.
Version 1: Flashable
Same as any of my flashable releases, I did most of the work for you!
Make a full backup
Download to external SD card
Install from SD card
Pick the cpu sleeper zip file
it'll be almost instant
reboot
Shouldn't be any need to clear caches or anything like that.
Version 2: Script only
This can be run in 2 ways, via init.d support, or via script manager. Both are pretty similar, and can be done a number of ways, however this is the basis of how.
Init.d supported kernel:
Make a backup!
Download the script file, making sure no extensions get added onto the file. Copy the file to /system/etc/init.d and set the permissions to the following:
XOX
XOX
XOX
Once done, reboot the system, and it will take effect when your system is finished rebooting.
Script Manager
This method is probably the better method, and should work with any kernel/ROM. Download the script file, making sure no file extensions get added, and copy it to /system/etc. Set the file permissions to:
XOX
XOX
XOX
Once done, load up script manager, select browse as root (if it isn't already set from the crossix mod method in the guide) then browse to /system/etc and select the script file S98cpu_sleep, then select ROOT and BOOT options. After this is set, reboot system.
What do I do if I can't boot after using this?
You made that backup, right? Ok, then here is what you do.
Hold the power button until the tablet powers off
Press and hold the volume down button, next to the screen lock switch
Press and hold Power (while holding volume down)
Once the recover kernel message comes up, release the buttons
In CWM go to advanced, mounts, mount system, then format system
In TWRP, go to wipe, then wipe system
In CWM go to restore, advanced restore, restore ONLY system
In TWRP select restore, then uncheck all so ONLY system is checked
After restoring system, wipe cache and dalvik cache, then reboot system.
System should boot normally.
Downloads
Available in 2 versions, script only version which you can place wherever you want and run however you want, or a CWM/TWRP flashable zip that will place the file for you in /system/etc/init.d and set permissions.
CPU Sleeper Flashable zip
CPU Sleeper script only
Nice do u think this can help me with my sleep of death? Im having that bug ... its not that bad but i guess if this would help me with that
Enviado desde mi A100 usando XDA Premium HD app
So that's where Eugene went. He was a godsend when he was developing for the vibrant. His stuff is always top notch. Will try this out and let you know.
Sent from my A100 using Tapatalk 2
Deshabilitado said:
Nice do u think this can help me with my sleep of death? Im having that bug ... its not that bad but i guess if this would help me with that
Enviado desde mi A100 usando XDA Premium HD app
Click to expand...
Click to collapse
Honestly I don't know, I've never had SoD on my Acer so I didn't even know it was much of a problem. You could try it, but I don't think it'll do much to help that issue. For me I've found turning off wifi when I plug it in for the night helps with SoD issues on my other devices. And in developer options check keep awake. That usually helps.
Tapatalked from my Galaxy S II.
illego said:
So that's where Eugene went. He was a godsend when he was developing for the vibrant. His stuff is always top notch. Will try this out and let you know.
Sent from my A100 using Tapatalk 2
Click to expand...
Click to collapse
Yeah he's been hammering out kernels for us since we got ICS and source on the 11th, busting ass and making some awesome kernels!
Edit: I mean he's been there longer then that, just he's been working on kernels lately lol
Tapatalked from my Galaxy S II.
pio_masaki said:
And in developer options check keep awake. That usually helps.
Tapatalked from my Galaxy S II.
Click to expand...
Click to collapse
Where i found that, setting-> then what?
Deshabilitado said:
Where i found that, setting-> then what?
Click to expand...
Click to collapse
Settings, all the way at the bottom by about tablet, developer options, then third down, stay awake.
Tapatalked from my Galaxy S II.
pio_masaki said:
Settings, all the way at the bottom by about tablet, developer options, then third down, stay awake.
Tapatalked from my Galaxy S II.
Click to expand...
Click to collapse
Thank you man u really rocks! I hope u still with us helping noobs like me
Sent from my GT-S5670 using xda premium
Deshabilitado said:
Thank you man u really rocks! I hope u still with us helping noobs like me
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
Lol I'm just not taking on anymore projects, I'll still be around the forum
Tapatalked from my Galaxy S II.
The install method true CWM gives me:
E: Error in /sdcard/clockworkmod/CPU_Sleeper-A100.zip (status 0)
Installation aborted.
gertjanad said:
The install method true CWM gives me:
E: Error in /sdcard/clockworkmod/CPU_Sleeper-A100.zip (status 0)
Installation aborted.
Click to expand...
Click to collapse
No clue what that means. I'll check it out maybe I missed something.
Tapatalked from my Galaxy S II.
pio_masaki said:
No clue what that means. I'll check it out maybe I missed something.
Tapatalked from my Galaxy S II.
Click to expand...
Click to collapse
That error is usually caused by a bad download.
Thanks for that, never seen it or heard of it before. Either way I'm going to go back over it and double check, and add a /system/etc version for use with script manager. Same basic flash, just not in init.d. While I'm at it, I'm thinking of making a flasher for SU, for those having issues with SU and busybox.
I've got it installed using script manager. How do I know it's running/working?
Try: busybox ps l |grep nameofscript
You will need busybox and grep binaries in your rom, neither are provided with stock but both should be if you are using cm9/10.
Sent from my A100 using xda premium
Original ICS ROM is not supporting init.d, right?
gertjanad said:
The install method true CWM gives me:
E: Error in /sdcard/clockworkmod/CPU_Sleeper-A100.zip (status 0)
Installation aborted.
Click to expand...
Click to collapse
I got that error, too! Redownloaded to check.
Since "flashable zip that will place the file for you in /system/etc/init.d and set permissions" it has to be that way on original ICS ROM (not supporting init.d), right?
Re: [Script]CPU Sleeper A100
SGH-i200 said:
I got that error, too! Redownloaded to check.
Since "flashable zip that will place the file for you in /system/etc/init.d and set permissions" it has to be that way on original ICS ROM (not supporting init.d), right?
Click to expand...
Click to collapse
No, that just means it puts the file there and sets the permissions, it doesn't need anything to be there first. Why would it already need to be there?
If stock ICS doesn't support init.d then this won't magically make it work, you'll need a new kernel.
Sent from my HTC DNA
pio_masaki said:
CPU Sleeper
Click to expand...
Click to collapse
Reason for editing the OP - discontinued (I guess)?
mixednuts said:
Reason for editing the OP - discontinued (I guess)?
Click to expand...
Click to collapse
Yeah I missed this one when I was marking them before. I no longer actively support the a100 as of a few days ago. I'll still respond and over some support on my past projects, just won't update anything.
Sent from my Nexus 7 - JBSourcery 4.5
pio_masaki said:
Yeah I missed this one when I was marking them before. I no longer actively support the a100 as of a few days ago. I'll still respond and over some support on my past projects, just won't update anything.
Click to expand...
Click to collapse
Not much you can do without physcially having an a100
Plus, I'm sure the Nexus 7 is much more fun!
Taking this down for now, I have a rom coming out tonight
Hey all, some of you may know me from other sammy forums. I currently don't have a galaxy s iii yet, so am limited to what I can do in terms of development at the moment, but would like to release some build prop tweaks for you guys to get things running a little smoother.
The build.prop is attached at the bottom, just unzip and adb push to /system or place it there using root explorer and change permissions to match the existing file.. Enjoy, I will have more to come soon
For the latest lf9 Update.
Awesome to see you here! Used Blazer on my SII right up until last month! Can't wait to see whats in store.
infideler said:
Awesome to see you here! Used Blazer on my SII right up until last month! Can't wait to see whats in store.
Click to expand...
Click to collapse
Glad to be here.
Gonna see that Blazer revamped? Lol happy to see you here blazer rom best ever
What will this do? Sorry never really done anything with my build prop before.
bizdady said:
What will this do? Sorry never really done anything with my build prop before.
Click to expand...
Click to collapse
Just some tweaks for things like touch responsiveness, picture quality, network tweaks, etc.
Sent from my SPH-D710 using xda app-developers app
If we place it there with root explorer should we unzip it first? or place the zip there also?
Edit: Should we reboot the phone after adding this to the system folder? How is it activated? Thank you in advance
Unzipped, moved to /system, and replaced file. Tried a reboot but no dice. I suggest you know for sure that a mod is going to work before you post. No disrespect
swampy67 said:
Unzipped, moved to /system, and replaced file. Tried a reboot but no dice. I suggest you know for sure that a mod is going to work before you post. No disrespect
Click to expand...
Click to collapse
Did you change permissions? And what do you mean by no dice? Won't boot? Don't notice a difference? Phone runs worse?
Specialksg1 said:
Did you change permissions? And what do you mean by no dice? Won't boot? Don't notice a difference? Phone runs worse?
Click to expand...
Click to collapse
Phone wouldn't reboot at all, and if the permissions needed to be changed why wouldn't the OP say something about that?
Sent from my SPH-L710 using xda premium
swampy67 said:
Phone wouldn't reboot at all, and if the permissions needed to be changed why wouldn't the OP say something about that?
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
Probably just forgot. For future reference, It's something you should always do when replacing a system file. Change permissions to match the existing file.
Specialksg1 said:
Probably just forgot. For future reference, It's something you should always do when replacing a system file. Change permissions to match the existing file.
Click to expand...
Click to collapse
Thanks for that tid bit. Wasn't trying to bash OP, I just wanna clear things up.
I just placed in system folder then rebooted no issues. Nice to see ya here phantom
Sent from my SPH-L710 using xda premium
ghostzyden said:
I just placed in system folder then rebooted no issues. Nice to see ya here phantom
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
Maybe I'm just an idiot, I'll give it another shot
Sent from my SPH-L710 using xda premium
I placed the build.prop file in the /system directory and gave it a reboot. My phone didn't show the boot animation. Wouldn't boot at all. I had to restore from a nandroid.
I used root explorer. Perhaps it can only be done using adb?
Sent from my SPH-L710
Hiro14 said:
I placed the build.prop file in the /system directory and gave it a reboot. My phone didn't show the boot animation. Wouldn't boot at all. I had to restore from a nandroid.
I used root explorer. Perhaps it can only be done using adb?
Sent from my SPH-L710
Click to expand...
Click to collapse
I used root explorer and had no problems.
I'll re-download and try again tomorrow.
Sent from my SPH-L710
There seems to be a bunch of different root explorer apps in the play store.. Is one better than another? and if so please recommend.
Tsudeily said:
There seems to be a bunch of different root explorer apps in the play store.. Is one better than another? and if so please recommend.
Click to expand...
Click to collapse
I think most people will agree that root explorer by speed software is one of the, if not the best file manager on the play store
Sent from my SPH-L710 using xda premium
This mod is for the latest ota update. As I said I don't have a device to test has it worked for anyone. Also, if any flashaholics would like to test for me PM me, I will send you my gtalk account info. I am working on cooking up a rom, without a device though I will need testers.
Sent from my SPH-D710 using xda app-developers app
How do you know when it's running and do you have to run it
Every time you reboot?
You need too locate the init.d file and set it to run at boot. If it's working you will know because when you run the script it will say you are supercharged 100%
Sent from my SGH-T989 using xda premium
rymanh said:
You need too locate the init.d file and set it to run at boot. If it's working you will know because when you run the script it will say you are supercharged 100%
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
I thought I'm remember reading that you were not Supposed to set it at boot. If you read the original thread it will tell you how to tell if it is working. And that is after you install it use 17 to reboot and open it with script manager again and when it come up the options list it will say your super charged below the list
Sent from my SGH-T989 using xda premium
In the script it advises not to run the script at boot but you are supposed to go to etc/init.d and set the S99SuperCharger and Bulletproof aps to run at boot.. Other wise you will need to run the script every time you start your phone
Sent from my SGH-T989 using xda premium
rymanh said:
In the script it advises not to run the script at boot but you are supposed to go to etc/init.d and set the S99SuperCharger and Bulletproof aps to run at boot.. Other wise you will need to run the script every time you start your phone
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
I have been in the intd folder before but I never seen
Anything about making run at boot. And by the way I am running
Cm10 official and it says I am 75% supercharged. I think that's
Because my ROM deletes something every time I boot.
edshawn911 said:
I have been in the intd folder before but I never seen
Anything about making run at boot. And by the way I am running
Cm10 official and it says I am 75% supercharged. I think that's
Because my ROM deletes something every time I boot.
Click to expand...
Click to collapse
Until I figured out I would have the same problem as you.. Only 75% whenever I reboot my phone.. After you set the file to run at boot it will be 100% every time I promise... Btw bulletproof apps is optional and doesn't count in your supercharger percentage.. But if you want it to work properly ou need to set it to run at boot as well
Sent from my SGH-T989 using xda premium
rymanh said:
Until I figured out I would have the same problem as you.. Only 75% whenever I reboot my phone.. After you set the file to run at boot it will be 100% every time I promise... Btw bulletproof apps is optional and doesn't count in your supercharger percentage.. But if you want it to work properly ou need to set it to run at boot as well
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
thanks a lot for your help. could you maybe give me your exact steps
so that i can use that as a guide. thanks in advance..
I use the smanager app... After you set up V6 the way you want it navigate to the file location specified near the top of the screenshot... etc/init.d/S99SuperCharger and make sure SU, and boot are set.
That's all you have to do
Sent from my SGH-T989 using xda premium
Is it possible to get init.d working on a SGH-T889 that is rooted, and running the latest stock rom and kernel?
I managed to make the folder, and chmod it to 777 via a terminal, and my tweaking apps create scripts in said folder that are pre-modded to 777, but they fail to launch at boot.
I would like to stay as close to stock as possible, but I love being rooted.
What can I do to find a happy medium?
Sent from my SGH-T889 using xda premium
EncryptedFile said:
Is it possible to get init.d working on a SGH-T889 that is rooted, and running the latest stock rom and kernel?
I managed to make the folder, and chmod it to 777 via a terminal, and my tweaking apps create scripts in said folder that are pre-modded to 777, but they fail to launch at boot.
I would like to stay as close to stock as possible, but I love being rooted.
What can I do to find a happy medium?
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
You have to enable this in the ramdisk
Sent from my SGH-T889 using xda app-developers app
I believe apps like script manager can do this, but you can also get init.d support using busybox and an edited script in /system/etc/. Otherwise - what ptmr3 said
Busybox run-parts with installrecovery.sh, it works on many, many devices with stock kernels. Just make sure you don't inadvertently delete the script from recovery.
Darkshado said:
Busybox run-parts with installrecovery.sh, it works on many, many devices with stock kernels. Just make sure you don't inadvertently delete the script from recovery.
Click to expand...
Click to collapse
That would be the one
headscratch.gif
I'm extremely computer literate, but only fairly adept at matters pertaining to android/rooted actions.
I have above basic Linux knowledge as well, so if you point me in the right direction, I should be able to take it from there.
//I meant to add I have busy box installed.
Sent from my SGH-T889 using xda premium