yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Thunderbolt!

We all had an issue with the udated Script Manager app a while back. It was throwing that error. I never updated my Script Manager because I read of the problem on here before, so I caught it in time. Pikachu solved it, but I don't remember how. If you are using the updated version, roll back to the previous one. Maybe that will work.:)
[Android Software/Hacking General [Developers Only]] PIRATA!:
Well..what I use to do just before flashing the ThunderBolt CWM package is to set the Recommended settings in the Semaphore Script Manager, then set the Net filter tick and set correct Voodoo Color settings for my use...and leave everything as is like default.....then flash the ThunderBolt CWM package and reboot once again.

In this way am I doing it good? I never touch any settings in the Semaphore Script Manager after that.....

Ps: If I touch something instead....am I able to get things back as before by just flashing the ThundeBolt CWM upon everything again?

Thank you.
[Android Software/Hacking General [Developers Only]] Gowind:
Thanks buddy. But the best part is that I had bolt _Script folder both in the sdcard and internal memory when i just flashed the zips via CWM3 app. Now when i follow the procedure i don't get the bolt_script folder in my internal memory but its there in mt memory card. :) the scripts are inside the init.d folder and when i checked with terminal emulator i am getting the values as mentioned in the OP. strange thing is that i haven't run the script manager yet.

using GS2 with Siyay 2.6.6.

I have one more doubt, noobish may be. in CWM5.0.2.7 in mounts and storage you have USB storage. I dont need to mount that before flashing right...? :D
[Android Software/Hacking General [Developers Only]] sherpa25:
Does the latest set with the new updater_binary have to do w/ another version of CWM? Sorry, I backtracked but couldn't find the initial description on what the new updater does or why it's necessary, but saw that it might have to do w/ CWM 5 (if I remember correctly)? I'm still on CWM 3 but have v2.3.6 set installed. Or can I just install the latest set that comes w/ 2.3.7?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes you can :) As long as you're not using CM7/MIUI kernels that have the latest didle patch.

Remove the s70zipalign :)

Zach's kernel has the latest didle code. You cannot use screenstate_scaling unfortunately :(

Actually yes!

I forgot to mention about this. Zipaligned APKs are backed up in /sdcard/downloads. It's a backup, and can be deleted.

You should run Script Manager to complete the whole set. The values I put in the OP is just part of the values to checked upon. Script Manager step is necessary to get the best performance :)

Nope. No need to mount USB storage.

It's CWM 5.5 :)

Just install the latest set. Don't need to worry about CWM5.5 or CWM3 etc.
[Android Software/Hacking General [Developers Only]] Gowind:
But I'm facing a problem buddy, when I flash the thunderbolt zip as per the procedure, I'm having the bolt_Script folder in my external memory and not internal. How should I rectify this.
[Android Software/Hacking General [Developers Only]] Mopral:
Move your bolt script folder from your external to your internal SDCARD, then use script manager to run sqlite_optimize script and the remount script that match your phone config

I am not sure but it should also work from your external SDCARD
[Android Software/Hacking General [Developers Only]] Gowind:
Thanks buddy, gonna do that right away :D
[Android Software/Hacking General [Developers Only]] websinister:
suggestion

Hi pikachu01,

I modified your system_tweak for my liking and just want to share back on my modifications.

I noticed a bunch of for-loop statements and this is what I used to minimize them:

##### Get the working Directory

##STL=`ls -d /sys/block/stl*`;
##BML=`ls -d /sys/block/bml*`;
##MMC=`ls -d /sys/block/mmc*`;
##ZRM=`ls -d /sys/block/zram*`;

for i in stl bml mmc zram;
do
ls -d /sys/block/$i*
return=$?
if [ $return = 0 ]
then
DIR=`ls -d /sys/block/$i*`
fi
done

then you can replace:

for i in $STL $BML $MMC $ZRM;
do
#IMPORTANT!
if [ -e $i/queue/rotational ];
then
echo 0 > $i/queue/rotational;
fi;
...truncated...
done

with

if [ -e $DIR/queue/rotational ]
then
echo 0 > $DIR/queue/rotational
fi
[Android Software/Hacking General [Developers Only]] mathsmart:
is it ok to flash a new firmware over it or a rom without flashing the phone restore zip ?

I want to refresh my phone cause during this night after first try on this script my batt was at 16% and at the morning the phone doesn't want to wake because the batt was completely drained ! (I'm on kk5 checkromv4+neak 1.3+ics theme 1.7.2

but I'm not sure if its safe to flash a new firmware over it (Its should erase everything on it since I'm gonna WIPE all !

