yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] pikachu01:
What error are you getting?

I can see that you already have settings from an older ThunderBolt!.

Hi pika,

Thanks for sharing.

How i want to get LMK tweaking app? Fyi im use 80LMK.

There's no correctly working LMK app in the market yet. As I said, you might have installed Supercharger together with the LMK addon, which is incorrect. You should either install Supercharger or ThunderBolt!'s LMK addon.

How is it not working?
[Android Software/Hacking General [Developers Only]] pikachu01:
Cool. Let me know :)
[Android Software/Hacking General [Developers Only]] oudbrood:
Hi Pica,

I get this error while running zipalign:

Wc: not found

[: not found

And this is a long list with same errors
[Android Software/Hacking General [Developers Only]] snoopdaclown:
OK. Cool. I'm gonna test it with adrenaline then remove and flash thunderbolt but its been running pretty good with it...

Sent from my Haxsung Infuse R3velation injected with adrenaline
[Android Software/Hacking General [Developers Only]] pikachu01:
Have you tried running it with a longer uptime? LMK mismatches usually show their signs at higher uptimes.
[Android Software/Hacking General [Developers Only]] pikachu01:
You have a busybox issue. Install stericson's busybox and install it at /system/xbin.
[Android Software/Hacking General [Developers Only]] mhairy:
Hi pika,

Thanks for ur advise. I will try after i install crybernation beta 2. Than i update to you...
[Android Software/Hacking General [Developers Only]] flolep:
Ok.

Here is my report.

So, it works!

But I have to notice some facts...

First, I wanted it to be a bit more aggressive on the settings so I put commit=90 instead of 60 in the script.

And second, I want to take the risk to put barrier=0 and commit=90 for /system to have a bit more smoothness (and I know the risks...)

Third, two lines don't work for our Galaxy nexus. The lines for efs and .lfs

The folders don't exist so I removed the lines in the script.

Four, script manager seems to work very very badly on our GN... For example some times I can't run a script, or it can't go to the file explorer... And impossible to have it run scripts at boot... I have busybox last version, cm9 one so it's not the problem...

So to have my script working every boot, I put it in /system/etc/init.d.

And....... Tada!

It's working perfectly. I have a real boost in smoothness. That with the apk of Paul to automatically odex a deodexed rom, aokp rom and franco kernel. My phone is flying!

I have to be sincere though as I tried the main zip of thunderbolt but it is not working as it worked on i9000... I loose a bit of performance compared with default parameters of franco kernel... It lags a bit on the transitions on the screens of the launcher when thunderbolt is applied. Lag is disappearing when removing thunderbolt. But for sure, maybe I would have more battery. But I prefer smoothness and performance as you know.

Thanks for all pika.

Take care.
[Android Software/Hacking General [Developers Only]] FlorisNL:
Hey man. Im using Feacore now. Here Is what I get after installing:

$ export PATH=/data/local/bin:$PATH
$ sysctl -a | grep vm
sysctl: error reading key 'kernel.cad_pid': Permission denied
sysctl: error reading key 'net.ipv4.route.flush': Permission denied
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 = 5
vm.dirty_background_bytes = 0
vm.dirty_ratio = 80
vm.dirty_bytes = 0
vm.dirty_writeback_centisecs = 500
vm.dirty_expire_centisecs = 200
vm.nr_pdflush_threads = 0
vm.swappiness = 60
vm.lowmem_reserve_ratio = 32
vm.drop_caches = 0
vm.min_free_kbytes = 2678
vm.min_free_order_shift = 4
vm.percpu_pagelist_fraction = 0
vm.max_map_count = 65530
vm.laptop_mode = 0
vm.block_dump = 0
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
$

Is this okay?

---------- Post added at 08:00 PM ---------- Previous post was at 07:15 PM ----------

Damn, I want to release my ROM.. Sorry I am so pushy..

I deinstalled Thunderbolt 2.6.1.

Rebooted

Installed Thunderbolt 2.6.1

Installed LMK 80MB

Rebooted

Than I got this
[Android Software/Hacking General [Developers Only]] AndroidFiber:
Great mods pika..does it support speedmod kernel? Planning to use your masterpiece :-)
[Android Software/Hacking General [Developers Only]] projectvirtue:
having a weird problem

