yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] pikachu01:
Did you recalibrate after flashing ThunderBolt!?

My battery normally goes down pretty fast after a CWM flash. Battery so far is good for me. Which version are you using Talon or Others?
[Android Software/Hacking General [Developers Only]] pikachu01:
Ok, I've ran both Talon and Others in Script Manager. Both are working well for me. No errors.

If I had to guess, you might be using some text editor that writes extra spaces into the screenstate_scaling file. And that completely broke the last "fi". If you edit the file using Script Manager's own editor, you'll see it. I once experience this too. Hence, I installed VIM onto my computer and it worked well so far.

This can be easily solved by putting a semicolon on the last

fi;

I will update this in the next version when I have a bundle of changes. For now, just add a semicolon on the last "fi".
[Android Software/Hacking General [Developers Only]] keuda:
Great, thanks, Ill try it out once I get home. :)
[Android Software/Hacking General [Developers Only]] kalvinlou:
Does 1.9.2 work with latest CM/Fugu/ICS Miui? Thanks for answer.
[Android Software/Hacking General [Developers Only]] jcvr:
Ok, i've changed it ... and now it runs a litle more but then it gives me "295: syntax error: "fi" unexpected (exoecting "then")
[Android Software/Hacking General [Developers Only]] pikachu01:
It's some other instructions that got whacked by the extra space. Recommend that you use the original one and edit it using Script Manager or VIM.
[Android Software/Hacking General [Developers Only]] strickyy:
Nope, don't even try. Bootloop even on stock CM7.
[Android Software/Hacking General [Developers Only]] rmean:
Yes i recalibrated, got a new battery (i9003 1650mah), so i had to do it anyway :)

I'm using "others" version on stock deodexed jvt, semaphore 1.8.2.

Regards
[Android Software/Hacking General [Developers Only]] GreenSGS:
Another observation:I was using smartassv2 as awake and on demand as sleep but somehow performance was dropped when coming to awake and yeah battery on scaling and using only smartassv2 does not differ much.

Removed scaling and now its more consistent. Are there more advantage of scaling?
[Android Software/Hacking General [Developers Only]] Fenvarien:
With ThunderBolt 1.9.2 I have the best battery life I ever experienced with my I9000. After 13,5 hours of medium usage (no gaming) there are still 77% battery remaining... and I flashed to 1.9.2 during this time.

Thank you Pika for your great work!
[Android Software/Hacking General [Developers Only]] Sqb:
+1 on battery life being awesome and I'm still on my initial charge since flashing so it should get a little better even. Thanks again for all the hard work

Sent from a rock on fire in the middle of the sea
[Android Software/Hacking General [Developers Only]] freaked9:
Im unable to install Thunderbolt again, its the fourth time i try.

I was on Mintberry 1.11.11 with NeoXX beta9.

I installed latest NeoXX.1 than entered CWM and did the following:

mounted /system and /data

-installed CM7MIUI restore.zip

after that without restarts:

-installed libsqlite addon

-installed bin files addon

-> restart

The phone hangs at kernel's bootsplash.

A few weeks ago i tried to install it with restarts but didn't worked->someone wrote i should try without.

I flashed the kernel again(it cleaned the init.d folder), and tried to install only the main thunderbolt file, but happened the same.

Any suggestions? What im doing wrong?

Is this the problem with the screenstate_scaling file?
[Android Software/Hacking General [Developers Only]] frogger5:
I got the same problem as UP.

I mount /data and /system, flash script and then it's stuck on bootsplash logo;/

CM 175 Neo 18 kernel.
[Android Software/Hacking General [Developers Only]] pikachu01:
Not bootloop, but hangs at boot. I've already documented it here: LINK

Removing screenstate_scaling should make it work.

A new battery usually takes a few weeks to run its course to get the full battery. It's normal. It's even documented in the manual, no?