+ how I create a widget link to these script to enable or disable it ?
[Android Software/Hacking General [Developers Only]] JohnstonF:
Maybe you should charge your phone for a while and see if it boots.

I've personally flashed a new firmware over an existing one with all the thunderbolt tweaks active and had no side effects

To enable a widget i think you need script manager.
[Android Software/Hacking General [Developers Only]] tenkaishy:
Noob question here :p

does it work on all kernels? Like can i use it on the new siyab 2.6.6 ?

Thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, it's ok to flash a ROM over without removing ThunderBolt!. ThunderBolt! will be removed in this case.

What governor are you using? Try using OndemandX or Conservative instead?

There's no widget to disable the scripts. You have to remove it to disable it.
[Android Software/Hacking General [Developers Only]] pikachu01:
If you flash a new firmware, ThunderBolt! will be removed.

Yes, it works. I'm using it now actually.
[Android Software/Hacking General [Developers Only]] mathsmart:
yes I have script manager already just don't know how to creat a widget for the scripts lol

and my phone have booted after few minutes of charging I will download betterbattstats to see if something is wrong also !

Im gonna push the thanks button for you thanks for your quick respond :)

thanks pikachu ! I'm on neak kernel and enabled conservative gov+lionheart wish is (lulzactivev2 I think)
[Android Software/Hacking General [Developers Only]] pikachu01:
The phone booting after a few minutes of charging is due to NEAK using Siyah's source code. Both of them have this issue.

Lionheart = conservative governor :) Not lulzactive. It's different.

Also, the widget creation for Script Manager can be done this way:

1. Add Widget

2. Point to Script Manager

3. Point to the script

Sqlite_optimize is the only script that can be widgetized.
[Android Software/Hacking General [Developers Only]] marpo22:
please screenshot .. thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
Screenshot of?
[Android Software/Hacking General [Developers Only]] basily:
Dumb question I'm sure, but how do I remove thunderbolt if I want to? I'm on illuminance 3.01 and the latest corn kernel.

Do all the scripts in my init.d run on every boot? Do I need both the zip aligns and do I need the siyah thing?
[Android Software/Hacking General [Developers Only]] Gowind:
hey buddy, what all scripts do i need to install for the best performance in GS2 with siya 2.6.6. i have flashed the thunderbolt 2.3.7 and screen state scaling 1.4.8. i have launched the scripts as said in the 5th and 6th steps in OP. is that the best way to do or do i need to do something more to get the maximum results.
[Android Software/Hacking General [Developers Only]] Tatsuya79:
Don't play dumb! screenshot or it didn't happen! :p

Perhaps he thought you made a yellow theme with red fonts and a pikachu in the notification window... not sure.
[Android Software/Hacking General [Developers Only]] seeraj15:
Ive just installed the sqlite-optimize script and the libsqlite one. How do i know if they are working?
[Android Software/Hacking General [Developers Only]] pikachu01:
To remove ThunderBolt!, use the restore pack.

All scripts in your init.d run at boot.

If you have an extra zipalign file, you didn't remove it prior to installing ThunderBolt!. Only keep ThunderBolt!'s zipalign.

You don't need it if you're not using SGSII. It'll be skipped anyways, so no harm keeping it there.

All the other addons except for the 3G. Try it and let me know how it works for yo :)

Also, execute the remount (at boot) and sqlite_optimize scripts.

LOL.

Did you run the sqlite_optimize script? It'll appear to be faster, though both of those amount to ~1-5% of performance boost.
[Android Software/Hacking General [Developers Only]] marpo22:
No, I want to see what it looks like the android.

thanks
[Android Software/Hacking General [Developers Only]] seeraj15:
Yh I ran it but how do I if it is still on? Do I need to run it every time I reboot?
[Android Software/Hacking General [Developers Only]] nguyen47:
Thank for your super tweaks, it really help my phone. But my phone needs about 30s to connect to wifi. How can I speed up??
[Android Software/Hacking General [Developers Only]] pikachu01:
See what? There won't be any graphical changes.

Check the "How do I know if it works" section. No, you don't need to run it at every boot. It'll automatically do so if you follow the instructions.

In S98system_tweaks in /system/etc/init.d, search for wifi scan interval, and reduce the number. Or, you could turn on wifi from settings menu. The smaller the interval, the more battery draining it is if you're not connected to wifi and your wifi is still on.
[Android Software/Hacking General [Developers Only]] basily:
Thanks for the reply. So, do I use the stock i9000 Restore even though I have an i897 running Illuminance 3.01?

