yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] nguyen47:
I dont know what Im doing wrong but I flash your tweaks with the newest nightly cm7,neo kernel and my phone stucks at bootscreen :(
[Android Software/Hacking General [Developers Only]] LinkinParkmetre:
Is it compatible with most roms?
[Android Software/Hacking General [Developers Only]] medicjunKie:
All roms
[Android Software/Hacking General [Developers Only]] pikachu01:
Did you flash the screenstatate_scaling addon? The wake_on_fb_* hangs at CM7 ROMs. It's a bug with CM7.

Yes. Most ROMs. However, have a nandroid backup handy just in case.
[Android Software/Hacking General [Developers Only]] nguyen47:
No, I did not, I just flashed the CWM zip, nothing else
[Android Software/Hacking General [Developers Only]] pikachu01:
What phone are you using? Can you try 2.7.0 if it works for you?
[Android Software/Hacking General [Developers Only]] nguyen47:
I'm using Galaxy S i9000 and I will try 2.7.0

Edit: I'm using zdune patcher for transparent status bar but I don't think it relates to this problem

Edit 2 : 2.7.0 works now
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm. Try it first and see if it works. I have a hunch on what's going on with 2.7.1. Have a nandroid backup handy just in case.
[Android Software/Hacking General [Developers Only]] nguyen47:
2.7.0 works now
[Android Software/Hacking General [Developers Only]] pikachu01:
Aha. Looks like I need to revert the TCP buffers change. Not sure why CM7 can't work with it.
[Android Software/Hacking General [Developers Only]] Mopral:
All works great for me on MIUI 2.4.6 GingerBread
[Android Software/Hacking General [Developers Only]] iXNyNe:
well i tried a few different things

i tried just regular shell while screen was on and pasted the whole screen on code block, that threw a bunch of errors, so i tried just the first echo, that gave an error (no such file or directory) so i tried su and then the first command and still got the same error

i didnt even bother with the screen off commands since the screen on commands didnt seem to go anywhere

p.s. im using ubuntu and running adb shell through terminal
[Android Software/Hacking General [Developers Only]] pikachu01:
The directories depends on where your kernel place your cpufreq. You can check the screenstate_scaling file for variations.

They are:

/cpu/cpu0/cpufreq

/cpu/cpu1/cpufreq

/cpu/cpufreq

The one I pasted above is the first variation. If it doesn't work, it'll be the third variation. Don't paste it all at once. Some spaces in between will break the next few lines resulting in a failed command.
[Android Software/Hacking General [Developers Only]] alexdoux25:
Hi Pica.

Thanks once more for your job.

Could you explain me the meaning of renice -3 `pidof kondemand/0`; and renice -3 `pidof ksmartass_up/0`; lines in your renice script?

Which values will be better?

I had a reboot one time using this lines (-3 values) while flash my ROM (android 2.3.5 with Sense 3.5) оn HTC HD2.
[Android Software/Hacking General [Developers Only]] EarlZ:
2.7.1 seems to be working with the Tab 7.7 with out issues so far!
[Android Software/Hacking General [Developers Only]] pikachu01:
Good to know. :)

Did you check with "How do I know if it works" values?
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Pika:

1st how do TCP values even effect anything?

2nd an email by Miguel Botón (creator of sio) concerning sio vs deadline ;)

Hi.

Sorry for replying a bit late.

The main difference between SIO and deadline, right now, is that SIO has less overhead and i just aims to do request merging and be fair. The read/write ratio is 2:1 as, in some cases, reads are faster than writes (for example, in my HTC One S). This is something kernel devs should tweak when compiling a kernel for different devices (devices using NAND for storage, or eMMC or SD).

For NAND devices, a 2:1 ratio is good. For SD cards, I would say 1:1.

Cheers, Miguel.
[Android Software/Hacking General [Developers Only]] Konsyst:
If I wanted to use my own lulzactive settings rather than your settings, should I just delete the entire lulzactive section in screenstate_scaling?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, SIO has less overhead than deadline. And since SIO integrated deadline's changes, it practically has no difference with SIO. Seems like he has a point on reading/writing speed. I'll tweak ThunderBolt! to make sure that NAND devices have a 2:1 starvation and SD to have 1:1. Expect an update out soon.

The TCP buffer tweak actually increases bandwidth to a certain limit. It's when you download something in your PC and find that your phone downloads slower than your PC.
[Android Software/Hacking General [Developers Only]] pikachu01:
You could change the screenstate_scaling to incorporate your settings instead. :) This will ensure that you can get a lower scaling method when your device is asleep.
[Android Software/Hacking General [Developers Only]] mmse88:
ThunderBolt! v2.7.1 stuck on startup screen

