yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kotaxor:
I think its ok....subsequent reboot does not change anything...I have already check.

Could be to some other factors during flashing of rom and speedmod kernel.

No problem and no issue..working fine so far. Thanks.
[Android Software/Hacking General [Developers Only]] red.hat:
Hello guys, as anyone exeprienced a suden freeze or sleep of death while using thunderbolt and the add ons( thunderbolt script, 100MB LMK, screen state)? My phone was on for about 1d 6 hours and 45 min on a full charge and then it just went off or dead. I had to restart pressing the power button. Did loose much but it seem smy phone is unstable combining it with -75Mv CPU undervolt.

Aslo Pika, how what effect with the zram in Siyah's kernal have on TB script, since it will be included in the kernel
[Android Software/Hacking General [Developers Only]] vitoski:
Hey pikachu01

I have just a quick question. I am using Galaxy S2 phone powered by CM9 and Siyah kernel. In the 'NON-DEV' discussion you advised me to use your script 'Thunderbolt' to optimize CPU usage/scaling and I am grateful for that.

I went through the OP in the first post and would like to ask you something. Since I am pretty satisfied how my phone runs and truly do not want to play around with Script Manager (did it with Galaxy S1 and I am a little bit tired of that:D), can you just provide me with your 'pegasusq' settings, so that I can tweak only my CPU settings - I really like the way your CPU is scaled.

Would it be possible?

I really admire your work and the effort you put into this project, but I do not feel like I need all of those tweaks (at least for now:)

One last question.

Is there any package that I can flash on CWM without need to do any additional steps and it will tweak the phone? I apologize if the same type of questions you have been asked million times... If yes, simply ignore them.

Thank you
[Android Software/Hacking General [Developers Only]] pikachu01:
If you only want how the CPU is scaled, you can install the screenstate_scaling addon only :)
[Android Software/Hacking General [Developers Only]] vitoski:
THX!

But now I got a little bit confused:)

You said that I can install screenstate_scaling addon, but in the OP it says:

"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!"

Hmm... Since I am on CM9 ROM I think it will not work or am I wrong?
[Android Software/Hacking General [Developers Only]] pikachu01:
Oh right. Didn't read that part about you on CM9.

Actually, I'm not sure if CM9 fixed the issue for that already or not.

If you want, you can try installing (with a nandroid backup) to see if it works or not.

If not, here are the settings for screen on:

echo "85" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold;
echo "10" > /sys/devices/system/cpu/cpufreq/pegasusq/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/pegasusq/io_is_busy;
echo "1" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_down_factor;
echo "20000" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate;
echo "100" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_step;
echo "5" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_up_rate;
echo "20" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_rate;
echo "100000" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_for_responsiveness;

Screen off:

echo "95" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold;
echo "5" > /sys/devices/system/cpu/cpufreq/pegasusq/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/pegasusq/io_is_busy;
echo "1" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_down_factor;
echo "100000" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate;
echo "20" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_step;
echo "20" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_up_rate;
echo "20" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_rate;
echo "50000" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_for_responsiveness;
[Android Software/Hacking General [Developers Only]] vitoski:
Really appreciate that!

btw. if I install the package from the first post 'Thunderbolt script 2.7.7, do I need to run Script Manager or is it required for 'Addons' from second post?
[Android Software/Hacking General [Developers Only]] pikachu01:
You'll need to use Script Manager if you want to experience the full experience. If not, just installing the CWM 2.7.7 will yield 30-40% improvement. Do note that Siyah incorporates 70-80% of ThunderBolt! scripts hence the performance increase just by installing the CWM isn't significant.

Addons that are compatible with ICS is only the LMK and screenstate_scaling. Both are install and reboot. (For the LMK, it's reboot twice).
[Android Software/Hacking General [Developers Only]] vitoski:
That's great explanation. Thank you very much pikachu01 for help. I am really glad you gave me your time and answered noob questions, cause I belive same kind of information you were askad bazylion times.

In fact in ExTweaks I saw there is a possibility to select 'Thunderbolt scripts' for CFS Tweaks, but do not know exactly what is does (at least for now):)
[Android Software/Hacking General [Developers Only]] pikachu01:
CFS is part of ThunderBolt! tweaks that tunes the Completely Fair Scheduler (CFS) for the CPU. Basically it tunes the latency/time slices/how many processes can be run for each tick the CPU uses.

