Friday, March 25, 2011

+Thunderbolt

Got a thunderbolt and figured why not make the zip even more universal.  So, v6 should work for TB, DX, and D2 now. After flashing the zip be sure to reboot one more time!

What to expect - hopefully faster, more stable, and longer lasting TB/DX/D2.
How to check if the mods are in effect: 1) Launch Terminal Emulator, 2) Type "bash /data/imoseyon/checkimosey.sh", without the quotes and hit enter.
How to remove my mods: remove /etc/init.d/99imoseyon and reboot.

(Keep in mind that this is a work in progress and your mileage WILL vary.)

More details

Downloads
Change Logs 
  • v6.2.1 - fixed a bug in check script.
  • v6.2 - added swap support (if your kernel supports swap, ie thunderbolt). Run "sh /data/imoseyon/swap.sh create" to enable. Blog post on this.
  • v6.1.4 - made enable script more robust for more ROMs. No need to flash if yours is already working.
  • v6.1.3 - fixed more enable bugs for some roms.  It's not easy making a zip for all ROMs for 3 devices folks! ;)
  • v6.1 - added /tmp tmpfs support for thunderbolt
  • v6.0.5 - fixed more minor bugs, and tweaked cache_pressure slightly in an attempt to reduce/eliminate occasional sluggishness.
  • v6.0.4 - fixed a bug for stock ROMs without busybox, created /tmp if it doesn't exist.
  • v6.0.3 - fixed an unsilly bug for DX/DX
  • v6.0.2 - fixed another silly bug which prevented crond from starting up on some ROMs.
  • v6.0.1 - fixed a silly bug which prevented my mods from being enabled on ROMs that don't have init.d enabled.
  •  v6.0
    • Tweaked scripts to work on thunderbolt.
    • Tweaked minfree some more (note this is still a work in progress).
    • Separated sysctl settings to a separate file (/data/imoseyon/sysctl.conf) so they are easily customizable.
    • Abandoned interactive mode - it didn't really provide much value for me.  So I'm doing ondemand only for now.  May look at conservative next.