I upgrade from 2.3.1 to 2.6.1 yesterday, it removed the bolt_scripts folder from the sdcard but it didn't put in the new one? i re-flashed it to no avail (yes i'm remembering to mount the partitions first). So as of the time being, i TB isn't running on script manager. did the directory for the scripts change at all?
[Android Software/Hacking General [Developers Only]] pikachu01:
It's now in /etc/bolt_scripts. It's there in the changelogs :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, it supports speedmod as well :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Some VM settings like:

vm.dirty_background_ratio = 5
vm.dirty_expire_centisecs = 200

is incorrect. Might relay back to your kernel dev and ask why these sysfs interfaces are broken.
[Android Software/Hacking General [Developers Only]] Bubonic78:
Will this work for zeus 6. Can't get a answer anywhere.
[Android Software/Hacking General [Developers Only]] pikachu01:
Should be working :)

Do a nandroid beforehand.
[Android Software/Hacking General [Developers Only]] Bubonic78:
Thanx but I looked at this and it's over my head. Do I download the one that says thunderbolt. I know it's dum I'm just a noob and don't want to do the wrong one.
[Android Software/Hacking General [Developers Only]] stevehkim:
Pika i have a little problem. Using newest tbolt scripts with great success on checkrom v6. I restored a nandroid of miui and updated to newest tbolt scripts and phone wouldnt boot past samsung screen. So what i did was load each init.d script one by one to find the culprit and it was screen state scaling. Once i removed it phone booted just fine. I tried it once more to make sure that was the culprit and sure enough it was. What could be causing this? Currently on miui 2.3.9 newest tbolt scripts except screen state scaling. Had to use a previous screen state scaling.

Checkrom'd/MIUI'd

SIYAH Synthetics

I777 SGS2
[Android Software/Hacking General [Developers Only]] pikachu01:
The zip files in the first page is the restore files (for different phones) and the main CWM.

The second posts are addons (which are explained in the thread).
[Android Software/Hacking General [Developers Only]] AndroidFiber:
Thanks pika..do i need to empty the init.d folder? Im using checkromv6 and speedmod21..

Inside init.d:

» 01efs

» SO1sysctl

» S96zipalign

» S98CheckBoost

» S99complete
[Android Software/Hacking General [Developers Only]] pikachu01:
Can you upload S98CheckBoost? All the others except01efs can be deleted.
[Android Software/Hacking General [Developers Only]] pikachu01:
Disable your UV/OC. Your UV/OC is not compatible with the io_is_busy flag for ondemand (probably).
[Android Software/Hacking General [Developers Only]] danieldmm:
Maybe this can help...

#!/system/bin/sh
#
# CheckROM Tweaks
#

# Remount all partitions
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /system
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /data
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /cache

#SDCard Read

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

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

# Load modules & Renice kswapd0
sleep 3
insmod /system/lib/modules/fuse.ko
insmod /system/lib/modules/cifs.ko
renice 18 `pidof kswapd0`

Cheers
[Android Software/Hacking General [Developers Only]] snoopdaclown:
Longer run time? What you mean by that?

Sent from my Haxsung Infuse R3velation injected with adrenaline
[Android Software/Hacking General [Developers Only]] pikachu01:
You can delete that as well, it'll clash with ThunderBolt!'s settings.
[Android Software/Hacking General [Developers Only]] Bubonic78:
As I said that's over my head. that page is not typical user friendly. maybe when I have time to read that Novel you have written over there and get a IT guy to explain it to me I'll give it a try. Till then thanx anyway
[Android Software/Hacking General [Developers Only]] pikachu01:
Longer uptime. That means you don't reboot/turn off your phone for long periods of time.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, can you troubleshoot and see which is the script causing the lags in the main CWM? I would need to iron this one out.

Thanks!
[Android Software/Hacking General [Developers Only]] flolep:
Ok. I will when I'll have time... But firstly, and it's normal for me, touchscreen script isn't working for Galaxy Nexus because files touched by it don't exist...

I will investigate if it's cfs, system script or bin files and report when I'll do it.

+ +
[Android Software/Hacking General [Developers Only]] AndroidFiber:
...

Thanks pika for your support.