If you're using Siyah's CFS, you don't need to use Script Manager to run CFS scripts.
[Android Software/Hacking General [Developers Only]] robertobsc:
Hi pikachu, a question:

I included STCPBuffers in my init.d. I did noticed a improve in connection speed but I also noticed much more battery use when using 3g.

Is that expected? If yes there's another config to consume less battery?

Thanks! I

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] LalyGirl:
Does it works on HTC ONE S with MIUI sense base?
[Android Software/Hacking General [Developers Only]] pikachu01:
Umm, I didn't notice the battery drain. :/

Maybe I've been using it for some time and got used to the battery drain while in 3G. There doesn't seem to be any other alternative.

The main CWM and LMK should work if you have:

- NAND unlocked

- root

- init.d support

- CWM
[Android Software/Hacking General [Developers Only]] LalyGirl:
My device support init.d but I don't know if the rom MIUI SENSE BASE has it
[Android Software/Hacking General [Developers Only]] pikachu01:
Cyanogenmod/AOSP kernels usually include init.d support. So I think it's all good :)

The only thing I'm not sure about is whether your device is NAND-unlocked.
[Android Software/Hacking General [Developers Only]] Gvdn:
Hi pickachu. Thx tot your amazing work. Used this always before heading tot cm9. Atm im on cm10 hand was wondering if Thunderbolt would work on it?

Thx in advance.
[Android Software/Hacking General [Developers Only]] pikachu01:
Should work fine. Try it out and let me know (I know of a reported case of it being successful).

One thing I'm not sure of is whether screenstate_scaling addon works on CM10 (it didn't on CM7 and did for CM9 but not some AOSP variants).

Can you try installing it on CM10? If it hangs at boot, just do a recovery from nandroid or go to ADB and delete everything in /etc/init.d
[Android Software/Hacking General [Developers Only]] Gvdn:
Thx for the fast reply.

Could i ask u what modules u want me to try or can i try all of them?

Any preffered sequence?
[Android Software/Hacking General [Developers Only]] pikachu01:
No, just the screenstate_scaling addon.

The main CWM and LMK should work fine. No sequence. Install them as you like.
[Android Software/Hacking General [Developers Only]] Gvdn:
It is probably me but reading the OP its difficult to understand what to install tbh. I downloaded the Thunderbolt CWM 2.7.7.zip but do i need to download the addons also or are these all included in the 2.7.7 one?

Thx again
[Android Software/Hacking General [Developers Only]] pikachu01:
They are not included. You'll need to download them as well :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Actually, if anyone wants to help clean up the OP, you can paste the summarized version and I'll replace the OP with a less confusing instruction ;)

Thanks!
[Android Software/Hacking General [Developers Only]] PANCHOMATASANO:
MIPS

DEAR pikachu01.

I tried to install thunderbolt, but failed.

I changed sqlite3, zipalign and busybox versions that have worked for MIPS. I've spent this zip by dsixda kitchen. Already installed. I'm about to test your script with a version of "Script Manager mips" that Devwom sent me an email. Then he reported the result and the zip. (If success )

EDIT 1: failed

I tried this busybox http://files.androtab.info/ingenic/superuser/Superuser-3.0.7-bb-mips32r2-ics.zip

and this other http://www.mediafire.com/?2ryf21mikwnwewf ; from the-razer@xdadevelopers.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, can't help here as I don't have knowledge on where to get a working busybox for MIPS. Perhaps you can get some help from the busybox author to compile one for MIPS.
[Android Software/Hacking General [Developers Only]] PANCHOMATASANO:
already tried, and they said they only have a version 1.6 of busybox, and not in the short term priorities to compile a new version
[Android Software/Hacking General [Developers Only]] pikachu01:
The next best option would be to compile it yourself. Get a Linux machine and compile for ARM MIPS architecture. The how-to can probably be googled. Apart from that, I can't offer any help as it is not within my expertise.
[Android Software/Hacking General [Developers Only]] PANCHOMATASANO:
THANKS

I'm learning and looking for that information, I'm a hunting dog.

Sent from my home using UBUNTU
[Android Software/Hacking General [Developers Only]] pikachu01:
Try it and let me know :)

Thanks!
[Android Software/Hacking General [Developers Only]] Gvdn:
Hi again Pikachu,

Tried to install thunderbolt on CM10 from Pawitp version 08082012 but i get stuck at kernel splash screen. I am using Semaphore kernel and i think the problem is that semaphore puts alot of scripts in init.d folder and installing thunderbolt deletes them.

I will try reflashing Semaphore kernel and see if it makes any difference.

