yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] digitallure:
So in this, wold I take the # out? and the same for the others? I've never edited scripts before, but would like to try it out. it'll only take 1 or 2 tries before I get the hang of it. What is meant by "commit" and "uncommented"

# step [1] choose AWAKE governor while screen is ON

# ==============================================================

# ==============================================================

# selection of AWAKE Governors:

# =========

# only keep ONE governor uncommented at a time !!!!:

# =========

AWAKE_GOVERNOR="";

#AWAKE_GOVERNOR="conservative";

#AWAKE_GOVERNOR="ondemand"; # [no additional settings required, tweaking done in kernel-source]

#AWAKE_GOVERNOR="ondemandX";

#AWAKE_GOVERNOR="interactive";

#AWAKE_GOVERNOR="interactiveX";

#AWAKE_GOVERNOR="smartass";

#AWAKE_GOVERNOR="smartassV2";

#AWAKE_GOVERNOR="lulzactive";
[Android Software/Hacking General [Developers Only]] pikachu01:
Comment is adding the hash # in front of the line. Uncomment is removing it.
[Android Software/Hacking General [Developers Only]] bbrabham:
Will this work on Teamhacksungs ics for facsinate builds? I browsed through and didn't catch anything about ics, just that it had some fixes for 3.0 and was designed for gingerbread...
[Android Software/Hacking General [Developers Only]] Kurre:
These questions were answered just a couple of pages back. I'd assume that these answers are quite correct for fascinate version too :rolleyes:

Sent from my sandwiched SGS
[Android Software/Hacking General [Developers Only]] Marshy919:
I've uploaded my entire init.d folder for you.

http://www.2shared.com/file/BY4fdsPG/initd.html

Thankyou :)
[Android Software/Hacking General [Developers Only]] ohy1994:
pika, will your screenstate scaling scripts override the kernel's default governor values? for example the smartassv2 from your script will override glitch's kernel smartassv2?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. It will override the kernel's default governor tunables to ThunderBolt!'s own :)
[Android Software/Hacking General [Developers Only]] ohy1994:
Thanks for your help! Last question, u only patched 2 kernels which are ondemand and smartassv2?
[Android Software/Hacking General [Developers Only]] pikachu01:
Not kernels, but governors. I patched smartassV2, ondemand, conservative, ondemandx, lulzactive.
[Android Software/Hacking General [Developers Only]] ohy1994:
Does the restore cwm zip remove away the addon files as well?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup :) Removes everything.
[Android Software/Hacking General [Developers Only]] keuda:
Hi pica, here is the script of ondemand40 included in semaphore 2.5.0.

You said screenstate doesn't override ondemand40, but I think it does due ondemand 40 its just a script that change sample rate value of ondemand. It's not creating a separate dir called ondemand40. Just to be sure.

Here It's the ondemand40 script :

#!/system/bin/sh

#Governors

#Change CPU governor

#Ondemand40

echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 40000 >/sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

Screenstate then, will change 40000 (ondemand40) to 10000 or not when it's awake?. Thanks again pica for your awesome work.

Enviado desde mi GT-I9000 usando Tapatalk
[Android Software/Hacking General [Developers Only]] digitallure:
Hey Pik, It's me again...lol

I noticed since I flashed the screenstate addon earlier yesterday, some apps would uninstall itself.

I have them backed up, it usually happens after a reboot. I have ext4, i'm using link2sd (creating a link feature). Is this a bug?
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Your applications have not been removed literally only are corrupted, this script because of "S70darky_zipalign."

So before applying a new version I remove the script from within. ZIP file, so it does not harm some installed applications, because its function is to reassemble the file .Apk

Actually I do not see any utilizade to this script, because if the application has been successfully installed, there is no need to validate its structure.

---------- Post added at 01:50 PM ---------- Previous post was at 01:38 PM ----------

First I installed the latest version: "SiyahKernel v2.6.9" + "ThunderBolt-CWM v2.3.131"

But after applying the version "Screenstate_scaling v1.4.14," my SGS2 is not booting, I can only make the device connect removento script "S98screenstate_scaling."

This is a bug or incompatibility with the current version of SiyahKernel?
[Android Software/Hacking General [Developers Only]] boris0711:
Hey Pikachu,

Does Thunderbolt work with Onecosmic's RC3.1??

Thnx anyway,,
[Android Software/Hacking General [Developers Only]] digitallure:
Thanks man!
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Hey Pikachu.

