[FIX][SCRIPT] Fixed zram for franco 2.6.32.x kernels (v18,v19) plus remount speedups - Optimus One, P500 Android Development

If you do not know what is this about and do not have any problems, leave the scripts alone and go on with your life.
Click to expand...
Click to collapse
Attached.
1a. Fixed zram.zip for franco kernels v18/v19
Fixed by removing the 00remount script from /system/etc/init.d, since it messes up with boot on phones with DT's apps2sd (and probably other similar scripts) - a2sd fails to mount sd-ext partition, phone "hangs" on LG logo.
If you are already stuck after flashing franco's original zram.zip due to this issue, then go to recovery, mount /system there, and
Code:
> adb shell
# rm -f /system/etc/init.d/00remount
# exit
> adb reboot
Alternatively, flash remove-zram.zip and reboot. This will remove ZRAM altogether.
There is no ZRAM support on franco's 2.6.35.x (v1) kernels, flashing this there is absolutely useless
Click to expand...
Click to collapse
1b. remove-zram.zip: Removes ZRAM. Deletes the following files if they exist:
Code:
/system/bin/zramconfig
/system/etc/zram.sh
/system/etc/init.d/00remount
/system/etc/init.d/00zram
2. remount-noatime.zip
Remounts all your filesystems with noatime,nodiratime options (potential I/O speedup). Taken from the original zram.zip and renamed to 98remount so that it comes after all other stuff is done.
3. remount-noatime-nobarrier.zip
Same as above, plus remounts ext4 with barrier=0 option for users with sd-ext on ext4. (potential I/O speedup)
Q: What is zram?! I do not understand what is this about!
A: Read the red warning.
Q: How can I find whether my kernel supports ZRAM?
A: Use the shell.
Code:
# zcat /proc/config.gz | grep ZRAM | grep -v ^#
CONFIG_ZRAM=y
Q: What is noatime, nodiratime, barriers?
A: Google it!
Q: I deleted the 00remount script as advised in recovery, but still have issues with A2SD not mounting my sd-ext!
A: If you are using CM7 ROM, then delete /system/etc/init.d/05mountsd as well. (Rename to _05mountsd or whatever else that does not start with digits should do as well.)

Em a newbie.... just asking ... is this improves battery life?
>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19

samcad said:
em a newbie.... Just asking ... Is this improves battery life?
Click to expand...
Click to collapse
no!
1234567890

samcad said:
Em a newbie.... just asking ... is this improves battery life?
>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
Click to expand...
Click to collapse
As the doctor already mentioned... THis script is for those who get issues with boot up of their OS..!! Read the FIRST POST...!!
If your phone is working fine then this is not for you...!!!

Good one.
Prepare for 40 thousand posts asking if this script makes coffee and cleans the house for you.

imiki2421 said:
As the doctor already mentioned... THis script is for those who get issues with boot up of their OS..!! Read the FIRST POST...!!
If your phone is working fine then this is not for you...!!!
Click to expand...
Click to collapse
I have read it... but m just knowing anyway in improving in this script
>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19

franciscofranco said:
Prepare for 40 thousand posts asking if this script makes coffee and cleans the house for you.
Click to expand...
Click to collapse
My /dev/null is ready

And does it make coffe? )
Sent from my LG-P500 using XDA App

Fresh installed 6.5.7 then fk19 then revised zram then noatime then dt a2sd (rebooting in between ofc) and got stuck again after flashing a2sd.
Got in recovery and deleted the 2 scripts from init.d via adb then reboot. It rebooted ok and I thought yeeah we're done. I did another reboot afterwards and it stuck again.
Trying to figure out what to try next. That's a way to spend my vacations lol

See adb logcat

I'll be the first. Does it make coffee and clean the house for me?
Btw glad your hissy fit is over. Good to have you back.
Sent from my LG-P500 using XDA Premium App

Testing -> remount-noatime-nobarrier.zip
I had no problems, just testing that for noatime, no barrier

franciscofranco said:
Good one.
Prepare for 40 thousand posts asking if this script makes coffee and cleans the house for you.
Click to expand...
Click to collapse
rofl, youre kinda, funny you know that?

Lawful123 said:
Btw glad your hissy fit is over. Good to have you back.
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
totally out of topic!!!!
but I HAD to rotfl! ...hissy fit.... LOL!

Is there anyway to remove ZRAM after installing the original ZRAM?
I have been following franco kernel since v16.
Now i'm using V19.1.. and i have installed ZRAM for the first time after flashing 19.1
My phone has random reboots and i guess the sole cause is ZRAM.
Is there anyway to disable ZRAM? THANKS!
NOTE: I have tried to revert back to v19 but same issue.. random reboots.