Edit: Ok seems the Semaphore scripts are still there in init.d but i cant make it past kernel splash screen. Anyway thx for your hard work.
[Android Software/Hacking General [Developers Only]] pikachu01:
ThunderBolt! will attempt to delete some known scripts that interferes with it. However, you should try to install the main CWM first to see if it works, then try the next.
[Android Software/Hacking General [Developers Only]] Gvdn:
OK will try

Btw reflashing Semaphore kernel didnt work. Restore Nandroid did.
[Android Software/Hacking General [Developers Only]] jnr21:
Is this compatible with cm10 (jelly bean)?
[Android Software/Hacking General [Developers Only]] pikachu01:
Someone tested it and it was compatible. Can you try it out (Nandroid beforehand).

Also, can you please try the screenstate_scaling to see if it still hangs on boot for Cyanogenmod based ROMs?

Thanks!
[Android Software/Hacking General [Developers Only]] Custodian:
Hey pika!!!!!

I'm running CM10 on the epic touch 4g(GSII) which setting would you recommend for battery?

Thanks!
[Android Software/Hacking General [Developers Only]] pikachu01:
Follow the first post and install the main CWM (v2.7.7), and the LMK. I'm not sure if the screenstate_scaling addon is compatible or not. Can you try installing one by one (with the screenstate_scaling the last), one reboot per install to see if it works?

Make sure to have a nandroid backup.
[Android Software/Hacking General [Developers Only]] Gvdn:
Test Results CM10 Jelly Bean and Thunderbolt:

CM 10 Pawitp version 08082012 running Semaphore kernel 2.02b

Test1: Main CWM Thunderbolt 2.7.7 install -> Passed

Test 2: Run script remount CM7 Yaffs2 -> Passed and looking at log it seems to have worked. 2 issues perhaps: "mounting none on /acct failed: Device or resource busy"and "mounting none on /dev/cpuctl failed: Device or resource busy" But perhaps this is suppose to happen

Test 3 : Run script sqlite_optimize -> Running this gives a ton of these messages "reloc_library[1331]: 6619 cannot locate 'sqlite 3_enable_load_extension' ... CANNOT LINK EXECUTABLE. This goes from 6619 to 6896 so there is a hell lot of em

Test 4 : Run script s70darky_zipalign -> this zipaligns some apk but i got a soft reboot during the proces ( or perhaps it is set to reboot once it finished zipaligning???) Once phone was booted im missing some apps like titanium backup so i think the zipaligned apk's are missing now

Test 5 : Run script S98CFS -> gives as output : vm.drop_caches = 3 | sysctl: short write | Caches are dropped! | sysctl : error : 'kernel.sched_min_granularity_ns' is an unknown key | sysctl : error: 'kernel.sched_latency_ns' is an unkown key | sysctl : error: 'kernel.sched_wakeup_granularity_ns' is an unknown key

I will update reply with each step.
[Android Software/Hacking General [Developers Only]] pikachu01:
Test Results CM10 Jelly Bean and Thunderbolt:

CM 10 Pawitp version 08082012 running Semaphore kernel 2.02b

Test1: Main CWM Thunderbolt 2.7.7 install -> Passed

Test 2: Run script remount CM7 Yaffs2 -> Passed and looking at log it seems to have worked. 2 issues perhaps: "mounting none on /acct failed: Device or resource busy"and "mounting none on /dev/cpuctl failed: Device or resource busy" But perhaps this is suppose to happen

Normal

Test 3 : Run script sqlite_optimize -> Running this gives a ton of these messages "reloc_library[1331]: 6619 cannot locate 'sqlite 3_enable_load_extension' ... CANNOT LINK EXECUTABLE. This goes from 6619 to 6896 so there is a hell lot of em

Looks like sqlite cannot work in CM10 or the sqlite binary cannot be copied to /system/xbin. Either you run out of disk space or something is preventing it from being copied or sqlite binary needs to be recompiled for CM10.

Test 4 : Run script s70darky_zipalign -> this zipaligns some apk but i got a soft reboot during the proces ( or perhaps it is set to reboot once it finished zipaligning???) Once phone was booted im missing some apps like titanium backup so i think the zipaligned apk's are missing now

Nope, it's not set to reboot. Either the zipaligning process took too much disk space or zipalign needs to be recompiled for CM10.