If ondemand and smartassV2 is sleeping well (smartassV2 has sleep code and the patched ondemand by newmail (Link), you should use ondemand/smartassV2 all the way.

I've already documented it here: LINK

Removing screenstate_scaling should make it work.

I've already documented it here: LINK

Removing screenstate_scaling should make it work.
[Android Software/Hacking General [Developers Only]] keuda:
Ok. I have it. Script manager was causing errors in code too. I downloaded VIM for windows, in my case win64binaries and followed installation steps.

You can get it from http://www.vim.org/download.php#pc

Once running this program, I edited the script to choose the governors. No errors in code this time, no adding ";" needed. I saved the script and moved to init.d , rebooted, and after a small test changing governors in voltage control, exit voltage control and screen off. I came back to voltage control and governor this time was again set back to what I have edited in the script. So now its working.

ahh I almost forgot, I set all permissions to the script itself and to /lib/modules/cpufreq_conservative.ko and to lib/modules/cpufreq_smartass2.ko. Dunno if really its needed but I did it this way and worked.

Hope it helps. Now time to testing the script. What are the best combo results usually reported by people?.
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Thunderbolt!

Thanks, pikachu, for all your hard work. I just flashed 1.9.1 last night, recalibrated, used flawlessly all of today, and now see that 1.9.2 is released. My battery hasn't settled in yet. Will wait, therefore, as tomorrow you will probably release 1.9.3, lol.:D
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, doing all that will guarantee it to work. I use ADB to check whether screenstate is working or not. And it does work flawlessly for me. Hence, use VIM :)

Yeah, 1.9.3 is currently in testing :P
[Android Software/Hacking General [Developers Only]] KMino:
Can't wait for next release :D on TalonDEV and the screenstate scaling, setting governor doesn't work like before.. Edited on PC to avoid errors. (yes read above)

Don't know what is up, wish I kept backup of my scripts, never do when needed :)
[Android Software/Hacking General [Developers Only]] Rebel2k:
Great! What are you working on? What will be the changes?
[Android Software/Hacking General [Developers Only]] flolep:
Hmm, I had to do it too to edit correctly this file... Really strange that text editors in root explorer and script manager are not able to correctly edit this script of 19 ko... When we edit it and save it, it is cut by more than a half and becomes 9 ko... Hence giving errors in executing script. Vim editing on pc was the only good solution. Thanks keuda and pika.

Really not the easier one and I hope I won't do it with every future version of thunderbolt :(

For battery consumption, the hell it's good, pika... And for performances too.

But to just let you know, I tried the 3 best i9000 kernels (latest versions) on xda, first galaxian, then talon, and then semaphore, equally through 2 full weeks, and, really, my opinion doesn't change... Galaxian not stable, talon lagging after some time (even if it is better with your scripts, and I was doing your drop cache script and even clearing zram sometimes with memory freak, but really, after some times, talon is unusable and the only solution is to reboot) and finally semaphore, and really, this last one is the more stable, smooth like hell, and not loosing any performance after more than 2 days of use without reboot (unthinkable with talon).

I tried these three kernels with and without thunderbolt every time. And every time your scripts were optimizing things even more. But they don't hide completely the defaults / advantages of the kernels and we can feel the differences under, even with your scripts on.

Sorry to say that, but TALON MEMORY LEAKS ARE STILL THERE.

When I talk about memory leaks, I talk about memory gone somewhere and that is not usable anymore after some times, even doing drop cache or clear zram. There is another thing somewhere, I am sure about that. Because how can you explain the "no loss" of smoothness of "semaphore + thunderbolt" compared to "talon + thunderbolt" ?

When I say unusable, I am talking about launching phone.apk or market and waiting for like 10 seconds before it's usable and even after launch, things are lagging, then if going back to home, it lags in transitions between desktops... No, really, I was hopefull with all the discussions I saw about last talon combined with your last version of thunderbolt and even with the lmk values integrated in talon but, no, really, it is just bringing more usable time but not hiding real memory leaks of the kernel, even if I still love it.

For me, semaphore is the best kernel out there so far. I really don't know what the hell stratosk did in his kernel to have that smoothness + performance + stability + good battery consumption but, really, it has to be tested by every one out there to know what I am talking about...

I hope yours will be even better !!! And I hope too that you won't take talon kernel as a base of your kernel too, pika... Because if you do that, you will have to find a solution for these memory leaks if you want to have the best kernel out there...

But I am sure your skills will help you in this hard task !!

Take care and... Keep up the good work !
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Update v1.9.3. Disabled governor scaling by default. Edit the script if you want to enable it. Tweaked the CFS to be a bit aggressive. Changed back readahead settings to 512. Made Sdcard readahead to be 1024.

Changelog:

11/15/2011 (1.9.3)

