yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kellermanv:
Looks like i'm not the only one with this problem. Hmmm, weird.

And now i have an even bigger problem, it won't run automatically with script manager neither, even if i check it to run at BOOT and as ROOT. ^^ I have to manually RUN it with script manager each time i reboot the phone.

And i don't have user.log in my phone.
[Android Software/Hacking General [Developers Only]] fadzlihellmuth:
Which kernel are you using, cranium or feacore?
[Android Software/Hacking General [Developers Only]] nikagl:
Hi all,

That part I am quite sure is not related to TB, but to the ROM and boot.img you're using. I tested with cranium rc8 and they run fine...

Add some lines like this:

Echo "test" > /data/test1

Where you change the number depending on where you are in the scripts and you can debug.

And check for the files in /data with script manager or root explorer after rebooting. Just don't try to create them in for instance /sdcard as sdcard will not be mounted yet...

Also user.log depends on what the coder of your rom/boot.img added to the boot init.d script...

One more thing, kellerman, the stats you mentioned have not changed after boot in my rom either. I think something else,modifies them after init.d scripts have been executed. Still debugging that too...

Regards,

Nika.
[Android Software/Hacking General [Developers Only]] kellermanv:
I'm not such an expert dev, so, i don't understand all you're saying.

I'm using FeaCore 1.4 nonOC, but i tried with Cranium as well. No luck.

What do you mean by Echo "test" > /data/test1 ? where to write that ? in adb shell ? and what should i check with that command ?

And what's with /data files ? i don't have any external sdcard, so i can't mount /sdcard. :)

So you mean it's not working for you either ?
[Android Software/Hacking General [Developers Only]] nikagl:
Correct, setting the parameters doesn't work but the script IS correctly executed. It just doesn't keep the parameter settings. I already exported the setting after seeing it in the script (run your sysctl command from within the script and export it to a file) and it DOES set the parameters but when the device is started and I open terminal and run it, the parameters are back too default again...

Will upload proof when I have access too PC...
[Android Software/Hacking General [Developers Only]] nikagl:
No, every device has a /data folder. That's where you can create temp files during these types of scripts.

You add these test lines in your init.d script for debugging purposes...

More details l8r.
[Android Software/Hacking General [Developers Only]] fadzlihellmuth:
Can you check whether 'sysctl.conf' is in system/etc? If it is there then delete it and remount thunderbolt again.
[Android Software/Hacking General [Developers Only]] kellermanv:
So basically you are saying it's a display error ? meaning it actually works, even if it won't show up the right value ?

There's no such thing as sysctl.conf in system/etc.
[Android Software/Hacking General [Developers Only]] nikagl:
There is in my case, but it does not contain the parm that actually changes...

# sysctl.conf file
vm.overcommit_memory = 1
vm.panic_on_oom = 0
vm.oom_kill_allocating_task = 0
vm.dirty_background_ratio = 90
vm.dirty_background_bytes = 0
[Android Software/Hacking General [Developers Only]] nikagl:
No, we have two things. The actual script runs. But some of the parameters in the script are reverted back to values (5 instead of 65) in a later stage of boot...
[Android Software/Hacking General [Developers Only]] pandalow:
hey,

i'm using the feamod nonOC kernel 1,4ghz :)

it is very very hard to understand this scrips......

do i have to restart(scriptmanager) the remount script if i reboot my phone?
[Android Software/Hacking General [Developers Only]] fadzlihellmuth:
For Thunderbolt it doesn't have sysctl.conf. at system/etc like dsexton's SAS or zeppelinrox's KickAssKernelizer to place the vm parm. For example if i didn't delete the sysctl.conf from SAS or KAK in order to mount Thunderbolt and when i open terminal and type sysctl -a | grep vm, i would get double readings of the vm ratio above, and the background_ratio is 5 while Thunderbolt set its ratio of 65. Maybe that's why some people are getting different dirty_background_ratio, anyway it's just my opinion :)
[Android Software/Hacking General [Developers Only]] thering1975:
Pika

Just created update zip for those on my rom make it easier for them, reloading terminal emulator both sysctl and grep show as not found? first time i come accross this so cant test if all is ok any ideas?

EDIT

Interestingly i tried cf root kernel, and the commands worked maybe its something different on hardcores?

Edit 2

Reflashed hardcores stable kernel and once again the commands fail unkown