I believe the problem is the incompatibility with ondemand.

SiyahKerne v2.6.9:

"tiny tweak for ondemand (85-10: up_threshold-down_differential)"

I've tried other versions of the script screenstate_scaling and the problem is the same, so I just remove the script that SGS2 back to boot.

NOTE: But with this version "SiyahKernel v2.6.9", but if I go back to version "SiyahKernel v2.6.7 or v2.6.8" the problem does not appear.

I set the variables like this:

AWAKE_GOVERNOR="ondemand"; # [no additional settings required, tweaking done in kernel-source]

SLEEP_GOVERNOR="powersave"; # [no additional settings required, powersave only stays at 100 MHz]

thanks...
[Android Software/Hacking General [Developers Only]] Kurre:
Heh so this is third time in couple of days when someone asks about ics support..I don't mind copy-pasteing posts again, so I hope you could read couple of pages back..you're welcome ;)

Sent from my sandwiched SGS
[Android Software/Hacking General [Developers Only]] boris0711:
Yeah, you're right.

Thnx you for correcting me... :D
[Android Software/Hacking General [Developers Only]] stevehkim:
Newest screen state will also cause my phone to not boot. removing this works.
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
+1

Yes, I also reported this problem in the post above.
[Android Software/Hacking General [Developers Only]] msgfromside3:
Looking like not many people are reading previous posts. The issue was reported a few days ago already with 2.6.8 by steve and me. Pika, I was going to ping you if there was any progress with diff'ing two versions. Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
Ahh, I didn't know that. Yes, if that's the case, ondemand40 is overridden by ThunderBolt! :)

If you don't want that to happen, edit the screenstate_scaling and use the script's content in screenstate_scaling :)

I do believe that using 10,000 is a good value when the device is awake. It'll go to 90k when it's asleep.

I'm using screenstate_scaling script in Siyah 2.6.9 without problems :/

What governor are you using?

I believe it's due to screenstate_scaling having a 90k value? Let me research more into this and I'll release a fix soon.

What governor are you using?

There were no difference except for disabling the down_differential setting. If you go one version down, it's due to the 90k sampling rate while asleep. I believe that some devices can't handle a 90k sample rate? It might be due an aggressive UVing?

Try to up your voltage and try flashing screenstate_scaling again?
[Android Software/Hacking General [Developers Only]] pikachu01:
And as for zipaligning, there are some apps that aren't zipaligned even after being released in the market. Not zipaligning apps can cause memory allocation to not be effectively utilized.

If you can't zipalign for some reason, your /sdcard is either not mounted at boot (highly unlikely) or your /sdcard is full. This will cause corruption.
[Android Software/Hacking General [Developers Only]] msgfromside3:
Like I said the main script was okay. It started with screenstate_scaling. If I wasn't clear before, my apologies. Also I don't do any uv - had enough problem with galaxy tab and I dint want to go near it even if gs2 does it better in general. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, do you OC though? Is the kernel you're using UVing automatically?
[Android Software/Hacking General [Developers Only]] msgfromside3:
I am not oc'ing either. I am using siyah.
[Android Software/Hacking General [Developers Only]] gaurav2009:
hey all i m on onecosmic 3.1....and wanted to use lmk 80 file......did i have to flash main thunderbolt package to get lmk working.....or should i directly flash lmk 80 file,,,,???? please help thankss....
[Android Software/Hacking General [Developers Only]] Urokinase:
Hey pikachu.

Thanx for your Scripts. Can i use them with new Phoenix Kernel?

Gesendet von meinem GT-I9100 mit Tapatalk
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup. :)

Make sure not to use the app as it will clash with ThunderBolt!'s.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, might be the 90k sample rate. I'll release a version that has a lesser sample rate to alleviate this.

Nope. The LMK itself can be flashed directly. :)
[Android Software/Hacking General [Developers Only]] atomic339:
Now, all script works good with syiah 2.6.9?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah. I'm using it without problems :)
[Android Software/Hacking General [Developers Only]] bennybaz:
works on TH Build 14, Devil Kernel(support for init.d)?

thanks!
[Android Software/Hacking General [Developers Only]] Kurre:
Afaik main CWM works just fine, but LMK tweaks doesn't stick apparently (gets reseted by system?). Addons doesn't probably function correctly.