@ daniel thanks for uploading
[Android Software/Hacking General [Developers Only]] FlorisNL:
I'm desperate.. Don't know what to do.. can't get the right vm settings for my custom rom, and Feacore doesn't work as well.. pikachu, can you help me changing these sysfs settings? :-((((
[Android Software/Hacking General [Developers Only]] broodplank1337:
Lets wait until LagFreeV1.4compatible-with-Supercharger-V6 is fixed properly and look what results its giving us, i kinda like the simplicity of that. only 1 script ;)

fully integrable in rom without using script manager
[Android Software/Hacking General [Developers Only]] snoopdaclown:
Yeah some times I don't reboot my device for like 4 days and sometimes I do it 3 times in a day.. and I did that with thunderbolt and adrenaline. Haven't changed anything I do on the device

Sent from my Haxsung Infuse R3velation injected with adrenaline
[Android Software/Hacking General [Developers Only]] pikachu01:
Do you get lags after a long uptime versus short uptime?
[Android Software/Hacking General [Developers Only]] pikachu01:
You need to ask your kernel developer (i.e. Feacore's developer).

Script Manager is used so that mount options stick (I'm supporting > 12 devices, hence it is a necessary step).

Other than that, different file scripts are supported so that each can be remoevd without removing all of the goodness (i.e. if you only want screenstate you install the certain addon).
[Android Software/Hacking General [Developers Only]] broodplank1337:
Idd for supporting more devices you need script manager, but lets say I'm making one for the i9001 only and also for my ROM only, then I don't need script manager.

You could have a look in my package:

http://xdaforums.com/attachment.php?attachmentid=942910&d=1331522742

My file structure is:

├─── /system
│
│ default.prop
│
└───etc
│ SuperChargerAdj
│ SuperChargerMinfree
│
├───init.d
│ S90broodROM
│ S91SuperCharger
│ S95Lagfree
│────────────────

So it's not really 1 file, but it's still allot less compared to original ;)

Also it doesn't seem to interfere with SkyHigh ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
What's SkyHigh anyways?

Lagfree's script has a bug though. Look for dirty_background_ratio :)
[Android Software/Hacking General [Developers Only]] broodplank1337:
SkyHigh is a kernel made by Skywalker01, based on Fecore Phoenix 1.4, it has allot of tweaks included so thunderbolt/adrenaline shot isn't needed. Also when I install thunderbolt the system boot loops, but skywalker01 said that's normal because the system loads to many tweaks which makes it unstable and bootloops.

So actually it has an sort of integrated thunderbolt ;)

Although LagFree does work with it.

And for the dirty_background_ratio

vm.dirty_background_ratio = 5

(all values)

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 = 5
vm.dirty_background_bytes = 0
vm.dirty_ratio = 65
vm.dirty_bytes = 0
vm.dirty_writeback_centisecs = 500
vm.dirty_expire_centisecs = 200
vm.nr_pdflush_threads = 0
vm.swappiness = 0
vm.lowmem_reserve_ratio = 32
vm.drop_caches = 1
vm.min_free_kbytes = 2678
vm.min_free_order_shift = 4
vm.percpu_pagelist_fraction = 0
vm.max_map_count = 65530
vm.laptop_mode = 0
vm.block_dump = 0
vm.vfs_cache_pressure = 50
vm.mmap_min_addr = 4096
vm.scan_unevictable_pages = 0

I guess changing

if [ -e /proc/sys/vm/dirty_ratio ]; then
echo "65" > /proc/sys/vm/dirty_ratio
fi

to

echo "65" > /proc/sys/vm/dirty_ratio

should do the trick?

I mean

echo "25" > /proc/sys/vm/dirty_background_ratio
[Android Software/Hacking General [Developers Only]] pikachu01:
Thanks :) Appreciate it!
[Android Software/Hacking General [Developers Only]] pikachu01:
Load too many things and become unstable? :/

Might be related to a sysfs interface that is broken (hence echoing to it will hang it)?

Did you try without addons? It might also be related to the didle patching that broke screenstate_scaling?

Oh wait, I get it. The dirty_background_ratio doesn't have any value (the if doesn't have a closing fi).

That makes the script unable to run at all :/

Lagfree is compatible with SkyHigh because the script doesn't work in the first place? Isn't that a bit umm .....

Try running the script in Script Manager, it'll error out.
[Android Software/Hacking General [Developers Only]] danieldmm:
You're welcome :)

Cheers

Escrito pelo meu querido Galaxy S2 using tapatalk...
[Android Software/Hacking General [Developers Only]] flolep:
Ok. I tried system and cfs script inside my init.d folder, no loss of performance nor smoothness, no win too, but maybe better battery stats but not sure...

I will try the other files... Report after.

+ +
[Android Software/Hacking General [Developers Only]] qkster:
I tried flashing this over Stock UCLB3, modded frameworks fast scroll, Entropy's kernel - I got a lot of lag, touchscreen poor response.

It was noted with initial boot and running time.

I also tried rebooting and clear caches. It did not seem to help.

I also tried reinstalling with clean wipes as well. No help.

I also change the build.prop forcing launcher into memory and out of memory, it did not seem to improve either.

idk.... :)