So does that mean TB are still working and that the error is in terminal em or something else
[Android Software/Hacking General [Developers Only]] wintel_mac:
By the way: I found a nice solution to replace those line endings when you only have a windows box. It uses notepad++.

Open your script, press CTRL+H to open 'replace', set your options to advanced expressions and then search for \r\n (which is carriage return and new line) and replace with \n (only new line). Replace them all.

Save your file, open it again in notepad++ and you will also notice in the bottom status bar it states 'UNIX' instead of 'Dos\Windows'.

See attached screenshot.
[Android Software/Hacking General [Developers Only]] nikagl:
So... here's what I've done.

1. Delete sysctl.conf :) thanks for the tip

2. Added "sysctl -a | grep vm > /data/testsys1" directly before setting the new vm values in S98system_tweak

3. Added "sysctl -a | grep vm > /data/testsys2" directly after setting the new vm values in S98system_tweak

4. Added "sysctl -a | grep vm > /data/testsys3" all the way at the end in S98system_tweak

5. Rebooted

6. Checked whether sysctl.conf was still missing ;) off course it was :D

7. Opened terminal emulator and executed "sysctl -a | grep vm"

Results:

1. dirty_background_ratio = 5 before setting them in S97system_tweak (testsys1 in testsys-results.zip)

2. dirty_background_ratio = 65 after setting them in S97system_tweak (testsys2 in testsys-results.zip)

3. dirty_background_ratio = 65 at the end of S97system_tweak (testsys3 in testsys-results.zip)

4. dirty_background_ratio = 5 again after the full reboot is done... (screenprint)

How weird is that? So... something sets dirty_background_ratio = 5 after init.d has finished :(

Regards,

Nika.
[Android Software/Hacking General [Developers Only]] nikagl:
Thanks. I use UltraEdit which does the conversion for you if you set the type correctly :) and 920 Text Editor on the device which works well too :)
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Thunderbolt!

Pikachu, when I run the sqlite_optimize script it give an output I've not seen before. It begins with: find: unrecognized: -iname... and is quite long. I have sent it to my email and can upload it later if necessary. I'm now on Jarmez HackICS with the platypus kernel. I flashed the main CWM, the screenstate scaling, and the LMK 60. I have the Ondemand Gov scaled to 1200Mhz with SetCPU. In addition to the two files I uploaded earlier, I now have 99complete in the init.d folder that was necessary for running some Samsung apps, I think.:confused:
[Android Software/Hacking General [Developers Only]] chasemyass:
Wtf is wrong with this picture? :O

Sent from my GT-I9001
[Android Software/Hacking General [Developers Only]] nikagl:
Uh... that's weird... guess I found another advantage of my favorite Cranium ROM :D
[Android Software/Hacking General [Developers Only]] chasemyass:
:o I'm also using craniumROM lol

sent from GT-I9001 powered by CraniumROM #8/FeaCore Phoenix OC 1.8Ghz using tapatalk ;)
[Android Software/Hacking General [Developers Only]] rayiskon:
lol , really weird. :rolleyes: downloaded normally for me on stock rom though.
[Android Software/Hacking General [Developers Only]] Chrack:
Pikanchu01,

Can you please pm me.

Have a question about some tweaks.
[Android Software/Hacking General [Developers Only]] pikachu01:
Just flash it only. You'll get a pretty good configuration just by flashing it only.

The kernel needs to enable the user.log :/

I guess something is changing the values after boot.

The Script Manager issue is a bug with Script Manager. Please report it to the app dev and let him fix it :)

Thanks Nika. Yes, something is changing the values after boot. I'm not sure what :/

And yes, user.log must be enabled by the kernel.

Maybe you could check /data/init.d for scripts as well?

You should remove the /etc/sysctl.conf. It'll affect ThunderBolt!'s settings.

Interesting ...

Nope. It'll do it automatically once you set it as "Run as Boot".

Yup. Check /data/init.d?
[Android Software/Hacking General [Developers Only]] pikachu01:
It works for me :)

If it hangs for you at boot, be sure to reduce your UVing and then try again. Delete screenstate_scaling to get it to boot.
[Android Software/Hacking General [Developers Only]] chasemyass:
Well Pika I haven't deleted my etc/sysctl.conf and it seems that values aren't changed...I'm using sm to autorun all scripts from init.d at reboot btw

sent from GT-I9001 powered by CraniumROM #8/FeaCore Phoenix OC 1.8Ghz using tapatalk ;)
[Android Software/Hacking General [Developers Only]] nikagl:
Hi all,