kutysam said:
Is there anyway to remove ZRAM after installing the original ZRAM?
Click to expand...
Click to collapse
Delete the installed files. See the ZIP for which ones.
kutysam said:
Is there anyway to disable ZRAM? THANKS!
NOTE: I have tried to revert back to v19 but same issue.. random reboots.
Click to expand...
Click to collapse
Delete /system/etc/init.d/00zram
Finally, I very much doubt that zram is causing reboots for you. It is merely a swap.

dr. I´m using Juwe11 RamScript, as far as I can see theres no duplicate stuff between your last script and his so i can use both, but my question is if its better that your script runs after him, now yours run first because of the files name.

Roqu3 said:
dr. I´m using Juwe11 RamScript, as far as I can see theres no duplicate stuff between your last script and his so i can use both, but my question is if its better that your script runs after him, now yours run first because of the files name.
Click to expand...
Click to collapse
Does not matter at all in which order they run...

Added remove-zram.zip; self-explanatory.

dr.notor said:
Added remove-zram.zip; self-explanatory.
Click to expand...
Click to collapse
So it will increase quadrant score? (lol)

Related

[DEV] Loadable Modules for Gingersense Incredible [Updated 9/18 - Support for OTA]

HTC released gingerbread via OTA but they did not support additional modules. This thread has flashable zips for both the leaked kernel and the one from the "OTA".
Added flashable modules to attachments that are flashable in recovery.
I have created a zip of some of the more useful modules for our device:
Code:
cpufreq_conservative.ko
cpufreq_smartass.ko (thanks Chad for the help here)
ext4.ko
jbd2.ko (necessary for me to load ext4)
tun.ko
perflock_disable.ko (I actually compiled this one a little different but confirmed it would load and not get the exec format error)
Update: Smartass is working now with assistance from chad in resolving those errors. Decided to not worry about interactive for now.
Further information:
If you don't use the CWM flashable zip you will need to load perflock_disable a special way as it needs to be called with a special parameter to make it work correctly. Try adding below to a script. Credit to Calkulin for the script.
Code:
if [ -e /system/lib/modules/perflock_disable.ko ]; then
insmod /system/lib/modules/perflock_disable.ko
if [ $? -eq 0 ]; then
echo "Perflock DISABLED"
else
addr=`awk '$3 == "perflock_notifier_call" { print "0x"$1; }' /proc/kallsyms`
if [ -n "$addr" ]; then
insmod /system/lib/modules/perflock_disable.ko "perflock_notifier_call_addr=$addr"
if [ $? -eq 0 ]; then
echo "Perflock DISABLED"
else
echo "ERROR!!! Perflock could NOT be DISABLED"
fi
fi
fi
fi
Credits:
Conap (for BootManager and helping me test ext4 on an SD ROM)
XDA (for teaching me so much about Android)
HTC (for the kernel source)
Chad0989 (for assistance in getting smartass CPU governor working)
Coolbho3000 (perflock_disable)
Calkulin for the module load script
anyone else who inspired me (apologize if I forgot)
I have attached a zip file to this. If you are not a dev you can still use the modules here but some basic ADB/terminal knowledge would be needed. The modules are open for testing though.
Attached zip files and CWM-flashable zip files for both OTA and leak-based ROMs.
inc_modules.zip - Just the loadable modules.
inc_modules_ota.zip - just the loadable modules - OTA-based ROMS (August leak)
inc_modules_ota_091811.zip - just the loadable modules - OTA-based ROMS (actual OTA from September)
inc_modules_CWM_flashable.zip - flashable zip that will also autoload modules at boot.
inc_modules_ota_CWM_flashable.zip - flashable zip that will also autoload modules at boot - OTA-based ROMS (August leak)
inc_modules_ota_091811_CWM_flashable.zip - flashable zip that will also autoload modules at boot - OTA-based ROMS (Actual OTA from September)
I'm glad some one took this up I had been wondering the same thing since HTC opened the dev section. I had found another site that had a more extensive write up on how to build kernels but I'm not very fluent in linux and was a little intimidated at trying. At least I now know that it can be done. Maybe we can get Chad to try and port it over?
Awesome. A ray of hope.
Good job Tiny! I know someone was just asking for a tun.ko module and now I can't remember who it was. Hopefully they see your post.
jermaine151 said:
Good job Tiny! I know someone was just asking for a tun.ko module and now I can't remember who it was. Hopefully they see your post.
Click to expand...
Click to collapse
Thanks!
I'm trying to add more existing modules but my compiler treats warnings as errors so it won't build. Chad, if you see this post, any advice here?
tiny4579 said:
Thanks!
I'm trying to add more existing modules but my compiler treats warnings as errors so it won't build. Chad, if you see this post, any advice here?
Click to expand...
Click to collapse
--prefix
Sent from my ADR6300 using XDA App
hightech316 said:
--prefix
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I actually got them to build but they won't load still. I will play around with it more.
This is awesome. I was hoping for a tun.ko module! Now, do I just grab these and drop then in system/lib/modules and they should just work? Or are there steps I need to take to make them work? (I am honestly only concerned with the tun.ko)
oh wow this is incredible great job tiny!!! and the reason you probably cant get those other governors to work is because htc released an uncomplete source
jskolm said:
This is awesome. I was hoping for a tun.ko module! Now, do I just grab these and drop then in system/lib/modules and they should just work? Or are there steps I need to take to make them work? (I am honestly only concerned with the tun.ko)
Click to expand...
Click to collapse
Just drop in the ones you want and run insmod /system/lib/modules/tun.ko for tun.ko. You will have to do it at boot each time or get the dev to write an init.d script to load it.
tiny4579 said:
Just drop in the ones you want and run insmod /system/lib/modules/tun.ko for tun.ko. You will have to do it at boot each time or get the dev to write an init.d script to load it.
Click to expand...
Click to collapse
would i need to make one for every module?
JoelZ9614 said:
would i need to make one for every module?
Click to expand...
Click to collapse
Joel,
No, just one script should work. I believe Synergy ROM already has the init.d script for some of them. See 00cpufreq_modules in /system/etc/init.d
All,
Updated OP with latest zip file. If you have downloaded previously, redownload to get the latest.
would it be likes this?
http://www.multiupload.com/J9WTSA4VWF
JoelZ9614 said:
would it be likes this?
http://www.multiupload.com/J9WTSA4VWF
Click to expand...
Click to collapse
The first line should be:
Code:
#!/system/bin/sh
and it needs to have execute permissions or it won't execute. Also make sure to save it in UNIX format. I would also add the smartass module as it is quite popular. To test type lsmod from adb or terminal after boot. Hope this helps.
tiny4579 said:
The first line should be:
Code:
#!/system/bin/sh
and it needs to have execute permissions or it won't execute. Also make sure to save it in UNIX format. I would also add the smartass module as it is quite popular. To test type lsmod from adb or terminal after boot. Hope this helps.
Click to expand...
Click to collapse
eeh im not good with init.d scripts lol
ok i think i got it would it be like this?
Code:
#!/system/bin/sh
/system/bin/insmod /system/lib/modules/tun.ko
Every shell script should contain
#!/system/bin/sh
Sent from my ADR6300 using XDA App
JoelZ9614 said:
ok i think i got it would it be like this?
Code:
#!/system/bin/sh
/system/bin/insmod /system/lib/modules/tun.ko
Click to expand...
Click to collapse
Exactly!
Then just make a line for each module.
EDIT: Though you could just write it like this:
Code:
#!/system/bin/sh
insmod /system/lib/modules/tun.ko
Though to be safe and to make sure you are running that particular insmod command you can leave it the way you have it.
ok done its in my rom RLS3 Thanks Tiny Great work
JoelZ9614 said:
ok done its in my rom RLS3 Thanks Tiny Great work
Click to expand...
Click to collapse
No prob! It's been a good project for me.