I have tried over three time. I am on i9100 CM9 nightly from 0420 til now 0423. I am giving it up....:(

Just tried again and phone freeze and now need to restall my phone again. Exuses :mad:
[Android Software/Hacking General [Developers Only]] pikachu01:
A few posts before, I explained that TCP buffers setprop seems to be incompatible with CM based ROMs. Use 2.7.0 and see if it works. :)
[Android Software/Hacking General [Developers Only]] mmse88:
Thanks will have a try after tea.

I have followed your instruction to mount system and data in CWM but still stuck. Hope 2.70 will work. :)

---------- Post added at 09:31 AM ---------- Previous post was at 09:22 AM ----------

Thanks and 2.70 is working and my phone can be on. But inside my init.d folder only has S98system_tweak. Is that normal? :)

Also, neak CWM seems not too compatible with CM9 due everytime I press the restart the sytem at CWM the phone freeze as well. :o
[Android Software/Hacking General [Developers Only]] pikachu01:
It should have S98CFS as well. I think NEAK deletes the file automatically. Simone might not want people to set the CFS manually.

About the freezes, ask Simone, since this problem is unique to his kernel.
[Android Software/Hacking General [Developers Only]] mmse88:
So I just live without S98CFS if the script still works

I see. So I just leave it then. Thanks again :D

---------- Post added at 10:08 AM ---------- Previous post was at 09:50 AM ----------

Hey dude,

Do I need to re-flash this script everytime I update my CM9 nightly?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. The CWM script resides in /system which will be wiped everytime you upgrade. :)
[Android Software/Hacking General [Developers Only]] mmse88:
Noted and thanks!

Thanks:p
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Updated ThunderBolt! to v2.7.2 with write starvation made 2:1 on NAND memory while SD memory is still 1:1. Removed TCP buffer tweaks and placed them in bolt_scripts under S98TCPbufers.

Changelog:

4/25/2012 (2.7.2)

- Changed NAND memory to have 2:1 writes starved as read speed is higher than write speed. SD memory still has 1:1 writes starved. Removed TCP buffers from S98system_tweak. Moved it to /etc/bolt_scripts/S98TCPbuffers as it causes hang at boot for CM7/9 ROMS.
[Android Software/Hacking General [Developers Only]] iXNyNe:
Flashed OK (i777 cm9) would there be any noticeable difference? Or just slight adjustments?
[Android Software/Hacking General [Developers Only]] iXNyNe:
ok it's the third one

the only error i got was the fi; because thats the end of an if for a script rather than a command for bash/adb

i ran all as root, was able to run each one without error, and i was able to mass paste all at once without error

not sure what that tells you or if im supposed to be looking for something that im not seeing

btw 2.7.2 (as i mentioned above) works fine, and i still cant use the screen scaling script in init.d

i had reported once in the past that it seemed to be working but i realize now that that once instance i had forgotten to chmod to 777 so i was incorrect, but now im sure to do it each time

also im setting the sleep and awake governors to both be ondemand (just for simplicity while testing) just by editing the uncommented line and inserting ondemand between the blank quotes (rather than uncommenting the line below)

also a suggestion (after i checked out the cwm flashable screen scaling zip) why dont you just include the screen scaling script in bolt_scripts? all the cwm zip seems to do is remove ALL of thunderbolt before installing itself, which i dont think is the desired effect...
[Android Software/Hacking General [Developers Only]] mehmet184:
What is the difference between lagfree 2.1? can be used with both thunderbolt and lagfree?
[Android Software/Hacking General [Developers Only]] lippol94:
Is someone seeing improvements/regressions after applying these scripts on Cm9/ICS?