- Added semicolon ";" where needed to screenstate_scaling, system_tweak and zipalign.

- Streamlined drop_caches in screenstate_scaling by turning it on when screen is off and turning it off when screen is on.

- Also updated drop script to sleep in between drop_caching.

- Merged Talon and Others screenstate_scaling. Added ondemand tweak to increase up_threshold to 95 when screen is off and reduce to 80 when screen is on (Better battery life).

- Also commented out all governor switching in screenstate_scaling. It'll be only VM scaling as most kernels nowadays have good sleeping governors like ondemand /w sleep patch and smartassV2.

- Changed back the readahead to 512, but increased SDcards to be 1024.

- Increased CFS aggressiveness. Phone should be more responsive, but I fear some phones might not be able to take it. Let me know if you encounter sudden reboots or FCs while doing CPU intensive stuff like games. All other FCs are not related to this change, bear that in mind, so don't go telling me you got an FC from Facebook or Phone APK - Not related, unless you have proof that you flashed 1.9.2, and it gave you no FC and flashing 1.9.3 gave you an FC.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, you can just redownload and reedit. Make sure you're editing with VIM.

Try changing swappiness to 0 on Talon (effectively disabling swap). See if it can last a longer uptime.

As existz mentioned, the memory leaks seem to stem from the swap. There are effectively two categories of memory leaks that can happen in Talon. One being the LMK. The other is caused by the swap. Changing swappiness to a lower level seems to make it go away.

I'm now devving for Talon at the moment (submitting patches), and yes Semaphore is a rock solid kernel, no doubt about it. However, I'm still deciding which kernel base I should use. For now, I prefer making tweaks and integrating it to whatever kernel there is as more people could enjoy what I'm enjoying in my phone now. Pure smoothness bliss :P
[Android Software/Hacking General [Developers Only]] hackeron:
Post removed.
[Android Software/Hacking General [Developers Only]] flolep:
Yes. Talon is smoother (that's why I love it)... short term... I want it... long term...

[EDIT] Lol, ok, post was removed before I answered :) but I let my answer, no big deal...

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] KMino:
Back to Semaphore after many months, let's see what 1.9.3 TB is like :) swapped to Semaphore to see what effects his tweaks did to Smartassv2. Trust 1.9.3 to be here after I flashed, prob fixed Talon :D
[Android Software/Hacking General [Developers Only]] flolep:
With all your respect pika, I think I tried every possible tweaking and configurations possible with talon, including this one, always coming to the same conclusion... I may try it again in the future but trying for another 3 days to have a very good test and be sure about that is too much for me right now as semaphore is really really better and for two weeks, it was just testing so now I want a smooth phone in every circumstances for some days and will try in some days. But I'll continue flashing every version of thunderbolt :) (thanks for 1.9.3 :))