Would removing the scripts from my init.d folder be just as good or am I missing something?
[Android Software/Hacking General [Developers Only]] oztal:
after i installed the LMK 40mb addon, i get low memory message. how do i remove the addon?
[Android Software/Hacking General [Developers Only]] nizbot:
Sorry for a probably repeat question (searched the thread), but will this work for a i897UCKxx ROM? The requirements section of the OP really only calls for Android 2.3.x so I assume it will, but considering this is the I9000 forum I want to be sure before dropping in.

Thanks.
[Android Software/Hacking General [Developers Only]] basily:
Yes, it will. There's even a thread dedicated to it - check the captivate dev section.
[Android Software/Hacking General [Developers Only]] stevehkim:
pika with your new scripts after applying thunderbolt and screen state scaling it won't allow my phone to scale over 1200 mhz. I have my parameters set to 200-1400 it won't touch 1400. any reason?
[Android Software/Hacking General [Developers Only]] nizbot:
me fail. ty.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, use the i9000 restore. It's the same. :)

There are some files other than the one in the init.d

Do you want to remove the addon or replace it with a higher LMK? If you're replacing, just flash another one. If you're removing, do the restore pack and install whatever you want again.

Did you edit the screenstate_scaling script for it to have a maximum scaling frequency?

Edit: What governor are you using? This could help me troubleshoot better.
[Android Software/Hacking General [Developers Only]] stevehkim:
im using ondemandx. I didn't do any edits to any of the scripts. 200-1400 min/max. sio i/o scheduler
[Android Software/Hacking General [Developers Only]] pikachu01:
There's no ondemandX in version 2.6.6i of Siyah >.<
[Android Software/Hacking General [Developers Only]] stevehkim:
oops sorry ondemand. I tried every governer lulz, lagfree, smartass, ondemand, performance. none of them worked to get over 1200. even did benchmarks. cpuspy shows up 1200 only. i refreshed the timers, rebooted doesn't touch 1400.
[Android Software/Hacking General [Developers Only]] pikachu01:
I tried lulzactive and it was fine for me :/ For other governors, it required a restart for me for CPUSpy to show the correct stats.

Did you update to the latest yet? Including screenstate_scaling and the other scripts?
[Android Software/Hacking General [Developers Only]] oztal:
thanks for the reply, if i'll flash a higher mb, should it be better?
[Android Software/Hacking General [Developers Only]] nguyen47:
Hi, your tweaks confuse me about the battery. It stayed at 22%, a hour later , it jumped to 28%. Really strange here, I never experienced something like this
[Android Software/Hacking General [Developers Only]] bluedragon38:
Hello !i want to know ... it's possible to use this script with folowing things :

Hyperdroid andromeda

siyah kernel 2.6.6i

and i want to know if after a flash , i can use voltage control properly ?

thanks :jap:
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. Should work well. Yes, should be able to use voltage control properly :)
[Android Software/Hacking General [Developers Only]] bluedragon38:
Really thanks pikapika ;) :D
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Absurd slowness using the S98screenstate_scaling (v.1.49) script with governors:

AWAKE_GOVERNOR="ondemand"

and

SLEEP_GOVERNOR="powersave"

Maintained 100Mhz with the screen turned on.

any solution?

Thanks pikachu.
[Android Software/Hacking General [Developers Only]] pikachu01:
No prob :)
[Android Software/Hacking General [Developers Only]] microline:
pikachu,

after installation in CWM i miss one sistem file in

/system/etc/init.d/

S98system_tweak

can you please help, before that i was on ver. 2.3.5 and all was working and Rom was Check REVO V4

I'm on siyah 2.6.6i

TurkbeyRoom V30.2
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Updated ThunderBolt! to v2.3.9 with ondemand and a few other governors having their up_threshold tuned to 85. Also tuned a bit of the hotplugging and smooth_* on SGSII.

Changelog

1/12/2012 (2.3.9, screenstate_scaling 1.4.10)

- Tuned the ondemand, ondemandX and lulzactive to have up_threshold of 85.

- Tuned hotplugging in SGSII to be performance oriented a little bit.

- Tuned smooth_* to be performance oriented a bit.

1/12/2012 (2.3.8, screenstate_scaling 1.4.9)

- Fixed SOD/deadsleeping for SGSII kernels by disabling deepsleeplevel tweaking. Some phones can't handle it.