108 comments:

  1. Can't get it to work on my tbolt. Seemed to flash ok in cw but doesn't enable. Tried enabling in terminal but says directory doesn't exist.

    ReplyDelete
  2. ok, lemme flash back to Stock to figure out where it's failing. I've only tested it on VirusROM on TB. I figure i'll let you guys test for me on the other ROMs. :-)

    ReplyDelete
  3. Looks like the folders and files are there but its not working. Tried executing the script in root explorer a couple times and rebooting but to no avail.

    ReplyDelete
  4. Hyatari, can you try v6.0.1 and let me know? thanks.

    ReplyDelete
  5. Just says crond is not enabled now.

    ReplyDelete
  6. I'll comment in your xda thread instead to make things easier

    ReplyDelete
  7. I Tried v6 and V6.01 and Still no joy.. Says it isnt Enabled and to run sh /data/imoseyon/imoseyenable.sh so I do.. Ive tried as regular user and root. and still tells me cant create build.prop.bak file exsist and then it have several more errors that says it cant create build.propTWch3L .. and so on.. says Read-Only File System. Im running the Perfect Storm ROM BTW.

    ReplyDelete
  8. Will this work for the X on the leaked 3.4.2?

    ReplyDelete
  9. sammyboy405 and Hytari, try v6.0.2. That should fix it. db306, i think so?

    ReplyDelete
  10. Worked like a champ that time. Thanks.

    ReplyDelete
  11. Still getting the same errors as mentioned on sea for the X

    ReplyDelete
  12. db306, hmm i'll take another look. You're good for now - everything is working for you except crond.

    ReplyDelete
  13. db305, can you try the following from terminal emulator:

    startcron.sh
    bash /data/imoseyon/checkimosey.sh

    and tell me what the output is?

    ReplyDelete
  14. On DX with 6.3, if I run the 2 lines you ask for I get "Everything is running good.". If I reboot I get the same message. Before this I was getting "Permission denied" when doing the 2nd line.

    ReplyDelete
  15. When I run the first line I get :applet not found

    When I run the the "sh /data/imoseyon/enable.sh I get a bunch of stuff with can't create some temporary files and such.

    ReplyDelete
  16. I can shoot you an email with the screen info in terminal!

    ReplyDelete
  17. So 5.2 is working great for me, what could I see with the changes to the minifree?

    I noticed on my d2 that after a numerous hours it gets laggy then it picks its speed back up again...but it always did that.

    ReplyDelete
  18. db306, try v6.0.4?

    joshua, honestly the difference between v5 and v6 are tiny - you probably won't notice the difference. You might also benefit from running the purge more than once a day - let me know if you're interested in doing that.

    ReplyDelete
  19. Just flashed 6.4 over 6.3 and I kept getting the line 6 and 7 error and the suggestion to enable the script manually to fix it. When I type the script I get the errors regarding temp file build prop with the read only file system

    ReplyDelete
  20. If there are no ill effects, sure..

    ReplyDelete
  21. db306, that's really weird. Do me a favor and type the following and paste the output.

    which busybox
    which crond

    thanks.

    ReplyDelete
  22. Joshua, not sure if you know how to edit files using rootexplorer, but basically you want to edit /data/cron/root. Modify the 2nd line by adding two more numbers to make it look like this:

    0 3,10,17 * * * date >> /tmp/imosey; free | head -n 2 >> /tmp/imosey; sync; echo 3 > /proc/sys/vm/drop_cach

    ReplyDelete
  23. which busybox I get : /system/xbin/busybox
    which crond I get : /system/xbin/crond

    ReplyDelete
  24. db306, here's some more commands to run:

    busybox | head -1
    pgrep -f crond

    ReplyDelete
  25. When I run the busybox command I get "head: not found" and the pgrep does nothing. I don't get any type of responce.

    ReplyDelete
  26. I should probably also mention that I did the build prop hack for the 3.4.2 leak inorder to have all the market apps show up

    ReplyDelete
  27. Cb306, you've heard this from me before, but I think I know what's going on. I'll have a fix for you in a few hours.

    ReplyDelete
  28. CB306, can you try this version? http://db.tt/TjUDE6W

    ReplyDelete
  29. OMG OMG OMG!! You don't know how excited I was when I read that you had gotten a thunderbolt. I was about to ask what you thought of it and if your tweaks would work on it! Thanks so much! Glad to see you on board, I switched from my X too lol

    ReplyDelete
  30. It still doesn't seem to work. I keep getting the same errors

    ReplyDelete
  31. db306, hmmmm i got an idea can you flash one of the v5 zips in my last post and see if that works?

    ReplyDelete
  32. I flashed the 5.2 OD and I ran the bash command and i got the same line 6 and line 7 errors and at the very bottom it says "everything is good"

    ReplyDelete
  33. db306, weird, so i flashed 3.4.2, and ran v6.0.5 and everything was good. I suspect there's something weird going on. Do you have gtalk? You can ping me at imoseyon@gmail.com or just email me. We can take it there.

    ReplyDelete
  34. I still get "Permission denied" if I run "bash /data/ imoseyon/checkimosey.sh" after updating to 6.0.5.

    ReplyDelete
  35. notsane, you need to remove the space after /data/

    ReplyDelete
  36. Oh, ok. Thank you I didn't see that. Works fine now.

    ReplyDelete
  37. So far so good with the multiple purge. What is the tweaked cache_pressure if I update? Will I notice it with purge happening to me twice daily?

    ReplyDelete
  38. Joshua, if you're doing multiple purges then the cache_pressure tweak in the latest version is redundant. I wouldn't worry about it.

    ReplyDelete
  39. Hey imoseyon, I've noticed that my tbolt has frozen twice since applying your tweaks an had to do a battery pull to restart the phone. Is th anything I can change to prevent this from happening.

    ReplyDelete
  40. Jonathan, my mods should not cause the phone to freeze... A couple of things to try:
    1) disable it, reboot to confirm that the phone doesn't freeze without my mods,
    2) increase the vfs_cache_pressure to 25 in /data/imoseyon/sysctl.conf
    3) try purging multiple times a day (see above)

    ReplyDelete
  41. Hey any idea how I can install your zip onto an unrooted d2 running TBH's gingerbread release? Possible without root?

    ReplyDelete
  42. sorry, impossible without root. :( When I get a chance i'll play around with that release but I highly doubt i'll be able to hack things without root.

    ReplyDelete
  43. So the multpile cache purge didn't make much of a differance but its not bad. Not sure if I should make it default and change the cache pressure (update to 6.1.x) or just leave it be. I should state that I use my phone heavily for everything. Its even my monitor for security cams at night.

    I'm really just psyched liberty doesn't reboot on me anymore and I can keep wy contacts...I need it to show the organization in caller id and blur and stock doesn't do that.

    Can you say what elements of your mod will be in 2.0 of liberty?

    ReplyDelete
  44. Hey imoseyon, I'm guessin it has something to do with sysctl. My pho never rebooted no matter how much I taxed it. How do you purge?

    ReplyDelete
  45. joshua, i feel like if you use the phone very heavily your vfs_cache_pressure should be a little higher. anywhere from 5 to 25 should help.

    The stuff I checked in to liberty 2.0 are dalvik heap size, sysctl settings, and crond. So about half of my mods.

    ReplyDelete
  46. Hey imoseyon, I'm disabling your tweaks and testing it out. I'll report back to you if I notice everything's fixed. Then hopefully pinpoint what's causing all my problems. My phone even froze while it was charging and I had to do another battery pull.

    ReplyDelete
  47. OK, I'm back and the difference is night and day. My phone loaded apps much faster upon rebooting and feels snappy again, I'm running on the stock sense and manually debloated using titanium. Do you think modifying the minfree really makes a difference on the bolt since it has so much ram?

    ReplyDelete
  48. wait, it's faster without my mods?

    ReplyDelete
  49. will this work with the new rooted Gingerbread leak for the droid x?

    ReplyDelete
  50. david/john, i think it will. I can't try until i'm home from work though. :(

    ReplyDelete
  51. For kicks, just threw this on the latest ROOTED TBH Gingerbread release, rebooted and ran the test script. It reported back everything was ok. Perhaps it's just my imagination, but the imoseyon script seems to make it every smoother!

    ReplyDelete
  52. Brady, it's not your imagination! :)

    ReplyDelete
  53. got this running on d2 rooted gb. have you had a chance to dig into gb yet?

    ReplyDelete
  54. Edward, not yet. Been real buy with personal stuff lately. Hopefully by this weekend...

    ReplyDelete
  55. Hey imoseyon, yeah iys weird but siñce I've disabled your tweaks my phone has stopped freezing on me. Sometimes I would experience some lag and that has stopped as well. I'm going to tenable it again to see if anything changes. I'm really not sure what's causing iit, could it be beacuase I'm on stock sense?

    ReplyDelete
  56. Jonathan, one thing I noticed on thunderbolt is that after flashing by zip and booting, you need to do one more reboot. For some reason, system_server starts consuming a lot of cpu cycles the first boot (i have some theories but nothing concrete).

    ReplyDelete
  57. I re-enabled your tweaks and everything is running awesome now o.O the only thing I changed is that I flashed adrynalyn's custom kernel. Not sure if the kernel has anything to do with it but I'm glad everything is fixed lol.

    ReplyDelete
  58. so is it confirmed that your tweaks work on DX Gingerbread root+deodexed? and would it be possible to add back the interactive governor in the latest versions?? LOVE your tweaks man =D

    ReplyDelete
  59. Alvin, yes it's confirmed by others. I will look into adding interactive, hopefully the module will still work on GB. Thanks. :)

    ReplyDelete
  60. Hey imoseyon lmao I'm back again...my phone started freezing again, good thing I woke up a little earlier or I would have missed my alarm lol. I think my phone is just finicky?

    ReplyDelete
  61. Jonathan, that's really weird. I suspect there's something else going on. There's nothing in my mods that would cause the phone to freeze. Does it reboot on its own eventually or do you need to battery pull?

    ReplyDelete
  62. So on liberty 2.0 I'm getting this error:

    # bash /data/imoseyon/checkimosey.sh
    Sysctl tweaks are not enabled!
    grep: /proc/swaps: No such file or directory
    /data/imoseyon/checkimosey.sh: line 26: [: -gt: unary operator expected
    ---
    One or more mods are not enabled. I suggest that you run the enable script manually to fix it. "sh /data/imoseyon/enable.sh" and then reboot.
    #

    ReplyDelete
  63. I narrowed it down...it is when I delete everything after line 9 (the overclocking code) as instructed with 5.2. So I'm guessing everything is fine.

    ReplyDelete
  64. is this worth installing on liberty 2.0?
    i noticed the changelog on the new version of liberty includes most of the modifications and settings you made in this zip

    ReplyDelete
  65. Joshua, i think you're good. I did fix the check script in 6.2.1 though.

    David, I think so. I checked in about 1/2 of my tweaks into liberty 2.0 code base, but there's the other half. :)

    ReplyDelete
  66. imosey, does your zip modify the sd card read/write speeds?

    ReplyDelete
  67. Keep getting bad zip, when trying to flash. Any suggestions?

    ReplyDelete
  68. Edward, I've been lazy about adding other people's tweaks to the recent versions of my zips. I think filesystem speedups is a good one to add to a future version.

    Jared, that's weird. What's your email address and i will email you the file.

    ReplyDelete
  69. will this work on the leaked gingerbread for droid x?

    ReplyDelete
  70. any reason this wouldn't work on Lexlite Gingeraid rom for the DX?
    http://www.drewgaren.com/DrewGaren/LL_GB.html

    ReplyDelete
  71. David, I think it will work. Give it a shot!

    ReplyDelete
  72. Im having the same issue as db306 and early commenters here. I get the not enable msgs when I run the check and build prop and read only errors when I run the enable script. I need help. Im running leak rooted gingerbread on my DX.

    ReplyDelete
  73. How do you delete this? I see that you have to remove that file but when i try to it says it cannot delete it.

    ReplyDelete
  74. Hey imosey, I noticed that the gingerbread task manager is very aggressive and kills any app i'm running as soon as I leave it. For example my home screen and my browser always have to reload every time i leave it and come back. Do you have any suggestions to fix this? Maybe a script or i heard enabling compcache also works.

    ReplyDelete
  75. Charlie, you need to mount /system rw first...

    YPaul, I actually just installed GB on my DX. Will let you know soon if I see anything interesting.

    ReplyDelete
  76. Thanks. I'm specifically trying to fix this so that I can play music on youtube in the browser while multitasking on the phone. Because whenever I move to another app, the music stops and I have to go back to the browser. If you could test that out, that'd be great.

    ReplyDelete
  77. Hey imosey, I'm getting the same error as Joshua does. It seems the tweaks won't stick on boot. Is there anything I can do to fix this?

    ReplyDelete
  78. Imoseyon,

    I am tryimg to use your zip on the OG Droid - running Project Elite 5.02 (gingerbread).

    I kept trying different commands that you have listed in your blog for different things, and have come to realise that you made your D1 zip structured so differently (storing the imoseyon directory in System instead of Data for instance)that the command structures are different - is there a reason for that?

    I am not at all fluent in *nix, more of a windows guy, but am trying/learning!

    I was going to try to mod some of your 6.2.1 and D1.6 files and became a bit to lost with the re-organization of the directory structure...

    I will tell you that I can run the 6.2.1 with internal cache - except it only leaves me with about 17m of free space left - I was hoping to make the swap about half the size and give that a shot, as well I was going to try to reduse the min free even more to prevent aps from closing. - does that sound about right?

    I was also wondering if there could be 2 cache files - primary in ram, and secondary on the card - opinion?

    Finally I was wondering where the D1.6 is posted as I only came accross it at http://www.droidforums.net/forum/project-elite/138986-pe-5-02-memory-fix-part-ii.html

    I would love some insight as to how I may be able to tackle this - as I know you now have a t-bolt I can't expect you to try all kinds of things for the few of us that are left on the OG Droid - especially while running gingerbread!

    I will tell you that this (using your .6 zip) is as good as it has been so far!

    Thanks,

    Mike

    ReplyDelete
  79. Mike, when you say "cache" do you mean swap? Feel free to ping me at imoseyon@gmail.com.

    Cody, which phone and ROM are you on?

    ReplyDelete
  80. Oh jeez, yes, I meant swap... I will hit you up in a bit...

    ReplyDelete
  81. I'm on Droid X - Liberty 2.0.1

    ReplyDelete
  82. Imosey- I posted a question under the universal zip post from this month about your zip on GB blurrybread. I put some follow up data in that post. It didn't work and I couldn't figure out how to get it enabled so I went back to GB until I can straighten it out and my phone runs better. If you get the chance could you check the error message I got and give me an idea how I might enable it manually. All the files appear but do not enable and the native sysctl.conf settings persist.
    Thanks
    Jackie
    jnehama@gmail.com

    ReplyDelete
  83. This comment has been removed by the author.

    ReplyDelete
  84. Hey imosey any luck finding something?

    ReplyDelete
  85. YPaul, I didn't not run into the same problem as you did, but it might be because the DX is not my primary phone anymore so i don't use it as much. Sounds like what you might want to do is lower the minfree threshold though.

    ReplyDelete
  86. Where do I go to change the minfree and what values do you suggest?

    ReplyDelete
  87. Ypaul, you'd want to modify the /etc/init.d/99imoseyon file. Find the line that has minfree in it. I'd do something like 2000,3000,5000,5000,10000

    ReplyDelete
  88. Where and how can I control the size and location of the swap?

    ReplyDelete
  89. i guess your done supporting the DX..

    ReplyDelete
  90. Mainism, the swap should be either in /data/swap or /data/imoseyon/swap. You'd have to know how to use dd to control the size of the swap though... Hit me up on gmail and I can help you.

    DIGIT, yeah i've been pretty busy on the tbolt, but I'm still supporting DX/D2 and D1 (to a certain extent).

    ReplyDelete
  91. Very likely a silly question and I did a quick scan of the postings and couldn't find it. I'm on Liberty 1.5 still and using imoseyon v4.2 (pre-universal).

    I want to flash v6.2.1, but do I just straight flash it or do I need to remove v4.2 first (and if so, how? The "remove my mods" above doesn't work for my v4.2 - says "no file or directory").

    ReplyDelete
  92. Imosey,
    im running liberty gb. All tweaks are enabled except crond. Manually or via flashing nothing works. Any suggestions?
    Thanks
    Tim

    ReplyDelete
  93. tim, i'm pretty sure liberty has crond running already - in fact jrummy has most of my tweaks in his rom.

    ReplyDelete
  94. Just wanted to give a quick note that I tried Liberty 2.0.1 and it had bugs(not to do with your mod) that I didn't experience in 1.5. So I switched back to my 1.5 backup with your 5.2 mod with the overclocking script deleted and the dual flush enabled.

    Out of boredom, I put on your latest version and only deleted the overclocking script for better battery life. 4 days later (on 1.5), no reboots on my own or from the phone malfunctioning, there is absolutely no lag at all and I can say for the first time my phone is perfect!

    I am nervous to try the gingerbread roms when they come out (though I most likely will still try them) because my phone is so nice now.

    So in short, your latest version is awesome.

    ReplyDelete
  95. Hey Imoseyon,

    Thanks for the help in advance and the work you do.

    I'm getting these errors on GB 591 on DX when I do the check then attempt the manual install as prompted:

    export PATH=/data/local/bin:$PATH
    $ export PATH=/data/local/bin:$PATH
    $su
    # bash /data/imoseyon/checkimosey.sh
    /data/imoseyon/checkimosey.sh: line 6: awk: command not found
    /data/imoseyon/checkimosey.sh: line 7: [: -lt: unary operator expected
    Sysctl tweaks are not enabled!
    /data/imoseyon/checkimosey.sh: line 20: pgrep: command not found
    Crond is not enabled!
    ---
    One or more mods are not enabled. I suggest that you run the enable script manually to fix it. "sh /data/imoseyon/enable.sh" and then reboot.
    # sh /data/imoseyon/enable.sh
    cut: not found
    grep: not found
    Usage: mount [-r] [-w] [-o options] [-t type] device directory
    -gt: unexpected operator-eq: unexpected operator-gt: unexpected operatorcut: not found
    grep: not found
    Usage: mount [-r] [-w] [-o options] [-t type] device directory
    #

    ReplyDelete
  96. Works great on my Droid x with gingerbread ..but the memory restrictions are kinda too stick..making multitasking difficult..which causes apps to run out of memory! Thanks though

    ReplyDelete
  97. I had a random reboot running this on my Droid X running rooted deodexed Gingerbread 595. I also have the CRT animation and the throttle removed. The reboot occurred while using RockPlayer Lite v1.7.2.

    ReplyDelete
  98. This comment has been removed by the author.

    ReplyDelete
  99. Hey, I flashed this onto my TB running Bamf 1.8 and when I do the terminal emulator test for numbers it works, but I can't overclock the CPU still. Any ideas?

    ReplyDelete
  100. Hello Imoseyon

    I tried flashing this ( V 6.2.1) onto my Tbolt.. but somehow it doesnt seem to flash into the phone at all...

    I tried wiping cache and dalvik and also rebooting my phone again !

    Im running Gineritis 3D v1.2. I do know that all kernels do not flash on all ROMs.

    Could it be this issue ? Or is there a way to make it work ?


    Thanks !

    ReplyDelete
  101. I am running the 5.1.0 with Liquid Smooth. I tried to install the 6.2, but it didn't change. Am I pulling a stupid? Help?

    ReplyDelete
  102. I am running Skyraider Zeus 1.3 from BAMF. I flashed your kernel on my tbolt, but it still shows that I'm on the stock kernel (2.6.35.10-g00f8966 htc-kernel@and 18-2 #1), however when I run the command you recommended in my terminal emulator it comes back "Everything is good." Am I missing something?

    ReplyDelete