Test 5 : Run script S98CFS -> gives as output : vm.drop_caches = 3 | sysctl: short write | Caches are dropped! | sysctl : error : 'kernel.sched_min_granularity_ns' is an unknown key | sysctl : error: 'kernel.sched_latency_ns' is an unkown key | sysctl : error: 'kernel.sched_wakeup_granularity_ns' is an unknown key

This means your kernel didn't enable SCHED_DEBUG config. Need to ask your kernel dev to enable it.

I will update reply with each step.
[Android Software/Hacking General [Developers Only]] Gvdn:
Thank you so much for the quick update. So from what i understand atm the only thing i can do is test 1 and 2?

Will continue testing tomorrow. For sqlite i have enough room for it to be copied ill try to copy it manualy with rootexplorer end try again.
[Android Software/Hacking General [Developers Only]] Custodian:
Thanks pika ... ill do this now and report back
[Android Software/Hacking General [Developers Only]] pikachu01:
You can test the LMK and screenstate_scaling as well. :) Please test them. Thanks!

Let me know if you have any issues :)
[Android Software/Hacking General [Developers Only]] red.hat:
Pika, is your cpu uv and if so by how much.
[Android Software/Hacking General [Developers Only]] pikachu01:
I uved 100MHz and 200MHz to 875mV. That's it :)
[Android Software/Hacking General [Developers Only]] red.hat:
Will send you a script i wrote. Tell me what you think?
[Android Software/Hacking General [Developers Only]] pikachu01:
Sure. Let me take a stab at it :)
[Android Software/Hacking General [Developers Only]] red.hat:
This is from your cputune.

#!/system/bin/sh

#if [ -e /sys/class/misc/gpu_clock_control/gpu_control ]; then

#echo "100 160 267" > /sys/class/misc/gpu_clock_control/gpu_control;

#echo "85% 50% 85% 50%" > /sys/class/misc/gpu_clock_control/gpu_control;

#echo "850000 900000 950000" > /sys/devices/virtual/misc/gpu_voltage_control/gpu_control;

fi;

#if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then

#echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;

#echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;

#echo "1375 13250 13000 1275 1175 1125 1075 1025 975 975 975 950 950 925 900 850 825 800 " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table;

#fi;
[Android Software/Hacking General [Developers Only]] pikachu01:
Umm, I don't get it. What is the context?
[Android Software/Hacking General [Developers Only]] red.hat:
Want to apply it to my phone as a script. Do you think it will work
[Android Software/Hacking General [Developers Only]] kaluoshi:
hey man this is an amazing work! :D so my question is: i wanna put this beautiful script (thunderbolt!) in my rom (can i? :)), is a galaxy nexus 4.1.1 jro03c based rom with trinity kernel. i wanna include it in etc/init.d folder. i have to download cwm version and extract it? thanks :)

P.S. please tell me which addons can i add for my rom, i'm a noob with this XD
[Android Software/Hacking General [Developers Only]] pikachu01:
It won't work unfortunately.

The lines are commented (#). The script will run, but it won't do anything.

Yes, extract them. You have to also use Script Manager to run some of the other scripts if you want to enjoy all of the features.

You can probably use the 100MB LMK and the screenstate_scaling (if it works).

I'm not sure if it works in your Galaxy Nexus. Can you try screenstate_scaling works? Do a nandroid beforehand.
[Android Software/Hacking General [Developers Only]] kaluoshi:
so i have to download cwm-thunderbolt-2.7.7 + 100 LMK addon and extract them, then put each file in respective folder? for example i have to merge system folder of thunderbolt 2.7.7 with my rom working folder right? and for LMK merge system folder and add build.prop line right? thanks :)

P.S.should i need screenstate_scaling?

EDIT:need to use script manager for all features? i wanna put this features as hidden from users :(
[Android Software/Hacking General [Developers Only]] pikachu01:
You can move the scripts from Script Manager to init.d (except the remount as that part needs to start after the OS starts).
[Android Software/Hacking General [Developers Only]] kaluoshi:
thanks :) if i wanna include only thunderbolt 2.7.7 is enough to merge system folder in .zip file with rom's system folder?
[Android Software/Hacking General [Developers Only]] pikachu01:
As I've said, it is enough, but you can only get the full features if you use the scripts in /etc/bolt_scripts. Either move the ones you want to init.d or use Script Manager to run the scripts you want. E.g. CFS, TCP_Buffers, zipalign.