Would love to see this work for me...
[Android Software/Hacking General [Developers Only]] skywalker01:
I never said that ;) What I actually said is this:

and this:

and most importantly the last sentence here:

No, these are fine in FeaCore and SkyHigh as well. The problem is what you echo/push in there ;)

Can't agree on that one, in the file I downloaded it has (S95Lagfree, line 105).

It's not that easy and a little bit more complex I guess ;)

I'm absolutely sure, it really looks frightening. All those ";" where they don't belong, several "#!/system/bin/sh" in the middle of a shell script and I doubt that all of these settings are really helpful ;)

Just some examples:

- virtual bdi device 0:18 does not exist on I9001

- vm.overcommit_memory is already 1 by default and should never be changed; setting it to 2 for example will stall or boot loop any I9001 kernel ;)

- "supercharger" settings are modified twice and even with different values, why ?

- I'm not sure if the OOM_MEM settings in default.prop are any good for the I9001 or may even be a problem

@broodplank: all settings should be tested one by one before applying them (just send via adb) or don't use them as already stated above

@pikachu: sorry to misuse your thread here, just wanted to clear up the obvious misunderstanding of my words
[Android Software/Hacking General [Developers Only]] pikachu01:
Which addons did you install? Can you install the script one by one and see which is the exact script that is causing the lag?
[Android Software/Hacking General [Developers Only]] pikachu01:
Cool. Let me know of your further research :)
[Android Software/Hacking General [Developers Only]] stevehkim:
Why would it work with checkrom and not miui using the exact same settings?
[Android Software/Hacking General [Developers Only]] pikachu01:
Ahh, Ok. Lots of miscommunication here I guess.

What I'm trying to say is that certain kernels that use the latest didle patch breaks the wait_on_fb_wake/sleep feature. That could be one cause of the incompatibility.

Also, the lagfree script (version 1.4) has a bug in it that the script doesn't actually work. The if/fi statement is missing a fi which totally stops the script midway. And yes, the system/bin/sh in the middle of the script is a killer there LOL.

And the virtual/bdi on ThunderBolt! has a if (-e)/fi to make sure that the virtual bdi actually exists before applying them :)

The OOM/MEM actually works universally. It doesn't really matter how much RAM you have (as long as its over 300ish MB). The lower thresholds of the OOM/ADJ/LMK is actually pretty much the same all over Samsung ROMs (from what I saw).
[Android Software/Hacking General [Developers Only]] pikachu01:
Oh wait, you're saying MIUI doesn't support screenstate_scaling but checkrom does?

I know the reason: The didle patch makes the wait_for_fb_wake/sleep fail when in CM7/MIUI. More info in the big red bolt text in the original post.

It's been a known issue since a long time ago.
[Android Software/Hacking General [Developers Only]] broodplank1337:
Thanks guys! That's some handy information ;) I will also link these posts to the creator of the Lagfree script.
[Android Software/Hacking General [Developers Only]] stevehkim:
Gotcha. My dumbass didnt read it. Thanks brotha!!

Checkrom'd/MIUI'd

SIYAH Synthetics

I777 SGS2
[Android Software/Hacking General [Developers Only]] snoopdaclown:
No really never had lag except with the keyboard but that was only on conservative. Well usually with just that. Sometimes it would lag a lil bit but i was using the lmk 60mb and then the other. Never had a issue that would make me not use them. I was happy with the tweaks but its about the same as adrenaline with smoothness and speed and scrolling.

Sent from my Haxsung Infuse R3velation injected with adrenaline
[Android Software/Hacking General [Developers Only]] qkster:
ok..will try..I flashed the 2.6.1 package thru cwm; I also tried to incorporated into the rom prior to flashing.

I will try each one to see if it does anything.

Thanks, pika.
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Thunderbolt!

I finally got Thunderbolt! flashed again, and I'm unsure of what I should be using. I'm on Doc Masters, ICS V5 with the latest Glicth Kernel. Using GlitchassV2 Min CPU>200MHz Max CPU>1200 MHz. This is what was in my init.d before Thunderbolt!:

01sysctl

90call_vol

logcat_module

S70zipalign

S98system_tweak

S98screenstate_scaling