P.S. If you are developing some patches for talon (that is great!) try to resolve this memory leak WITH ZRAM AND SWAPPINESS ON (the only one I am talking about is the one where some memory is lost I don't know where after some time (and not used, thanks to Linux, for caching some apks as you told me one day, as memory leak is not happening with semaphore...), resulting in a loss of smoothness) !! :p
[Android Software/Hacking General [Developers Only]] burakgon:
Nooooo semaphore + 1.9.3 screen state horrible! Deleted screen state script for 1.9.3. Lags like hell now fixed. And very amazing smooth on 1.9.2.
[Android Software/Hacking General [Developers Only]] pikachu01:
The memory is probably occupied by the swap. Remember, it's compcache, which means the swap is actually taken from a chunk of RAM that you will never get back, and it is replaced with a swap. Swappiness to 0 means at boot, the swap will never get used and compache will not grow.

Only thing's changed from 1.9.2 to 1.9.3 in terms of screenstate scaling is the drop_cache configuration. I don't think that would induce lagginess. Are you on CM7 by any chance?
[Android Software/Hacking General [Developers Only]] flolep:
Well, I want to believe, I'll try. But, again, I am skeptical... You already told me something like that in the past, I tried, and the result was the same. I try it now and will report in 3 days. Take care.
[Android Software/Hacking General [Developers Only]] burakgon:
LOL :D Stock JVT + Semaphore. Screen state scaling forcing my kernel to use smartassv2 and smartassV2 is soo laggy in semaphore kernel.
[Android Software/Hacking General [Developers Only]] pikachu01:
I removed governor scaling in v1.9.3. It shouldn't force use of any governor at all :S
[Android Software/Hacking General [Developers Only]] burakgon:
But it does brother sorry :( Thank you for this great tweak.
[Android Software/Hacking General [Developers Only]] KMino:
Just flashed it, no lag with Smartassv2 here. Perhaps delete all in init.d and start again.

(fails again, copy your original files from your ROM, replace them over the same files found in the Restore zip found here, with 7zip and flash, restore permissions, wipe dalvik cache)

Had to set Gov/S etc with Semaphore app here. All working good so far :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Do you have Semaphore tweaks ticked? It might clash with ThunderBolt! tweaks. That might be why smartassV2 was used.
[Android Software/Hacking General [Developers Only]] antz_77:
+1 no lag for me with smartassv2 and semaphore
[Android Software/Hacking General [Developers Only]] burakgon:
Ok done guys. Android is an amazing thing. You doing same steps but results always different.
[Android Software/Hacking General [Developers Only]] Mopral:
v1.9.3 works great for me: no FC, no lags, ...

Just one question: which is the best between smartassv2 and ondemand?
[Android Software/Hacking General [Developers Only]] XblackdemonX:
Thanks Pika, trying 1.9.3! :D
[Android Software/Hacking General [Developers Only]] pikachu01:
smartassV2 seems to be smoother in terms of operation when the screen is awake at an ideal frequency of 800MHz and sleeps at an ideal frequency of 100MHz (which can increase if load is high, but it generally sticks to it). One thing to note is that even if you're doing nothing, the frequency seems to stick to 800MHz when screen is awake. It can scale down to 400MHz nonetheless, but quickly goes back to 800MHz.

ondemand with sleep detection seems to scale to 1GHz instantaneously and scales down just as fast after load is done processing. When it sleeps, it seems to be sleeping more than smartassV2 due to the sleep detection code.

Hence, ondemand with sleep dection for a good battery life, and smartassV2 for smooth operation when screen is awake.
[Android Software/Hacking General [Developers Only]] jocke_lulle:
@pika

Ive been using 1.9.2.others.lmk50 since yesterday(~36h) with semaphore. All works good, no lag at all. And the scripts make the phone super smooth!!

The only thing is that I think the lmk-settings are a bit too agressive, its kind of hard to multitask. For example; running facebook, g+ and webbrowser. If I then recieve a sms, reply the sms and then go back to web the page has to load again...

But now Im going to try 1.9.3 and then Im going to try lmk40:)

Thanks for these superscripts!

Btw. I used the restore-zip before I flashed 1.9.3 (probably not necessary) but then I checked init.d and realised that the s91supercharger script was still there. Maybe you forgot the change some line in the restore script when you changed name of the supercharger-script?:)

Edit. Can I change the Schedulers from "noop"(default) to "deadline" or "sio" in semaphore app or will it collide with tb?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup. I need to update the restore script. Not that high on my priority list, but I'll get to it :)

Thanks!
[Android Software/Hacking General [Developers Only]] geokilla:
So it doesn't go to deep sleep anymore?

Also you're saying that stock governor for ThunderBolt is now smartassv2 and smartassv2 only?

Oh, and I've given up trying to pinpoint the Mms.apk and Phone.apk closing on me lol. Maybe the next time I flash to stock then custom ROM, I'll run it for a whole day without installing any apps, but for now, I'll leave it be. Did you check my updated apps list though? Do you want to see my phone's running services?
[Android Software/Hacking General [Developers Only]] pikachu01:
Haven't taken a look at your updated list yet. I will do so when I have the free time. Work is really killing me :S

ThunderBolt! itself doesn't contain any governor. I'm just making recommendations for a member who posed a question of the difference between smartassV2 and ondemand with sleep detection patch.

Both will sleep correctly. Ondemand sleeps better (with the patched sleep detection) from my experiments as it drains less battery overnight.
[Android Software/Hacking General [Developers Only]] Faryaab:
I have a problem when i implement your tweaks in my ROM i start encountering a bug where vibration and haptic feedback vibration doesn't work anymore, any solution?
[Android Software/Hacking General [Developers Only]] Sqb:
Sounds like a recipe for insanity. Except you can expect different results for the same procedure:)