The remount must be done by Script Manager in fear that the kernel remounts the mounts after init.d is executed.
[Android Software/Hacking General [Developers Only]] kaluoshi:
so the problem for including all script of only 2.7.7 .zip in a cooked rom remain :( i can use this procedure for my device but rom's users don't have to. so i can put all script in init.d folder without the "remount", or is it needed for other script? thanks for patience, i'm a noob with script :D
[Android Software/Hacking General [Developers Only]] pikachu01:
You can safely put zipalign/TCP_Buffers/CFS in init.d. The only script that cannot do that is the remount.

All other scripts are used for special purposes which you can read in the first post and decide if you want to use it or not.
[Android Software/Hacking General [Developers Only]] kaluoshi:
thanks man, for advice me and give me the opportunity of including your work in my rom :)

hope this make my nexus super :fingers-crossed:
[Android Software/Hacking General [Developers Only]] kaluoshi:
hey man! after choose which script and addons i want put in rom i noticed that i still have lib/libsqlite.so, lib/libsqlite_jni.so, bin/app_process and bin/system_server. i have to replace them regardless of scripts before cook or not? thanks :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Umm, that's in the bin addon which didn't say was compatible for ICS.

Only the LMK and screenstate_scaling addon (maybe) is compatible
[Android Software/Hacking General [Developers Only]] kaluoshi:
ok :) what about libsqlite addons? have to replace libsqlite.so and libsqlite_jni.so, and add libncurses.so? thanks again :)
[Android Software/Hacking General [Developers Only]] pikachu01:
As I've said multiple times. Only the LMK and screenstate_scaling addons are compatible. I don't know how unclear my message is. I'm sure a clear message that "only LMK and screenstate_scaling addons are compatible with ICS and JB" constitutes the meaning that:

- Only LMK and screenstate_scaling addons can be usable in the case

- No other addons are usable in the case

- The main CWM is compatible.

- The main CWM is not an addon

Please let me know if my English is too complicated. However, I don't have any means of making it simpler.
[Android Software/Hacking General [Developers Only]] kaluoshi:
sorry man, you're absolutely right. it's my fault asking more time a thing :o awesome work btw :good: :fingers-crossed: :good:
[Android Software/Hacking General [Developers Only]] muktheo:
hello pika.. I wanna ask..

How to remove or uninstall TB script from my hh with manually step..?using root explorer maybe..?hm I wanna re-install TB script bcoz I think my previous TB isnt installed properly.. Thanks for advice.. :))
[Android Software/Hacking General [Developers Only]] pikachu01:
Which CWM zip did you install? If you've installed the main CWM, just removing everything in /etc/bolt_scripts and /etc/init.d plus /system/xbin/sqlite3 /system/xbin/zipalign should be enough.
[Android Software/Hacking General [Developers Only]] muktheo:
Im just instaling the main cwm and LMK zip bcz Im on ICS..which file on init.d pika?bcoz there are many file like from my kernel config,voltage control, and rom tweaks..is tb file just s98system_tweak?
[Android Software/Hacking General [Developers Only]] pikachu01:
You can take a look by looking at the zip file. Whatever is in the zip file (excluding tools and META_INF) is installed into your ROM.
[Android Software/Hacking General [Developers Only]] Custodian:
Upgraded to the GSIII pikachu. I dont see many users talking about your brilliant tweaks over there though....do you have any suggestions lol. I have 2 gigs of ram :)

---------- Post added at 09:12 PM ---------- Previous post was at 08:45 PM ----------

Installed everything you mentioned before...even screenstate. All seems to be working fine! Smooth and..my screen looks more vibrant? o_O

app_133@android:/ $ export PATH=/data/local/bin:$PATH

app_133@android:/ $ su

app_133@android:/ # ls /proc/sys/vm

block_dump

dirty_background_bytes

dirty_background_ratio

dirty_bytes

dirty_expire_centisecs

dirty_ratio

dirty_writeback_centisecs

drop_caches

highmem_is_dirtyable

laptop_mode

lowmem_reserve_ratio

max_map_count

min_free_kbytes

min_free_order_shift

mmap_min_addr

nr_pdflush_threads

oom_dump_tasks

oom_kill_allocating_task

overcommit_memory

overcommit_ratio

page-cluster

panic_on_oom

percpu_pagelist_fraction

scan_unevictable_pages

stat_interval

swappiness

vfs_cache_pressure

app_133@android:/ #

Sent from my SPH-L710
[Android Software/Hacking General [Developers Only]] pikachu01:
That's good. However, can you post the output for these:

sysctl -a | grep vm

getprop | grep ADJ