- Tuned ondemand,ondemandX, smartassV2, lulzactive governors again. Tuned hotplug settings again also (based on the governor tweaks). Added conservative governor tweaking.
[Android Software/Hacking General [Developers Only]] pikachu01:
Just install it again? You might have not installed it correctly.
[Android Software/Hacking General [Developers Only]] GirlKillu:
I've read through this topic but just wanted to make sure..

I'm using latest Semaphore Kernel, wich has a LMK feature.. I have set this to 92MB chainfire, thinking this will give me less lagg in big games. I have installed all your tweaks except the LMK addon, cause some ppl say you can't combine it with the Semaphore addon? I also read there are 2 ways of LMK, but i'm still a little confused.

I'm playing GTA3 atm, and hoping to get as far as possible, and hoping the LMK will help reduce the lagg a bit.

So what should i do please, also install Thunderbolt LMK?
[Android Software/Hacking General [Developers Only]] el_tute:
Pikachu,

with 2.3.8 on siyah 2.6.6i, I can't pass over 1.2ghz no matter the governor or if I set to run on boot or not (rebooting the phone of course). If I remove the scripts, everything works.

I believe that in 2.3.7 everything was working ok.

I've not tried yet the 2.3.9
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Thanks pikachu.

After applying this latest update I changed the parameters of the script "screenstate_scaling 1.4.10" to:

AWAKE_GOVERNOR="ondemand"

and

SLEEP_GOVERNOR="powersave"

And everything is working fine, ie, without slowing down...

thanks again.

***** EDITED *****

Now he is taking too long to wake up from sleep.

With SLEEP_GOVERNOR="powersave"

Now with SLEEP_GOVERNOR="conservative" he wakes up very quickly.

Any idea?

Thanks
[Android Software/Hacking General [Developers Only]] stevehkim:
Pika now with 2.3.9 tbolt and latest screen state scaling zip along with 2.6.6i still won't scale lower than 500 mhz using ondemand. Doesn't enter deep sleep either after 1 hour it spent most of it's time in 500 mhz. 2.6.6i is killing me. Never had so many issues with siyah before. Going back to siyah 2.6.1 as this was the best for me. Can I use your scripts for 2.6.1? After reverting back to 2.6.1 everything is normal. Deep sleep and cpu scaling is normal.
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
+1

it spent most of it's time in 500 mhz.

****** EDITED ******

I removed the script "/etc/init.d/S98screenstate_scaling" deep sleep and went back to being perfect.

No longer keeping 500 mhz.
[Android Software/Hacking General [Developers Only]] bluedragon38:
i follow your instruction ...

when i launch the script optimized its say:

ERROR : database is locked

ERROR no such collocation sequence : unicode

// : UNICODE

// : PHONEBOOK

// : PHONEBOOK

ERROR : database image is malformed.

:/

any solution pika ??
[Android Software/Hacking General [Developers Only]] ggogolewski:
from pika first post:

"sqlite_optimize can be executed at anytime. i.e. once a week to optimize your *.db files. It's usually a 30secs - 2minutes process. Ignore the "malformed database" and "No collation found" errors."

"sqlite_optimize script will produce errors like "malformed database" or "unknown collation sequence". It's normal, it means that these databases are not sqlite compatible, hence erroring out (skipped)."
[Android Software/Hacking General [Developers Only]] bluedragon38:
Ok but , i just have to wait ????? hors when error etc is write.. it's finnish ??

thanks.
[Android Software/Hacking General [Developers Only]] ggogolewski:
When finished a button in the left top corner is changed from "kill" to "close"

Wysłane z mojego GT-I9100 za pomocą Tapatalk
[Android Software/Hacking General [Developers Only]] bluedragon38:
Okay :) thanks for your explanation ! (im french .. i don't understand all english words :p )

so when i finnish it .. if i reboot my phone , i don't have to restart this ?

thanks for all !! :)
[Android Software/Hacking General [Developers Only]] yani2000:
OK, as promised few days back:

I'm back to report on a more pressing matter (should concern all I9000 users that are on Gingerbread!).

First to show what I'm currently using:

- Surface ROM v8.01 (XWJW1)

- Semaphore kernel v2.4.0