[RAM Script] Tweaking Juwe11's RAM script for O2X, good for all ROM support init.d

======
Preface
======
The script is actually Base on Juwe11's RAM script
which you can found here... http://forum.xda-developers.com/showthread.php?t=1111145
==========
Main Content
==========
The adj value of his script is a bit too tight for Our O2X...
so the Launcher is killed quite often if many apps opened in the background.
Here's the adj value changes I made, originally, Juwe11's values are..
"0,1,2,4,6,15" and I change it to, "0,1,2,7,8,9"
the forth value is for HIDDEN_APP_MIN_ADJ, which including the Launcher (I'm using LauncherPro) belongs to this category when you open some foreground application.
the default android value for this is also 7, and I find the OOM value for Launcher is 6 usually... so Juwe11's "4" will lead to our Launcher being Killed, keep it at 7, never tried to have mine killed yet.
The last 2 vaule just make sure the last category EMPTY_APP_ADJ is kill earlier than the previous..
About the minfree vaule...
I change it to "1536,3072,4096,7680,8960,10240" which actually the same values of "Moderate preset" of autokiller
which is enough to ensure most RAM being use before killing for faster task switching...
=====
Credit
=====
!! Credit goes to Juwe11 for his mighty RAM script~ !!
Backup your RAMscript and remove it to somewhere before install this...
install via CWM, it will put the script into your /etc/inti.d/ that's it, boot and try
i just installed it,
i will let u know what are the results,
u are correct, the original script kills the launcher and apps specially XDA
will try this configuration on auto killer memory seems good m8 to set it to moderate
shpapy said:
i just installed it,
i will let u know what are the results,
u are correct, the original script kills the launcher and apps specially XDA
Click to expand...
Click to collapse
I'm not sure if other Launcher would have a different OOM value~
I have Autokiller memory optimizer which I paid before...so I can view OOM value easily..
But with this Script... I guess really no task killer needed for our 2X already.
antec123 said:
will try this configuration on auto killer memory seems good m8 to set it to moderate
Click to expand...
Click to collapse
so, just edit the minfree value according to the values inside AutoKiller if you find some other setting suits you more
but about the adj value... I guess that part is already good enough
now I find my phone already got around 60-90 free RAM at any time...
Multiple games running at the background while web browsing...
and the Browser usually got a higher OOM, which tends to kill earlier than Games..
it is reasonable.. as the WEB you can load again with the same URL..
while the game got killed, you lost the state... android is doing it's work nicely I guess.
best memory managment script i have tryed is v6supercharger http://forum.xda-developers.com/showthread.php?t=991276
I think its the best of the best.
orlox said:
best memory managment script i have tryed is v6supercharger http://forum.xda-developers.com/showthread.php?t=991276
I think its the best of the best.
Click to expand...
Click to collapse
I tried both V6 and Juwe11's before...
and I manage to be patient enough to follow step by steps...
for installing so many things... and it just put a script in init.d at the end...
And I found it do not contain adj value in it, so I come back to Juwe11's
but anyway, this is your choice...
thanks for that script
just a quick question
would this script also work on a sgs2, running oxygen aosp stock rom?
pa.pn2 said:
thanks for that script
just a quick question
would this script also work on a sgs2, running oxygen aosp stock rom?
Click to expand...
Click to collapse
same as Original Juwe11's version.
it was suppose to work on any ROM which support init.d
but the values may need some tweaking accordingly.
squide said:
I'm not sure if other Launcher would have a different OOM value~
I have Autokiller memory optimizer which I paid before...so I can view OOM value easily..
But with this Script... I guess really no task killer needed for our 2X already.
Click to expand...
Click to collapse
Sorry to let you down. But the results are the same......
Sent from my LG-P990 using XDA App
squide said:
I tried both V6 and Juwe11's before...
and I manage to be patient enough to follow step by steps...
for installing so many things... and it just put a script in init.d at the end...
And I found it do not contain adj value in it, so I come back to Juwe11's
but anyway, this is your choice...
Click to expand...
Click to collapse
adj values are in /data/SuperChargerAdj while minfree values are in /data/SuperChargerMinfree.
it's just a script in init.d at the end, you only need to follow it step by step...
squide said:
so, just edit the minfree value according to the values inside AutoKiller if you find some other setting suits you more
but about the adj value... I guess that part is already good enough
now I find my phone already got around 60-90 free RAM at any time...
Multiple games running at the background while web browsing...
and the Browser usually got a higher OOM, which tends to kill earlier than Games..
it is reasonable.. as the WEB you can load again with the same URL..
while the game got killed, you lost the state... android is doing it's work nicely I guess.
Click to expand...
Click to collapse
i set the preset to moderate and get about 126-128mb on free ram pretty impressive and the stock browser don't get close so quickly nice! i use v10e ESA and neoblaze kernel
Works on CM7?
_Vegas said:
Works on CM7?
Click to expand...
Click to collapse
it should work on all ROM supporting init.d
in case you don't like it, go to /etc/init.d to remove the script and reboot.
it wont modify your file system..
it just override some system value on boot.
if you removes the script.. your phone would back to the state before you install this.
so, just try see if u like, if not, delete it, reboot, that's it.
Works really nicely on CM7 nightly.
Sent from my Optimus 2X
Bit of a Dumb question but my phone still has the Stock rom and doesn't have the init.d Folder
if I created /system/etc/init.d and copied the script into that would this work?
waynefox said:
Bit of a Dumb question but my phone still has the Stock rom and doesn't have the init.d Folder
if I created /system/etc/init.d and copied the script into that would this work?
Click to expand...
Click to collapse
Sorry, no. You need a custom rom of some sort to get init.d support.
TrymHansen said:
Sorry, no. You need a custom rom of some sort to get init.d support.
Click to expand...
Click to collapse
You need a Custom Kernel supporting init.d to be more accurate.
and NeoBlaze is a good one to try with.
if you really need to keep your stock ROM..
First of all you still need to root your phone
Install ROM manager from market
flash the Clockworkmod via ROM manager
install NeoBlaze Kernel, then you're ready.
if warranty is your concern, take a look to the Nvflash thread..
O2X is ALMOST unbrickable, almost.
squide said:
You need a Custom Kernel supporting init.d to be more accurate.
and NeoBlaze is a good one to try with.
if you really need to keep your stock ROM..
First of all you still need to root your phone
Install ROM manager from market
flash the Clockworkmod via ROM manager
install NeoBlaze Kernel, then you're ready.
Click to expand...
Click to collapse
I'm pretty sure that won't work. You need ROM-support as well. (A Ramdisk script which starts the init.d. thing to be even more accurate.) Feel free to prove me wrong.
TrymHansen said:
I'm pretty sure that won't work. You need ROM-support as well. (A Ramdisk script which starts the init.d. thing to be even more accurate.) Feel free to prove me wrong.
Click to expand...
Click to collapse
Ramdisk is a part of the kernel, so if you bung a kernel that supports init.d on (any) rom it'll run what's in there assuming it's eXecutable.
You can do it on the stock rom even, as long as you have a init.d kernel (and create the entries in ../etc/init.d/).
Although I can't "prove" this to you at the moment...

[KernelModule] Overclock

**** Do Not Repost! Link back to this thread! ****
*** Update: This works on Thrill/Optimus 3D. There are seperate kernel modules for Froyo/GingerBread/CyanogenMod kernels***
Here ya go... I prefer this method rather than hard coding changes in the kernel. Assuming you have both kernel modules extracted to /sdcard
Switch to root
Code:
$ su
Copy files from sdcard to /system/lib/modules directory - You only do this once
Code:
# cp /sdcard/symsearch.ko /system/lib/modules/symsearch.ko
# cp /sdcard/opperator.ko /system/lib/modules/opperator.ko
Load modules, always do symsearch.ko first - You do this every time you reboot
Code:
# insmod /system/lib/modules/symsearch.ko
# insmod /system/lib/modules/opperator.ko
Set Frequency - You do this when you want to change frequency - in hz, that's 6 additions Zero's to make Mhz
Code:
# echo 1188000000 > /proc/opperator
This uses SYMSEARCH by Skrilax_CZ
https://github.com/SkrilaxCZ
Inspired by Milestone Overclock by Tiago Sousa, but totally rewritten for omap kernel 2.6.35-7 and above.
http://code.google.com/p/milestone-overclock/
This is a stripped down version. I'm working on a fully featured version, that will allow you to play with voltage as well. There are some hurdles to overcome before that is ready for prime time... In the mean time, lets see what stock voltage can do... 1188 is my sweet spot on stock voltage, what is yours? I get up to 1235 without reboots, or real noticeable lags but the linkpacks are all over the place, where it stays in the 80's at 1188. And remember, the number is in hz a.k.a. cycles per second, so to get Mhz, you must add 'Six Zeroes' to the end of your desired Mhz.
* Note2Devs: Feel free to put this in your ROM, but please do credit me for the Overclock in your release, and link back to this thread. You can also post a link to your ROM here as a way to make myself and other aware of it. Thanks...
* Echts shows us how he integrate's the module into his own ROM. TY, Echts...
http://forum.xda-developers.com/showpost.php?p=19542521&postcount=52
* Thanks to greenbats for helping figure out the O3D gingerbread kernel issue!
** And don't ask to put it in an app. I won't be happy about that. I'm serious! **
Here go some of my Recording Engineer work...
http://www.youtube.com/watch?v=Je8K_hCej3s
http://www.youtube.com/watch?v=yfBfcdSL1pc
http://www.youtube.com/watch?v=iIU8DO4rdKI
http://www.youtube.com/watch?v=msavF7LIdvY
Essentially, hardware wise, the Thrill has exactly the same specs as the Optimus 3D ? I mean, CPU wise.
It's the same hardware
omgomg said:
Essentially, hardware wise, the Thrill has exactly the same specs as the Optimus 3D ? I mean, CPU wise.
Click to expand...
Click to collapse
Yes, give this a go on the O3D, the module is actually compiled against the cyanogenmod cosmo kernel, which is really for the O3D. Should work.
for test \
How do I install this on the optimus 3D?
greenbat said:
How do I install this on the optimus 3D?
Click to expand...
Click to collapse
No real installing... It's just the modules... You can throw them in /system/lib/modules, and then use an init script to load them up, then set the frequency, but don't do that until you know what works *STABLE* for you.
If you have a favorite ROM, let the dev know about this, and maybe they'll integrate it.
I'm not sure if custom kernels like acurateam's might be too different to work properly at this point. But it won't hurt to try. Just don't start loading it at boot right away.
tekahuna said:
No real installing... It's just the modules... You can throw them in /system/lib/modules, and then use an init script to load them up, then set the frequency, but don't do that until you know what works *STABLE* for you.
If you have a favorite ROM, let the dev know about this, and maybe they'll integrate it.
I'm not sure if custom kernels like acurateam's might be too different to work properly at this point. But it won't hurt to try. Just don't start loading it at boot right away.
Click to expand...
Click to collapse
Thanx for your advice and Great find!!!
I have send your xda link to acura. Hopefully he can integrate it.
greenbat said:
Thanx for your advice and Great find!!!
I have send your xda link to acura. Hopefully he can integrate it.
Click to expand...
Click to collapse
I didn't find this. I made it! First OC'd OMAP4 period! Unless you count RAZR's... hah
Great invention
tekahuna said:
I didn't find this. I made it! First OC'd OMAP4 period! Unless you count RAZR's... hah
Click to expand...
Click to collapse
Great invention and congratulations!
Great job.... we use to use this type of script in motorola defy and moto bravo. It was easier with those because of the 2nd init recovery booting.
Sent from my LG-P925 using XDA App
tekahuna said:
**** Do Not Repost! Link back to this thread! ****
Here ya go... I prefer this method rather than hard coding changes in the kernel. Assuming you have both kernel modules extracted to /sdcard
Switch to root
Code:
$ su
Copy files from sdcard to /system/lib/modules directory - You only do this once
Code:
# cp /sdcard/symsearch.ko /system/lib/modules/symsearch.ko
# cp /sdcard/opperator.ko /system/lib/modules/opperator.ko
Load modules, always do symsearch.ko first - You do this every time you reboot
Code:
# insmod /system/lib/modules/symsearch.ko
# insmod /system/lib/modules/opperator.ko
Set Frequency - You do this when you want to change frequency - in hz, that's 6 additions Zero's to make Mhz
Code:
# echo 1188000000 > /proc/opperator
Is it possible for you to change this into a scriptmanager file?
Click to expand...
Click to collapse
Type this in scriptmanager shell.
greenbat said:
tekahuna said:
**** Do Not Repost! Link back to this thread! ****
Here ya go... I prefer this method rather than hard coding changes in the kernel. Assuming you have both kernel modules extracted to /sdcard
Switch to root
Code:
$ su
Copy files from sdcard to /system/lib/modules directory - You only do this once
Code:
# cp /sdcard/symsearch.ko /system/lib/modules/symsearch.ko
# cp /sdcard/opperator.ko /system/lib/modules/opperator.ko
Load modules, always do symsearch.ko first - You do this every time you reboot
Code:
# insmod /system/lib/modules/symsearch.ko
# insmod /system/lib/modules/opperator.ko
Set Frequency - You do this when you want to change frequency - in hz, that's 6 additions Zero's to make Mhz
Code:
# echo 1188000000 > /proc/opperator
Is it possible for you to change this into a scriptmanager file?
Click to expand...
Click to collapse
What I'd really like is for the ROM making dev's to come to a consensus as to how to integrate this... Mainly, the best place to throw the script that does this at boot on these phones. I know how we did it on droid X, but I haven't dug deep enough into this phone just yet to be sure... I'll update the OP as methods improve and I get more feedback.
Click to expand...
Click to collapse
Or use callmearia kernel and make script for system/etc/init folder... havent tried his kernel but it should support the script at boot up. Acura roms should work that way too.
The way most roms use overclock is the init script that starts at boot...
Sent from my LG-P925 using XDA App
rdannar said:
Great job.... we use to use this type of script in motorola defy and moto bravo. It was easier with those because of the 2nd init recovery booting.
Sent from my LG-P925 using XDA App
Click to expand...
Click to collapse
Those would have been based on Milestone Overclock... Which is where I gained most of my knowledge by contributing to getting the droidx/2 side of things working. MO's method of manipulating frequency and voltage no longer works on OMAP4, or rather kernel 2.6.35+... I had to come up with a new way of doing things, which didn't fit well under the existing framework of MO. So, I started from scratch... This is just the tip of the iceberg... Basic, basic, basic...
i get insmod: init_module /system/lib/modules/symsearch.ko failed (exec format error).
What am i doing wrong?
I also get the same error: insmod: init_module '/system/lib/modules/symsearch.ko' failed (exec format error)
Is it because I have gingerbread?
Must I use froyo?
borelis said:
i get insmod: init_module /system/lib/modules/symsearch.ko failed (exec format error).
What am i doing wrong?
Click to expand...
Click to collapse
Both O3D's, huh? What kernel are you running? give me output of
# dmesg
and
# busybox uname -a
And if it's acurateam, a link to their kernel source
tekahuna said:
What kernel are you running? give me output of
# dmesg
and
# busybox uname -a
And if it's acurateam, a link to their kernel source
Click to expand...
Click to collapse
"LINK Boot_2.0 More RAM, No Lags, More Speed.." from acura. Think he uses stock kernel. Im on GB by the way.
Outputs is a bit over my head. Tell me how and i´ll provide it for you.

Speed Tweaks for Blur ROMS

This will only modify what needs to be tweak in the build.prop.
It will not modify anybody else's build.prop work.
This means it can be used after you install a custom ROM and
keep any changes your dev has made to their own build.prop.
I have screen shots of my 3 Mps DSL Line and my LTE.
If it gives any indication about how much more performance gain there is
WiFi gives me up to 2.9 Mbps normally.
LTE gives me close to 30 Mbps normally.
Revision 2:
little less aggressive on the phone itself
little bit better WiFi and LTE speeds
cleaned up TONS of code and named everything!
Also the 2nd version will save a backup so you
can restore your old build.prop if you do not like
the changes that were made from from the tweaks.
AND it should keep the original build.prop.
Mind you, the undoer will only work with version 2.
you can also make a swap file (paging file like windows)
command will be
# busybox mkswap /dev/block/zram0
# chmod 077 /dev/block/zram0
# reboot
how did you install an ULV kernel on your droid 4?
dewhashish said:
how did you install an ULV kernel on your droid 4?
Click to expand...
Click to collapse
through an inti.d script
Won't install
I can't get these to install, using safestrap 3.0. Any ideas what I am doing wrong?
zeroktal said:
I can't get these to install, using safestrap 3.0. Any ideas what I am doing wrong?
Click to expand...
Click to collapse
it has only been tested on SS211.
I believe there are differences in the way it reads
and mounts the partitions...
what does the error say?
Not to sound stupid, but will this work on Eclipse 1.3.4 for D4?
Sent from my DROID4 using xda app-developers app
panamakevin said:
Not to sound stupid, but will this work on Eclipse 1.3.4 for D4?
Sent from my DROID4 using xda app-developers app
Click to expand...
Click to collapse
the way It is set it up -should- in theory work with any ROM made for the D4.
Can we get this written for ss305?
jkieffer46 said:
Can we get this written for ss305?
Click to expand...
Click to collapse
yes give me a little while to install and reconfigure for ss3
jkieffer46 said:
Can we get this written for ss305?
Click to expand...
Click to collapse
I have tried and failed miserably! I am no means a "true" programmer BUT
I have a work around for the people with SS3. Although it does involve a
terminal emulator which is free and the Google Play Store link is BAM!
I will make a flashable fix in the morning with instructions on how to do it.
I will also have a screenshot of what to type as well. The script will still do
the same thing as the flashable BUT in the terminal (manual way)
Just ran the .sh
I just modified and ran the SH from the command line. Only had to remove one > per file. Thanks, my speed increase isn't amazing, but its solid. You are Awesome.
Is there a way to flash this in ss305 yet or what
No, I'm sorry, haven't time to work on it. right now the work around is through a shell and reboot
Sent from my DROID4 using xda premium
Ok ill wait. I dont know how to do anything other than flash zips
Does it have any tweaks for GSM/HSDPA? The 3G is really poor on Droid 4.

The Gaming of our LG Optimus 4X HD

As we all know the gaming at Our Phone isnt really good some report it's Slow beacause theres only 1 core online. But there is an solution for this!
Thread with the Stuff for the terminal Is also here: ( http://forum.xda-developers.com/showthread.php?t=2253921 ) But I was really lazy of doping this commands so, i were Going on the internet and found something to download! I'll put the file into the Attachments! How to install this.....
Requirements;
Root.
A Root file explorer to get into your system files...
A brain to reed this careful.
What to Do;
Extract the Zip Thats in the attachmnts.
Get it onto your phone. (internal External doesnt matter I suggest Internal)
Go to your file explorer And past the file in: System\Etc\Init.d\
And set Permissions!
Reboot.
Enjoy Gaming!
I didn't try it . But it won't work without adding the line :-
Code:
#!/system/bin/sh
In the top of that script . Which tells the system to sh this test .
And you forot to mention fixin permission.
Also this needs init.d kernel support or busybox run-parts in order to run this script every reboot .
Correct me if I'm wrong
Thanks for sharing .
Sent from my LG-P880
$Parker said:
I didn't try it . But it won't work without adding the line :-
Code:
#!/system/bin/sh
In the top of that script . Which tells the system to sh this test .
And you forot to mention fixin permission.
Also this needs init.d kernel support or busybox run-parts in order to run this script every reboot .
Correct me if I'm wrong
Thanks for sharing .
Sent from my LG-P880
Click to expand...
Click to collapse
SManager will run the script when klick "is script"...
Fladder72 said:
SManager will run the script when klick "is script"...
Click to expand...
Click to collapse
When you use smanager it's an app that is designed to run scripts .
But if it was in the init.d folder you must add that line to tell the kernel that this test is a script . And the kernel will use the sh binary to run it .
Sent from my LG-P880
@deownagee
Thank you for sharing my Script! I don't know why you make another Thread for that!
And if you quote instructions, please quote the whole Text! You forgot the important Part! You have to set Permissions!
@$Parker
This Script works also without this first line! In the init.d Folder it is not needed!
Holzi001 said:
@deownagee
Thank you for sharing my Script! I don't know why you make another Thread for that!
And if you quote instructions, please quote the whole Text! You forgot the important Part! You have to set Permissions!
@$Parker
This Script works also without this first line! In the init.d Folder it is not needed!
Click to expand...
Click to collapse
Thank you for letting me know even. And I've made this one beacause your Script wasn't clear for me so i couldn't understand you know?
just for making sure, you guys do know what this script does?
it makes the GPU to run always (!!!) on max speed. this will reduce the battery life extremely.
this script should not be ran at every boot. you better only run it when you want to play games (and maybe reboot afterwards, or write a "undo" script)
@laufersteppenwolf
I think the Battery Drain is not the main Problem. It isn't higher than without that Tweak.
But i have one Question!
Is it possible for you to implement this Tweak in your kernel?
So when you selected the Gaming Governor, that this tweak is also active. And if you turn off the Gaming Governor again, the tweak is terminated.
I don't know if it's possible, so i ask you.
can i use it on rooted v20B locked bootlader? there is no init.d folder in system\etc\, should we create that folder manually?
what is the permission? thanks
Holzi001 said:
@laufersteppenwolf
I think the Battery Drain is not the main Problem. It isn't higher than without that Tweak.
But i have one Question!
Is it possible for you to implement this Tweak in your kernel?
So when you selected the Gaming Governor, that this tweak is also active. And if you turn off the Gaming Governor again, the tweak is terminated.
I don't know if it's possible, so i ask you.
Click to expand...
Click to collapse
"better battery" could only be caused by the first command (unlink). the others only increase the batter usage.
this tweak is (partly (the unlink)) implemented in my rom. but i'm working on unlinking in the kernel of course.
about the idea about gaming: yeah i do have something in mind, but it's gonna be a bit different just wait and see right now i'm working on OC'ing the GPU, and then we can do such changes.
Guys is it the same as http://www.android-experience.de/board/index.php?page=Thread&threadID=47 ? I dont speak german and google translate is weird. What about this, anybody tried ?
Post #5 oki its the same.
Stanley- said:
Guys is it the same as http://www.android-experience.de/board/index.php?page=Thread&threadID=47 ? I dont speak german and google translate is weird. What about this, anybody tried ?
Post #5 oki its the same.
Click to expand...
Click to collapse
I've translated and it's same lol (I'm Dutch and it's like German.)
But anyway i cant set premission via root explorer or antything else and cant copy to /system/ folder... I have rooted phone and checked via root checker. Love this phone problems with everything, maybe reflash will help but i dont have time for that.
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
gabrielgon said:
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
Click to expand...
Click to collapse
It is the same!
gabrielgon said:
Isn`t this the same as using tegra overclock under GPU Clock section? It`s paid but it`t really worth it!
Click to expand...
Click to collapse
it's actually taken from there
Ok Guys! The Werewolf alpha2 Kernel from laufersteppenwolf is much better than this Tweak! For all who use CM 10.1, flash this Kernel!
Don't forget to delete this Script if you flash the Kernel!
[email protected] this sh1t get hot before you try any game...
One true: LG + nVidia sucks. That's all.
Winudert said:
One true: LG + nVidia sucks. That's all.
Click to expand...
Click to collapse
Well that wasnt OT was it?
Atleast my nVidia graphics card + LG monitor = GREAT
And i love this phone
Sent from my LG-P880 using xda app-developers app

Categories

Resources