Sent from my Samsung Galaxy S running CyanogenMod Blueberry EDITION
[Android Software/Hacking General [Developers Only]] pikachu01:
IMHO, lagfree has a lot of issues in it (I've posted in its thread a few ocassions about its shortcomings). Seems like the author is improving a bit, but the integration still have problems.

Only ThunderBolt! or lagfree. Never both as they could clash with each other.

Have you tried it? ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
Just slight adjustments to deadline/new SIO. Removed the setprop for TCP Buffers to another file.

Actually, that's a good idea, moving screenstate_scaling script to bolt_scripts, though most people don't know how to move the script to init.d (or forgot to chmod). Using a CWM installation method is still preferable.

About the screenstate_scaling, probably in CM7/9, after boot time, the post init does something to wait_for_fb_*, hence any script that runs on boot will have the problem as the kernel still haven't done post init modifications to the files.
[Android Software/Hacking General [Developers Only]] iXNyNe:
It helps battery life a bit, it isnt night and day difference on official nightlies, but it was on the unofficial cm9 i9100 ports for our device. Also if you learn how to use the extra scripts in bolt_scripts you can improve performance without sacrificing battery life.

As it is, the cwm screen scaling zip wipes init.d including previous tb! (Just by looking at the update script) and you already have simpler scripts like zip align in bolt_scripts and expect users to chmod when moving them, so I think it would be safe to include screen scaling in bolt_scripts

Another option I've seen used in some roms is to include a S01chmod script that does chmod 0777 /system/etc/init.d/*

Might need to mount system as writable first, but I've seen something like it work before.

Also what about that -c option discussed before? It allows the boot process to continue while it runs in the background right? So sleep 30 seconds then -c?
[Android Software/Hacking General [Developers Only]] pikachu01:
True, moving it to bolt_scripts is possible, though most of the time people use Script Manager to run those scripts. You can't use Script Manager to run screenstate_scaling though.

About the -c, it creates corrupted sql databases if I use that for sqlite_optimize. I can't use that in zipalign as it might lead to corruption as well. Might be something related to parallel processnig of the databases that are interlocked with each other. There's a chance some APKs are being accessed at the same time with others (and system doesn't release the lock) causing corruption as well?
[Android Software/Hacking General [Developers Only]] mmse88:
I will give me a try

Thanks and hope the hang at boot can be solved on CM9 nightly i9100. Cheer:)
[Android Software/Hacking General [Developers Only]] mmse88:
Working fine

It is working fine, thank you mate!:D
[Android Software/Hacking General [Developers Only]] iXNyNe:
Sorry, what I meant was use -c for screen scaling script.
[Android Software/Hacking General [Developers Only]] mmse88:
ThunderBolt-CWM screenstate_scaling addon v1.7.0.zip

I just flashed ThunderBolt-CWM screenstate_scaling addon v1.7.0.zip. Boot hangs need to reinstall:(

Do I need to uninstall setcpu before installing this script? Due 2.7.2 is working fine on me.

I am on CM9 nightly i9100 with NEAK kernel.

Thanks...

I just noticed that I missed this part that you warned earlier. So I will not install your screenstate_scaling script this moment.

ATTENTION: The screenstate_scaling isn't compatible with CM7/CM9/AOSP ROMs since quite some time ago. I removed the warning since wake_on_fb_* wasn't hanging for some AOSP users, though it'll still hang at boot. Hence, there could still be lingering issues. Don't use it!
[Android Software/Hacking General [Developers Only]] iXNyNe:
Please read at least the past few pages and the entire op and second post. The answer is explained many times. Screen scaling script doesn't work on cm or other aosp.
[Android Software/Hacking General [Developers Only]] mmse88:
My mistake

Thanks I just noticed. :D
[Android Software/Hacking General [Developers Only]] pikachu01:
No prob :)

Don't think it'll solve the problem of hangs, as the kernel could panic too if too many hung processes are in the background. I can try to make a script for you to use with the "su -c" to test though.

Yes, you can flash the restore pack to get back your OS without a reinstall. Then install back ThunderBolt! scripts that are already working for you.
[Android Software/Hacking General [Developers Only]] iXNyNe:
Sure, I love testing. And being on cm night lies I reflash at least once every other day anyway, sometimes multiple times an hour when testing. :D
[Android Software/Hacking General [Developers Only]] SamsungAdmire:
this works with any phone ..right?
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Pika, I think you forgot $MTD again (for NAND=2:1), didn't you? :P
[Android Software/Hacking General [Developers Only]] pikachu01:
K. I'll send a test CWM your way not so soonish. Have tonnes of work I need to do now. >.<

It should work with most phones. The ones I listed in the front page are tried and tested phones without issues.

What phone do you want to test it on? It needs to be NAND unlocked and have init.d support.

Ahh right. I'll fix it in the next iteration :)
[Android Software/Hacking General [Developers Only]] mmse88:
In case hang in boot again. Which version I should use? Coz I found two. One is stock i9100. amd another one is stock i9100 ICS.
[Android Software/Hacking General [Developers Only]] spambayes:
Apologies if this has been mentioned but I can't seem to locate the screenstate script in either /bolt_scripts or /init.d after flashing Screenstate 1.7.0 with Thunderbolt 2.7.2 on my I9000 on JW5.

Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
If you're using stock ICS, use the stock ICS one. If you're using stock Gingerbread, then use the stock I9100.

Weird. It works well for me using JW5. Did you encounter any error when installing it?
[Android Software/Hacking General [Developers Only]] pikachu01:
Unfortunately, su -c doesn't play well with tick "`" launcher which is needed to reference the awake/sleep variable. So, can't test it. :(
[Android Software/Hacking General [Developers Only]] SamsungAdmire:
Just tried it, got status error 0 on cwm.

Yes nand is unlocked, with ext4 and initd support and obviously rooted.
[Android Software/Hacking General [Developers Only]] pikachu01:
What phone are you using?

The CWM updater_binary sometimes is incompatible with other CWM versions. Find a CWM zip that works for you, and copy the updater_binary (replacing the one with ThunderBolt!'s)
[Android Software/Hacking General [Developers Only]] jarjar124:
I'm sorry if this was asked but would this work for cm9 Motorola triumph? I'm new to this. would I have to uninstall supercharge if I do this?
[Android Software/Hacking General [Developers Only]] iXNyNe:
so we're back to square one of didle code in AOSP has an issue causing incopatibility with screen scaling script yes?

i just recently grabbed all the sources for cm9 on i777, maybe i could try and fix the didle code and submit it up to cm? what information have you found about the topic?
[Android Software/Hacking General [Developers Only]] SamsungAdmire:
samsung admire
[Android Software/Hacking General [Developers Only]] spambayes:
None whatsoever. I've reflashed 2.7.2 as well as all the addons (60MB LMK) again. Same result. Something else I've noticed since updating my firmware to JW5 and subsequently flashing Thunderbolt and addons: I've lost that snappiness in JVT with Thunderbolt. Now apps may take a long time to open and/or close. It's as if Thunderbolt's not working properly. I've taken a few screenshots showing:

1. Contents of /bolt_scripts and /init.d

2. Output of getprop | grep ADJ and getprop | grep MEM

They are attached below. Could you please have a look?

Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
If you have init.d support, root and NAND is unlocked it should work. No need to uninstall Supercharger if you're not planning to install the LMK addon.

Hmm, I just know that the latest didle when used in a CM environment would break the wake_on_fb_* command. The didle applied to stock kernel works fine though.

Your CWM version might differ. Get an older updater_binary and replace it to ThunderBolt!'s CWM zip.

One thing to notice about JW4/JW5 is that the LMK addons doesn't work for it. The Dalvik LMK can't work, and applying the LMK will make your LMK half baked thus losing performance there.

Also, I need the sysctl -a | grep vm to know if the values from the main CWM zip is applied successfully. Hence, use the JW5 restore pack then install all except the LMK addon.
[Android Software/Hacking General [Developers Only]] spambayes:
Thanks. I'm not sure if you wanted the sysctl -a | grep vm before or after I've restored and reflashed so here's the output before I restore:

/ # sysctl -a | grep vm
vm.overcommit_memory = 1
vm.panic_on_oom = 0
vm.oom_kill_allocating_task = 0
vm.oom_dump_tasks = 0
vm.overcommit_ratio = 50
vm.page-cluster = 3
vm.dirty_background_ratio = 40
vm.dirty_background_bytes = 0
vm.dirty_ratio = 80
vm.dirty_bytes = 0
vm.dirty_writeback_centisecs = 500
vm.dirty_expire_centisecs = 3000
vm.nr_pdflush_threads = 0
vm.swappiness = 60
vm.lowmem_reserve_ratio = 32
vm.drop_caches = 0
vm.min_free_kbytes = 2743
vm.min_free_order_shift = 4
vm.percpu_pagelist_fraction = 0
vm.max_map_count = 65530
vm.laptop_mode = 0
vm.block_dump = 0
sysctl: error reading key 'net.ipv4.route.flush': Permission denied
vm.vfs_cache_pressure = 10
vm.mmap_min_addr = 4096
vm.scan_unevictable_pages = 0
sysctl: error reading key 'net.ipv6.route.flush': Permission denied

Now off to restore. BTW, any insight as to the missing screenstate scripts?

Thanks again.
[Android Software/Hacking General [Developers Only]] ram3n:
Hello Pika,

I'm wondering if it is worthy to use your script with wanam LP8 and Speedmod k3 15, regarding to battery life.

I don't care about performance cause Speedmod do it already great.

My question : is there any benefit on battery life?

Cheers matey

Xie Xie :D

Sent via my s2 monster
[Android Software/Hacking General [Developers Only]] lippol94:
But if I patch the services.jar file and I flash your LMK package I'll be able to run it flawlessly right? :)
[Android Software/Hacking General [Developers Only]] pikachu01:
It's the correct one actually. Might be that flashing the LMK produced a half-baked LMK that actually slows down the system?

Yeah, the screenstate_scaling script uses values that saves battery when the device is asleep.

Yes you can do manual patching towards the jar file and then use ThunderBolt!'s LMK :)
[Android Software/Hacking General [Developers Only]] ZaneZam:
Hi lippol94,

i was going to patch the services.jar on JW5 too, but these ICS modifications which zeppelinrox provided on his thread didn't match! Are there other compatible infos around?

And by the way i found for example following in the JW5 services.jar :

.line 11644
[B]sget v7, Lcom/android/server/am/ActivityManagerService;->VISIBLE_APP_ADJ:I[/B]

.line 11645
const/16 v23, 0x0

.line 11646
const-string v24, "visible"

move-object/from16 v0, v24

move-object/from16 v1, p1

That would mean it still reads the properties, doesn't it?
[Android Software/Hacking General [Developers Only]] lippol94:
You don't have to patch services.jar if you're on JW5 because it's based on GB!

The patch is required for ICS+ only!
[Android Software/Hacking General [Developers Only]] ZaneZam:
Thx, yeah i know but i just thought it's the same problem as on ICS because of this:

;)
[Android Software/Hacking General [Developers Only]] pikachu01:
That would mean it yes, though I'm not sure why JW5 doesn't apply the Dalvik LMK. Probably need to research this some more.

Hmm, more research is needed.
[Android Software/Hacking General [Developers Only]] jarjar124:
how do i not install the LMK add-on?
[Android Software/Hacking General [Developers Only]] pikachu01:
There's an addon zip in the 2nd post. don't install that.
[Android Software/Hacking General [Developers Only]] jarjar124:
ok but if i have kickass kernel and supercharge running, it won't affect this right?
[Android Software/Hacking General [Developers Only]] pikachu01:
It will actually. Don't install KickAss Kernel (as some values will clash with ThunderBolt!) Only install one or the other. Don't install Supercharger with LMK addon. Only one or the other.
[Android Software/Hacking General [Developers Only]] jarjar124:
I'm using Motorola triumph...I can't find a remount for my device wen installing. can I get a zip for my device to revert back?
[Android Software/Hacking General [Developers Only]] walkah21:
screenstate addon

Newb question here: I put the screenstate zip file onto my phone, flashed it on CWM and then when I started Script Manager, I wasn't quite sure where I would find it. Is it the one in the init.d folder? Also wanted to know if anyone has run the 60MB LMK for TalonDEV yet and your results with it? Thanks!
[Android Software/Hacking General [Developers Only]] pikachu01:
I need your output of:

mount

To create a remount for your phone :)

Also, for the restore pack, I'll need these files from your own stock ROM:

/system/bin/app_process
/system/bin/system_server
/system/lib/libsqlite.so
/system/lib/libsqlite_jni.so

It's the one in the init.d folder. Don't need to use Script Manager to run it, assuming you have init.d support from your kernel. Though, you can't use Script Manager to run screenstate_scaling also.

Are you on TalonDev kernel? I've ran TalonDev 60MB LMK without problems :)
[Android Software/Hacking General [Developers Only]] lunchboxVA:
does thunderbolt work with cm9 or aokp for the samsung epic 4g touch?
[Android Software/Hacking General [Developers Only]] spambayes:
Pika, the reason for my non-existent screenstate scripts turned out to be a corrupt download. Redownloaded and applied. All is well.

OTOH, even after restoring to stock JW5 and reapplying Thunderbolt and all scripts except LMK doesn't seem to get rid of the microlags and long opening times of some apps. This is especially evident when switching from one app to another after having used the first app for some time eg., using Tapatalk for 15 mins then opening the browser. It would typically take around 15 secs with a blank screen before the browser opens. Didn't really experience this under JVT.

I've no way of knowing what's causing these lags because everything's different now - firmware, kernel (upgrade to latest Semaphore) and of course, your Thunderbolt. Would love to get back the snappiness though.

Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
It should work without problems. :)

Make sure you only install the main CWM. All others are incompatible.

That is due to the aggressive LMK that tries to free its memory when switching an app. No way to counter that unless you hack the services.jar or whatever it is that is preventing the Dalvik LMK from sticking.
[Android Software/Hacking General [Developers Only]] spambayes:
Yeah, I read that bit a few posts back. Will you be looking into this?