Sent from my sandwiched SGS
[Android Software/Hacking General [Developers Only]] pikachu01:
I would like to know why the LMK doesn't stick. :/

Does the kernel have an init.qcom.rc? in the directory "/"?
[Android Software/Hacking General [Developers Only]] ZaneZam:
Hey pikachu01!

Thx, just saw the new version 2.4, where is the changelog post to thank you!? :)
[Android Software/Hacking General [Developers Only]] lippol94:
Hey pikachu :) It's been long time since I posted here :D It's my travel to ICS 's fault ;)

I have a question, has anything changed in the screenstate_scaling script? Does it work with CM7 now?

Thanks :)
[Android Software/Hacking General [Developers Only]] Kurre:
I read about it on some other thread..it was speculated that the problem is that ics loads LMK values after init.d gets processed. So one needs to run LMK script via script manager to get it right :what:

Hope those guys (those who have investigated this matter..) would comment here also. Maybe there is some work-around which you could use?

Oh and I'll check that file when I have flashed that kernel back..I had to wipe today :mad:

edit: No init.qcom.rc file found in / dir.

Sent from my sandwiched SGS
[Android Software/Hacking General [Developers Only]] msgfromside3:
Just reporting that the main works but not screen addon - still getting stuck at the boot. Tried on 2.4 & 2.6.9.
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
+1

The same is happening with version 2.4 and 2.6.11

thanks...
[Android Software/Hacking General [Developers Only]] Marshy919:
Hi pika, did you have a look at the init.d folder that I uploaded for you a few days ago?
[Android Software/Hacking General [Developers Only]] pikachu01:
It's in the changelog post :) Will post a post of changelogs later.

Nope. As long as the kernel has the didle code, it won't work.

Hmm, yes, I need to flash an ICS kernel to make sure though. No time to do that now :/

Are you guys using MIUI with Siyah 2.6.11?

Nope. Can't seem to download from there. Can you attach it on the XDA forum post?
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Yes, pikachu!

It is the "ROM MIUI" straight into the vein. :) ;)

Always...

Thanks bro!
[Android Software/Hacking General [Developers Only]] lunchboxVA:
sorry if i am asking a repeat question but what are the permissions supposed to be for the script package
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Run the following commands at the shell (adb) or shell script of your device.