Sent from a rock on fire in the middle of the sea
[Android Software/Hacking General [Developers Only]] GreenSGS:
Hi Pika,

I have used restore as I wanted to test what I loose but using Smartassv2 + noop,1,2 GH OC, no tweaks it feels the same or I can say slightly better,there is not a big noticible difference.even I could say some of the apps works better without TB for example whatsapp.May be my configuration is not matching with TB settings.

It's no critic,I always appreciated your great work and help but I believe TB needs to get stable settings for performance rather than experimental like,you did in version 1.9.3. I follow thread and wait 'as you said that you have a general idea about fixing app startup lag.'

If you want to have individual tweak feedback I can write here as you dont accepts PM.

Please take this as a feedback.Thanks
[Android Software/Hacking General [Developers Only]] melvinaury:
Hay pika do you have any idea why with the new version if I go to CPU Spy the only frequency that it show is Deep sleep the other frequencies appear unused. I have apex 10.1, with talon latest version OC to 1,200 and of course thunderbold 50 latest version.

Also I have fancy widgets and it don't update the forecasts anymore. I have it setup to update every two hours. That begin after install thunderbold. Also I have running the clock and weather widget from fancy widget.

Other issue is that I can't integrate the updates to the ROM any more in Tibu, it froze and when I restart the phone the app was erased. That happen with flash player and maps. I had to install the app again from the market and convert it to system app.

By the way, excellent job with the script.
[Android Software/Hacking General [Developers Only]] Kurre:
It's probably due kernel or rogue/misbehaving/badly configured app. Try using BetterBatteryStats and see if any app is causing too much wakelocks.

Sent from my CM'd SGS
[Android Software/Hacking General [Developers Only]] melvinaury:
If I use the 1.9.2 CPU spy report the correct CPU states.
[Android Software/Hacking General [Developers Only]] purpleraintoxicity:
For me 1.9.2 ,1.9.3 wont boot. Deleted screen state script.

Neo 18+mintberry 1.11.11

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] pikachu01:
The ROM exceeded the /system space? That's the only one I can think of.

You can post it here so that everyone benefits from it :)

And so far, most experimental changes gets reverted quickly and right now 1.9.3 doesn't have any experimental changes except for the CFS tweaks. All the other ones are pretty much performance based tweaks. If it is not, let me know why and the justification of it as well as what you think it should be changed to.

I'm not sure what your configuration is, but apps startup lag for me is very much unnoticeable after using ThunderBolt!. Removing ThunderBolt! resulted in lags especially WhatsApp. Did you install all the addons?

Not sure abuot Fancy Widgets, I don't get that problem in my side.

Also not sure about Titanium Backuup. I can create the backup in my side.

Try removing ThunderBolt! and see if it works. It could be attributed to corruption. If so, wipe the data of the app itself and see if the apps behaves properly after that.

About the CPU Spy, I get that too with Talon OC. I'm not sure if it's caused by ThunderBolt! though, as I vaguely remembered that without ThunderBolt! it doesn't work too when you OC using Talon. I'll remove ThunderBolt! later and see if I still get the same issue.

And, 1.9.2 had this issue too actually.

Nope, I had this issue since a long time ago if I OCed. Nothing to do with 1.9.2. I had this issue even before 1.6.0 of ThunderBolt!. I'll remove and see if it is resolved.

I stated in the OP twice that screenstate_scaling needs to be removed if you're using certain CM7 kernels.
[Android Software/Hacking General [Developers Only]] jrongi1:
Any thing special I need to do to use it for vibrant w/miui?

vibrant miui 360° Productions
[Android Software/Hacking General [Developers Only]] pikachu01:
Don't think you need to do anything. It should work with all types of phones (except the addons) Try it if it works. Make sure you have a nandroid backup before proceeding. :)

Let me know if it works :P
[Android Software/Hacking General [Developers Only]] trekie86:
I ran the I9000 remount script with no problem. When I ran the sqlite_optimize script I receive errors for no such collation sequence. Are those normal?
[Android Software/Hacking General [Developers Only]] pikachu01:
I already put this in the OP quite sometime ago:
[Android Software/Hacking General [Developers Only]] trekie86:
I thought I read it over well enough. Sorry about that, I hate people that don't read first. Thanks for the quick response.