- Governor: SmartassV2 (from semaphore's kernel)

- Schedulers: Simplo I/O (from semaphore's kernel)

- ThunderBolt! v2.2.0 (nothing enabled)

- Addons: 3G i9000 addon v1.0.4, 40MB LMK Others addon v1.0.4, graphics prop addon v1.0.2, screenstate_scaling addon v1.3.1, ran remounti9000 script after boot

- No UV/OC !

And what I was using before:

- Juwe ROM v5.2 XXJVQ

- Semaphore kernel v1.3.3

- after few weeks of usage I also enabled Supercharger V6 (because I had launcher restarts)

- No UV/OC !

Now to start off with the problem...

After 3 days because of only 40MB LMK my phone starts lagging (I think it's reloading apps because it's out of memory). Proof? Use CPUMonitorMini! But this is of course expected because of this:

Now, I'm not 100% sure if this next thing is related and that's why I'm asking pikachu01 for more help, because he seems the right guy to hunt this bug down:

After 4-5 days of uptime my in-game progress doesn't get saved after ending/starting a game (I don't know when this bug is triggered and I only tested this phenomenon on Paradise Island game).

But here come the weird parts:

- up to 4 days everything was running perfect (minus the after 3 days uptime lagg)

- this doesn't occur every time I start the game!!!: sometimes when I start the game, do things really quickly and exit the game (in under 30 seconds) I get a higher chance that my in-game progress will be saved

- this started happening in Gingerbread ROMs (I was only on deodex JVQ and odex JW1)

- after I restart my phone everything was back to normal, so I know it's not game dev's fault but problem lies in ROM!

When my in-game progress wasn't saved I also checked RAM with OS Monitor and it was from 40MB and up to 100MB free (I think we can exclude LMK relation??). It must be something else that's triggered after 4-5 days of uptime.

In JVQ after 7 days of uptime, when I exited Paradise Island, I also noticed CPUMonitorMini would freeze for a minute or two (CPU stats would not be updated). It might not be related only to CPUMonitorMini, but to all background processes (CPUMonitorMini is the only app that I can actually notice when it freezes).

But because my phone froze when loading Widget list to add a widget to homescreen in GO Launcher EX and I had to reboot my phone, I can't test if I also have problems with my current configuration.

When on JVQ same things happened with and without Supercharger V6 script (I think we can also exclude script relation??).

In the end this might be a tough nutt to crack, because until now this bug was never mentioned before and I'm among the first ones to mention it (I searched thru Google, Paradise Island support, XDA) - I can't believe I'm the only one with this bug?.

:(

(I hope my english was good enough!)
[Android Software/Hacking General [Developers Only]] burakgon:
Can I set lmk more than 80mb?
[Android Software/Hacking General [Developers Only]] ZaneZam:
That means that everything went well! Button changes from "kill" to "close" because the script has finished his jop and you can "close" this screen now. the Green "Exit Code 0" shows you that it was closed without an error. ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
This is because, powering up the display is too slow on powersave. It's limited to 200MHz (or 100MHz if your minimum frequency is 100MHz). You should use conservative or smartassV2, lulzactive that has a screen off profile for this.

You're on ondemand right? Yes, you can use 2.6.1 Siyah kernel. Not sure if there was a setting that causes this.

This is on ondemand right?

Try using 50MB or 60MB LMK. You'll get lags with 40MB. Even if it shows 40MB-60MB most of the time.

Why would you is the question you need to answer.
[Android Software/Hacking General [Developers Only]] pikachu01:
For those who are having the "not scaling below 500MHz" issue, what app are you using to confirm this? Is it CPUSpy?
[Android Software/Hacking General [Developers Only]] oblivianz:
I really want to install thunderbolt but I can't mount sd card. Every time i try to mount it says 'Error mounting /sdcard!'. I tried selecting the format sd card option in CWM and the same error pops up. Also tried reinstalling the ROM with a full wipe and it still wouldn't work. Can someone please help me?
[Android Software/Hacking General [Developers Only]] 33t:
I'm on an at&t i777 running MIUI 1.12.30 with siyah 2.6.2i...

I'd like to revert.

Having trouble identifying the script to use for reversion.

Help.

Thanks!
[Android Software/Hacking General [Developers Only]] adrianmak:
when I run sqlite_optimize, there are errors

no such collation sequence: UNICODE
[Android Software/Hacking General [Developers Only]] pikachu01:
Some CWM has a bug with mounting sdcards (unless you put in an external sdcard). If that's the case, just extract whatever's in /sdcard in the CWM zip manually :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Use the SGSII restore. It's been confirmed that it works well :)

It's normal. Read the words when you run the script :)
[Android Software/Hacking General [Developers Only]] Dezmatch:
Picka with cm9 glitch pre5 and 2.3.9 thunderbolt i've got bootloop. It's not the problem:-) now cleaning script can't remove init.d files.... Permission seems to be ok. What can i do? Thx
[Android Software/Hacking General [Developers Only]] pikachu01:
Try using my restore pack?
[Android Software/Hacking General [Developers Only]] Dezmatch:
It's working on cm9?