chown root.shell /etc/init.d/*;

chmod 755 /etc/init.d/*;

:)
[Android Software/Hacking General [Developers Only]] pikachu01:
Can you come to:

webchat.freenode.net #suckerpunch?

I'll troubleshoot with you there :)
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Hey pikachu!

It would be interesting to you change the speed settings of the sdcard to 2048, it has been shown to be better than 1024.

echo 2048 > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

What do you think?

:)
[Android Software/Hacking General [Developers Only]] pikachu01:
Don't think so:

http://xdaforums.com/showthread.php?t=1032317

It can increase benchmarks, but it's known to slow down real life reads.
[Android Software/Hacking General [Developers Only]] Kurre:
darckengel has apparently found solution for this ICS LMK problem..Read this post in DerTeufel's Devil-kernel thread.

I hope he'll post he's solution soon :)
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Thanks Dude!
[Android Software/Hacking General [Developers Only]] pikachu01:
Thanks for the heads up. :)

No problem!
[Android Software/Hacking General [Developers Only]] mobs84:
With thunderbolt script installed profile created in Voltage control for Under clocked settings kept at max limit of 1Ghz in S2 is getting reverted to stock 1.2Ghz on reboot. Is there anyway to run the thunderbolt script and also keep the max CPU limit @ 1Ghz?
[Android Software/Hacking General [Developers Only]] pikachu01:
ThunderBolt! doesn't affect the max frequency limit. Do you have other scripts other than ThunderBolt!'s in your init.d dir?

Or you could try updating VC and use service instead?
[Android Software/Hacking General [Developers Only]] robogo1982:
Gonna give this a go over the weekend :D
[Android Software/Hacking General [Developers Only]] :
Do i have to reflash thunderbolt everytime i flash a new kernel or rom?
[Android Software/Hacking General [Developers Only]] pikachu01:
For a ROM, ues. :)

For kernel, it depends if the kernel itself removes the init.d scripts. Best is to reflash it everytime you flash a kernel/ROM.
[Android Software/Hacking General [Developers Only]] :
Hey pika, thanks for your work on this, have only had it for some hours but the effects suprised me, good work.

Anyway: Is thunderbolt messing mit setcpu?

In Setcpu -> Advanced something keeps messing with up- and down threshold, as well as freq_step.

I'm running conservative here and i'd like to have sampling rate: 100k, up_threshold: 95, down_threshold: 60, and freq_step on 15. With freq_step on 100 I could be using ondemand as well...

Please help.
[Android Software/Hacking General [Developers Only]] LukeOII:
hello,

so if I'm running on Phoenix kernel 1.27 on I9100,can I flash ThunderBolt-CWM v2.4.zip?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, ThunderBolt! actually changes the thresholds on the fly (screen off/screen on). You should only use one or the other :)

Yes :)
[Android Software/Hacking General [Developers Only]] manishdev:
can i use this script for flashing on i9100g??

Is this phone dependent and kernel dependent?

any particular governor which must be used specifically with this?
[Android Software/Hacking General [Developers Only]] :
Hm, what if i just want to change that and keep all the other benefits of thunderbolt? All I'd have to do was to stop thunderbolt from overriding my setcpu-stuff, any idea on how to do that?
[Android Software/Hacking General [Developers Only]] likiud:
Does the script work better with certain kernels? I noticed there's a package exclusively for talon kernel. Does that mean using talon will give the fewest issues if any at all?
[Android Software/Hacking General [Developers Only]] mobs84:
Yes, I have the latest version of VC extreme, even after saving the boot settings as startup service and post reboot, the Max limit for CPU reverts back to 1.2Ghz.

Profile settings: I/O Scheduler: Noop, Governor: Lulzactive. These settings remain as it is.

Just the Max CPU limit moves from 1Ghz to stock 1.2Ghz :confused:

Intially the profile used to load during the start up and remained as it is without any changes.

Here is my init.d script folder. I deleted all scripts from init.d folder and then installed the thunderbolt
[Android Software/Hacking General [Developers Only]] Sacob:
can we use this with ICS roms?
[Android Software/Hacking General [Developers Only]] HeathenMan:
On i9003 miui port (by gm007) , only the screenscate scaling didnt work
[Android Software/Hacking General [Developers Only]] :
What if i get

vm.dirty_ratio=20

vm.dirty_background_ratio=5

vm.vfs_cache_pressure=100

instead of

dirty_ratio = 80

dirty_background_ratio = 65

vfs_cache_pressure = 1

is it still working then?
[Android Software/Hacking General [Developers Only]] bigdyl69:
This looks really interesting but I cannot get it to work.

I've flashed the thunderbolt script package and addon scripts (LMK, ScreenScaling etc) but my phone will not boot up properly. It just sits at the Galaxy S screen with the big S in the middle.

I'm not new to flashing and have customised lots of things myself over the time I've had my Galaxy S but I'm pretty stuck now. I can get it booting with the restore script but certain apps need reinstalling...very weird!

Anyone have any ideas please?
[Android Software/Hacking General [Developers Only]] HeathenMan:
Like i said^^ without screen scaling you dont get loop
[Android Software/Hacking General [Developers Only]] CuriousTech:
^^ What screen on/off governor did you set? Make sure it's the recommended ones. Reading docs FTW :D
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Thunderbolt!

It is getting more complicated everyday because of all the new kernels out there that contain their own tweak/scripts. One has to be careful due to the 'didle' patch and a lot of other features in kernels. And, of course, only certain things will work for ICS, if that's what you are running. I'd just re-read the OP from beginning to end, the answer is probably in there. Pikachu knows this backwards and frontwards.
[Android Software/Hacking General [Developers Only]] sefira:
Same here. I'm running build 15 of ics and I only flashed the main cwm package. Also, which remount should I use? The i9000 one or the cm7-yaffs one?
[Android Software/Hacking General [Developers Only]] Dennys_Santos:
Hi pikachu.

I made small changes to the script 'update-script to make it work here in SGS2/MIUI.

In your script you mention that there is the possibility of building:

/data

but in fact does indeed.

I've tested the 'ROM MIUI' and also in 'ROM Samsung'

There was also a lack of lines in the script.

delete("/system/etc/init.d/S91SuperCharger");

...

set_perm(0, 0, 0777, "/system/etc/init.d/S91SuperCharger");

I hope I have helped in some way.

File: ThunderBolt-CWM 80MB LMK Others addon v1.0.5.zip

:)
[Android Software/Hacking General [Developers Only]] andruyd:
I might have made a mistake on installing thunderbolt. The scripts got installed in the external sd_card. Is that fine or should I remove thunderbolt and redo everything? Any problems with this? Thanks in advance!
[Android Software/Hacking General [Developers Only]] geokilla:
What do you mean installed in the external sd_card? As long as you flashed them from CWM with system and data mounted, you're good to go.
[Android Software/Hacking General [Developers Only]] mobs84:
I just removed all scripts from the init.d folder, VC is applying and retaining the profile settings after reboot. Its confirmed that the MAX frequency limit change is due to one of the scripts installed by thunderbolt. Not sure which one :( It will be great if you can fix this in the next release for S2..
[Android Software/Hacking General [Developers Only]] andruyd:
I meant the boot scripts folder were on the external_sdcard. I was following the instructions and couldn't find them on /sdcard/bolt_scripts/remount[device]. I looked at external_sdcard and they were there. I loaded those scripts on Script Manager.
[Android Software/Hacking General [Developers Only]] coldhandz:
Hi, I'm interested in applying the Pikachu01 Kernel and VM Tweaks from the addon package via Semaphore App, I'm currently running Jetpack 8.2 JW1 and Semaphore JW1 2.4.0. Can anyone tell me if these tweaks run along side my current applied tweaks i.e OC 1200, sdcard read ahead etc. or if they over right?

Thank you
[Android Software/Hacking General [Developers Only]] MAQ7:
Hi Pika,

The current release sometimes becomes laggy.

I chnaged the sampling down factor to 10000 for Ondemand and now I feel it is smoother.

SGSI

Semaphore 1.9.1 JVT

LMK60

All addons

Thanks
[Android Software/Hacking General [Developers Only]] pikachu01:
It should work without problems. Currently works for 9 different phones actually. Not phone nor kernel nor governor dependent. You can use any :)

Remove screenstate_scaling and just use SetCPU. One or the other :)

Nope. You can use any kernel actually. Yes, there's a package for TalonDev kernels only. However, that doesn't mean TalonDev will work the best for it. TalonDev is a kernel for SGS i9000 while ThunderBolt! itself works for 9 different Samsung phones ;)

It could be due to the delay for the init.d scripts/startup service that the max frequency changes back to stock. Wait a while (30seconds after boot then check?).

Yes, the main CWM, the LMK and the screenstate_scaling could work. Screenstate_scaling won't work if you have the didle patch in your kernel.

You have other scripts that executes after ThunderBolt! executes. Check your init.d for other scripts?

If your phone isn't booting, wait a while. The zipalign script, when ran for the first time takes a while to zipalign your APKs :)

And you need to reinstall apps because the zipalign is working on that APK (it will be moved to /data).

Also, make sure that your /data is not filled. Zipalign script uses /data to store temporary APKs.

I'm using smartassV2 without screen on/off. Also ondemand with newmail's patch (only in Semaphore, Midnight and TalonDev kernels) works good as well :)

Yup, that's correct :)

Do this:

mount | grep yaffs

If you get an output, use the yaffs. If not, use the fullext4.

Yeah, the updater script for the addons isn't complete actually. I would need to clean them up someday. For now, it's sufficient as it is if you're just installing the addon.

It's fine. Internal SD or external SD is the same as long as Script Manager is able to access it :)

It won't work with the readahead, nor the LMK. Don't use ThunderBolt! with them :)

A huge sampling_down_factor can be quite battery draining. Also, some phones can't cope with a high sampling_down_factor (might be due to aggressive UVing), hence I did not include it as part of ThunderBolt!.
[Android Software/Hacking General [Developers Only]] sefira:
My init.d folder only has thunderbolt scripts. But terminal emulator still does not show correct sysctl values. However values for the LMK are correct. Please advice.
[Android Software/Hacking General [Developers Only]] pikachu01:
Using Root Explorer/File Expert/Root Browser, in the "/" path, can you find this file?

init.d.qcom.rc (or something like that).

It's an initramfs file from the kernel that launches after the init.d is executed. You need your kernel dev to rectify this.
[Android Software/Hacking General [Developers Only]] sefira:
I'm using stock ics kernel and I can't find the file you're looking for. And I dont think the 'kernel dev' has the time to rectify this.

Will try thunderbolt again when Semaphore ICS kernel is stable. Thanks anyway. :) (Will press thx tmr)