Check out this post in the Feamod/cwm thread:

http://xdaforums.com/showthread.php?p=21742519#post21742519

Some of the parameters (like the dirty_background_ratio) are set by "init.qcom.rc" during the boot process. This is executed after the init.rc script which triggers the init.d scripts to run and therefore resets anything that was set by init.d scripts...

No idea what to do about that, other than that the init.d scripts should be the last ones to be executed. I'll add my comments in the Feamod/cwm thread as I think this is more a boot/recovery issue than an issue caused by Thunderbolt :D

Regards,

Nika.
[Android Software/Hacking General [Developers Only]] pikachu01:
As Nika mentioned, the init.qcom.rc overrides init.d scripts. This needs to be resolved by the kernel dev. :)
[Android Software/Hacking General [Developers Only]] mhairy:
Hi pika,

Donw update. Can you mine it's ok or not?

$ export PATH=/data/local/bin:$PATH

$ su

# 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 = 65

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 = 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 = 1

vm.mmap_min_addr = 4096

vm.scan_unevictable_pages = 0

sysctl: error reading key 'net.ipv4.route.flush': Permission denied

sysctl: error reading key 'net.ipv6.route.flush': Permission denied

#
[Android Software/Hacking General [Developers Only]] nikagl:
Not sure when SM runs the scripts though... assume that's before the init.qcom.rc too... Maybe adding some delay somewhere (as a workaround) would be an option?
[Android Software/Hacking General [Developers Only]] fadzlihellmuth:
Since i'm using Thunderbolt, the dirty_background_ratio is 65 and it sticks in my vm parm. Those who still get 5 as the value can try this meantime- a workaround as long as you don't reboot and kernel dev resolve this init.qcom.rc thing.

Assuming the value is 5, open terminal and type: sysctl -w vm.dirty_background_ratio=65, then type: sysctl -a | grep vm to check and the value changed from 5 to 65. This is just temporary as long we don't reboot or else all the value (background_ratio, dirty_writeback, dirty_expire, laptopmode) will change to those in init.qcom.rc.
[Android Software/Hacking General [Developers Only]] nikagl:
@fadzlihellmuth what kernel do you use? It all depends on the kernel... :D
[Android Software/Hacking General [Developers Only]] fadzlihellmuth:
I'm using cranium v6
[Android Software/Hacking General [Developers Only]] nikagl:
weird, as that kernel also has init.qcom.rc with the /vm/ parameters too...I'd expect the init.qcom.rc to set the parameters back (for instance dirty_background_ratio to 5 instead of 65) on your device too...
[Android Software/Hacking General [Developers Only]] kellermanv:
Are you guys sure it's a kernel related problem ? because i have tried with feacore phoenix, cranium kernel and even crybert's stock init.d kernel, all our 3 kernels and it's the same problem.
[Android Software/Hacking General [Developers Only]] nikagl:
I have checked feacore and cranium and both contain the init.qcom.rc script that sets the vm.dirty_background_ratio=5.

The order of scripts are:

1. init.rc is executed

2. init.rc executes the scripts in init.d (including the one that sets the vm settings)

3. after init.rc is finished the init.qcom.rc is executes (which then resets the vm settings again)

Trust me, as soon as someone compiles the kernel without the vm settings in init.qcom.rc (they should be moved to the init.rc, just before running init.d scripts) you will see the problem is solved :D

Haven't checked cryberts rom btw, but as this comes from the original thread from sakindia I am confident this also contains the same entries...
[Android Software/Hacking General [Developers Only]] kotaxor:
Hi pika, sry for being a noob, does Thunderbolt work well with SpeedMod k2-19?

Thanks.
[Android Software/Hacking General [Developers Only]] sahidmiah:
can i use thunderbolt on ics rom
[Android Software/Hacking General [Developers Only]] pikachu01:
It should work without problems :)

The main CWM should work, along with the LMK and screenstate_scaling. All others won't work.
[Android Software/Hacking General [Developers Only]] pikachu01:
Can you upload it? I think it might be a busybox issue. The 99complete does nothing :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Hardcore's kernel requires a manual rooting command in the recovery. If it says unknown, it's a busybox issue.

Please post your question here :) It'll benefit other people too as other people might have the same questions :)
[Android Software/Hacking General [Developers Only]] pikachu01:
It's correct :)