Going from memory, I removed 'S98system_tweak and S70zipalign' then flashed Thundebolt! I found the new location of the bolt file in etc, then ran the remount 'yaffs' and the 'sqlite optimize' scripts. Should I run the Thundrbolt version of the zipalign script (S70darky_zipalign), or reinstall the version that came along with the ROM (S70zipalign)?

Also, Thunderbolt placed 'S91supercharger' in my init.d, isn't it wrong to run that along with any of the LMK cwm's?:confused:
[Android Software/Hacking General [Developers Only]] skywalker01:
Oh yes, and unfortunately more than you might believe I fear, see below ;)

Yes, on Samsung S5PV210 CPU based boards that is. But the I9001 doesn't use any Samsung hardware except for the display and the vibrator I guess. But even the vibrator is not the exact same vspdrv one from the I9000 and I9100 but something else or somehow modified (the I9000/I9100 drivers don't work here). The board is completely qualcomm based with lots of other stuff like Yamaha, Sharp and Bosch sensors, NEC ISP and the rather exotic qcom 8255T stuff. Exotic because regarding AOSP there are no open sources available for that one, neither the msm7x30 nor the msm7k or qsd8k really work :(

Still don't see which line you are talking about, the if/fi pairs in S95Lagfree are all fine now, maybe broodblank fixed it already ?

Well, it actually won't hurt, just another error msg but should be deleted or at least commented out when used exclusively on one specific phone/ROM.

But for Thunderbolt with multi device support the exist condition is the correct solution of course ;)

If you don't screw up the ADJ priorities and set the OOM limits too high this is true but broodplank actually sets these settings 4 (FOUR) times in a row and with different values each time. And I can't even say in which order they are set, so you don't know the final result. For reference here are the 4 places which actually modify the same settings:

1. in init.rc kernel startup script, actual values depending on used kernel

2.(?) values in default.prop

3.(?) S91SuperCharger (via echo)

4.(?) S95Lagfree (via echo)

2. may also come after 3. or even after 4., only some test boots with all these scripts would reveal that.

But they should only be set twice at most: once in the kernel if you won't or can't change that and only once in system/user startup scripts to modify the kernel defaults.

---------- Post added at 12:26 AM ---------- Previous post was at 12:24 AM ----------

Oh, I thought you were the author :confused:

OK, nice greetings then and get him back to the drawing board whoever it is :D
[Android Software/Hacking General [Developers Only]] broodplank1337:
I was also searching for that part but it was already written in the right way. I think pika might have misread something

Thanks allot! :), didn't know it was executed 4 times :rolleyes:

The developer will be thankful for this information

I edited his script to make it work with the i9001, but im not the creator of the script
[Android Software/Hacking General [Developers Only]] JazzyCarr0t:
does this support miui? sorry for the noob question.
[Android Software/Hacking General [Developers Only]] gtizon:
Using latest FuguMod. Will this work Pika? Thanks!
[Android Software/Hacking General [Developers Only]] leongwenjun:
can you make it for I9100G??? thanks.
[Android Software/Hacking General [Developers Only]] Nar4:
QQ

Jast another QuickQuestion:

What of the tweaks can I leave in init.d folder before installing Your scripts?

Or I should remove'em all?

Thanx

P.S.have NO time for reading last posts
[Android Software/Hacking General [Developers Only]] pikachu01:
It should work without issues :)

Be sure to have a nandroid backup and read the bold red text in the original post.

It's working in I9100G :/

Try it :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Ahh, now I understand :P

Yes, broodplank might've fixed it after I pointed it out.

I was referring to the original script, not the one broodplank uploaded :)
[Android Software/Hacking General [Developers Only]] pikachu01:
ThunderBolt! uses Supercharger's script to apply the LMK (hence why I said if you install ThunderBolt!'s version of Supercharger and the original Supercharger, you'll get a clash of values).

Use ThunderBolt!'s zipalign (it's the only one that I know works correctly).
[Android Software/Hacking General [Developers Only]] pikachu01:
Upload them here and I'll take a look :)

There are some that I don't know what it does.
[Android Software/Hacking General [Developers Only]] alex88510:
Flashed your script yesterday.

FYI, I flashed the main CWM file + screenstate + 60MB LMK others.

More info : XXKPQ + UC kernel V9 + ext, no other script in init.d except yours.

Currently I faced some weird problem regarding the wifi.

When I enabled it, it take a long time to enable.

When it enabled, it quickly turn off by itself(take a long time to turn off) and then re-enable by itself again(take some time to turn on again).

Then after that only it stays enable and start searching for wifi.

wifi connection no issue, but just a weird problem.