Script Manager should be after init.qcom.rc.

Hmm, this needs the dev to fix it?
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Here it is.:) EDIT: Ahhh, didn't see that even after I read your response. That doesn't look right!
[Android Software/Hacking General [Developers Only]] thering1975:
Thanks. so I presume the scripts are not executing. I will ask hardcore cheers
[Android Software/Hacking General [Developers Only]] pikachu01:
No, Speedmod requires manual rooting. You need to go to the recovery and install root. :)
[Android Software/Hacking General [Developers Only]] pikachu01:
You have a busybox issue. Try installing stericson's installer and install 1.19.x into /system/xbin.
[Android Software/Hacking General [Developers Only]] Chrack:
J have in my build.prop some tweaks they are the same in your tweaks with other settings.

For exapmple:

ro.telephony.call_ring.delay=800

Now my question is, it is better to delete my tweaks from build.prop because the both tweaks terminate his?

Or is this no Problem, because the build.prop have 1. prio?
[Android Software/Hacking General [Developers Only]] pikachu01:
The init.d script will override build.prop. If you want to, you can edit the system tweak to have your values instead :)
[Android Software/Hacking General [Developers Only]] Chrack:
Ok,

i need not delete my tweaks in build.prop because the init.d tweaks override it.

It´s also better to edit my settings in your tweaks.
[Android Software/Hacking General [Developers Only]] pikachu01:
Ok then :)
[Android Software/Hacking General [Developers Only]] chasemyass:
@nika try to reinstall sm, on my phone all the scripts are working but sm runs them all with some delay from boot ~2 mins. So after boot wait 5 mins before you check if TB scripts are working ;)

@Pika dunno how you tweaked ondemand mate, but you did a hell of a job! I get more points in Antutu with ondemand than with performance lol ~50 points more

Tyvm for your great job. And battery drain is like I want it during night (the only period of time when my phone actually isn't touched lol) 1% on 5-6 hrs of sleep with no data or wifi on to keep those wakelocks down ;)

sent from GT-I9001 powered by CraniumROM #8/FeaCore Phoenix OC 1.8Ghz using tapatalk ;)
[Android Software/Hacking General [Developers Only]] mhairy:
Yes i agree with you..when sleep time batt drop 1%-2%..

Great Job pika..

View attachment 873276

Cranium RC8

v6_1900ghz

Feamode phoniex 1.4

ThunderBolt

Theme ICS v3.0 + add 14bar
[Android Software/Hacking General [Developers Only]] pikachu01:
Might be some initialization at the background preventing Script Manager from launching promptly. :)
[Android Software/Hacking General [Developers Only]] chasemyass:
Isn't there a way to actually see what/how scripts are runs during boot time? There was a bootanimation that shows you what and how...but can't find it anymore on xda forum :(

sent from GT-I9001 powered by CraniumROM #8/FeaCore Phoenix OC 1.8Ghz using tapatalk ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, usually the /data/user.log would show the post-boot init. If it's not there, it means the dev disabled it (or it would need to be enabled manually).
[Android Software/Hacking General [Developers Only]] chasemyass:
check this out ;) live logcat msg and livewallpaper from logcat ... and the dmesg alos as a custom boot ... but it just flyies lol can`t read much
[Android Software/Hacking General [Developers Only]] legendasboy:
Pika can I use it with the latest sihya kernel 2.6.11?

Sent from my Galaxy SII using Taptalk
[Android Software/Hacking General [Developers Only]] pikachu01:
It's working fine for me :)
[Android Software/Hacking General [Developers Only]] legendasboy:
Ok thanks, going to flash it

Sent from my Galaxy SII using Taptalk
[Android Software/Hacking General [Developers Only]] Roots:
Hi can someone tell me the main differences between Chainfire's 3D driver & Currydude's driver..??
[Android Software/Hacking General [Developers Only]] chasemyass:
dude you are in wrong thread lol ask here:

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

Edit: Pika tell me please if it's OK for remount script to run for a long time...I mean longer than 45 sec ...I saw a message line once with ~31 sec and I killed it after some seconds. Look at one ss I made during one run so you see what's going on.Safely couldn't capture the line with time :(
[Android Software/Hacking General [Developers Only]] kotaxor:
Is Thunderbolt 2.4 applicable for S2?
[Android Software/Hacking General [Developers Only]] bervin:
Yes, why else would the thread be here.
[Android Software/Hacking General [Developers Only]] adobrakic:
Can we use version 2.4?
[Android Software/Hacking General [Developers Only]] bunch7:
The Thunderbolt script intergrated in siyah v2.6.11, do we still need to mount the scripts using script manager like before?
[Android Software/Hacking General [Developers Only]] danieldmm:
Use apropriate remount script....

Cheers
[Android Software/Hacking General [Developers Only]] sqnyster:
It seems that tere are conflicting instructions about remount script in the original thread.

In one place it says that script should be run as root and as boot. In the other place it says that it should be run only as root, but that it needs to be activated manually after every reboot. Which is the correct procedure?

I can set CPU governor via no-frills, or via BroodROM configurator. Configurator seems to add a file to init.d. Does it work well with thunderbolt? which one is the preferred way to set the governor?

If I use smartassV2 governor I don't need to edit screenstate script?
[Android Software/Hacking General [Developers Only]] chasemyass:
If you edit screenstate script for awake and sleep governors why you wanna use a setcpu apk? If you are using a OC kernel I recomand you to use a CPU control that doesn't interfere with init.d scripts from DroidXDA (search on Facebook for them) called System Tuner Pro its one of the only setcpu apk that change on boot only CPU freq if you ofc choose same governor for awake as you did in screenstate script...

About remount script you can run it with root and boot options as I do it and works good...or worked lol (still waiting for an answer from Pika for above post)...

sent from GT-I9001 powered by CraniumROM #8/FeaCore Phoenix OC 1.8Ghz using tapatalk ;)
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Thunderbolt!

I just want to confirm what I have done. I am now on ICS, so I should use the remount script for CM7 ext?

Problem is my dirty background ratio is 5. The other two values match. All the values for the LMK addon check out when viewed in Terminal Emulator. I'm on an ICS ROM that has that didle patch. I don't know a lot about CM7, but I think it is ext only by default. Don't know what 'yaffs' refers too.:confused:
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. I've been busy lately. Haven't updated the rest of the posts for ThunderBolt! yet :P
[Android Software/Hacking General [Developers Only]] pikachu01:
The ThunderBolt! integrated in Siyah doesn't include the remount scripts as well as the addons. You need to install ThunderBolt! and use the appropriate remount scripts :)
[Android Software/Hacking General [Developers Only]] manishdev:
hi,

i have a few questions.

Firstly i am using i9100g which is different than the i9100 (international version), and by default i have a few governors like hotplug,conservative etc

1)Can i apply this script to my version of the phone?

2)is this script only for a particular governor?
[Android Software/Hacking General [Developers Only]] pikachu01:
Umm Currydude's driver are just drivers from another phone (Not sure where he got them). Chainfire on the other hand is his own self-compiled driver that you can tune and adjust. :)

Something is wrong with your Script Manager. Can you post a logcat of this (dump logcat while the lines are occurring) and email it to the developer?

remount script must be run as root and run at boot.

You can set your CPU governor by using a lot of apps. Use Voltage Control just to be safe :)

You can use the init.d or the service (in Voltage Control).

Yes, if you're editing screenstate_scaling, you don't need SetCPU etc.
[Android Software/Hacking General [Developers Only]] pikachu01:
yaffs refers to the partition file system. You can do a:

mount | grep yaffs

If there is output, use the yaffs remount, if not use the fullext4.

About the dirty_background_ratio, you might have a file that runs after init.d (init.d.qcom.rc or something) in your "/" directory.

You need to ask the kernel dev to resolve this.
[Android Software/Hacking General [Developers Only]] pikachu01:
1) Yes :)

2) No :)
[Android Software/Hacking General [Developers Only]] Xarpios:
I gotta be blind or stupid, maybee both ;)

I cant find the folder; /bolt_scripts/

Went into /sdcard and /mnt/sdcard - and nothing.

Followed every other step carefully, made sure all parts which are supposed to be mounted, is mounted. Installed ZIP with CWM.
[Android Software/Hacking General [Developers Only]] pikachu01:
You can extract the bolt_scripts manually if that's the case. It's stated in the first post? :)
[Android Software/Hacking General [Developers Only]] Xarpios:
Ye - i'm blind, sorry - anyhow, found the scripts, but cant really run them, both return with errors.

Phone died while typing this -yes i got nandroid backup.

Running Siyah kernel 2.6.8 with checkrom V4

EDIT: tried again - this time it worked flawlessly =)

Thanks