yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] flolep:
Aaaaargh. Ok. So I missed something :-( two days of tests for nothing :-(

Isn't it a way to include these commands in your scripts and launch them when there is not enough free memory or every 5 hours or when the memory leak occurs or I don't know? It would be easier than having another job to configure...

Sent from my GT-I9000
[Galaxy S I9000 Android Development] spambayes:
Could you help with the script manager part? Not quite sure what to do and how to do it. Thanks.
[Galaxy S I9000 Android Development] jangst123:
+1 VERY HAPPY! :D Thank you!
[Galaxy S I9000 Android Development] eliteforce:
pikachu01 please help with creating widget for auto script manager
[Galaxy S I9000 Android Development] spambayes:
Not quite sure what and how to do this with script manager. Can you help?

Thanks.
[Galaxy S I9000 Android Development] sherpa25:
If it might help, this is what I did (Note: I'm not a Linux developer :) )

I downloaded Script Manager Ad, then created the new script w/ the following content (4 lines):

I tried 'echo on' so that the results of the command 'free' will be shown. (Seems the default is echo off).

Then saved it w/ the name 'Clear_Buffer', and checked 'Run as root' and 'Configure as Favorites' (you need this to select it when creating the widget later).

Then created a widget on my homescreen (i.e. Script Manager Ad), and selected the 'Clear_buffer' file I created.

Running the script seems to work, as the output shows a smaller buffer size.

@pikachu01, pls confirm if this is optimal.

Editted: Corrected script... should have been 'sync', not 'su'. Thanks Kurre.
[Galaxy S I9000 Android Development] RaymondPJR:
talon

Thank you so much for your awesome work. I am using the mod by Simone and EB (Thanks to them too) on SimplyHoney for the Vibrant. It is indeed very fast and smooth. I hope a fix is found for the GPS issues with some Roms, but I am very happy otherwise.
[Galaxy S I9000 Android Development] Kurre:
I think that you need to add 'sync' command before 'echo 3...'. I have assumed that it doesn't work properly without it.
[Galaxy S I9000 Android Development] sherpa25:
You're right Kurre, I forgot to type that here.... thanks for that.

Yes, the contents in my script are:
[Galaxy S I9000 Android Development] anoneemooz:
@pikachu01

Hey man

I placed the 2 modded scripts you provided and gave proper permissions and all but when I try to do the drop_caches thing, I get no response when I type it in scrip manager's console lol all I get is a new line. :o
[Galaxy S I9000 Android Development] sherpa25:
I believe you have to type free to verify the new buffer size, after running the 'echo 3 >.....' command. Remember to 'sync' first :)
[Galaxy S I9000 Android Development] deaconsx:
Hi I am using the latest TalonDEV 0.4.3 with Tweaky JVS Odexed V4 rom but I can't turn on the WiFi.

Whenever I turn on, it will turn off after scanning for a while. No problem when I use Semaphore 1.7.0, tried to reflash the rom once again and still the same problem. Please enlighten... thanks!
[Galaxy S I9000 Android Development] Kurre:
You should flash 0.5.1.1 version, because 0.4.3 is very outdated and many things have been added and tweaked after that. You have good chances to fix your problem with it :)
[Galaxy S I9000 Android Development] goranbm:
How can i flash this kernel, after i downloaded file, but is .zip, and don't know how to open this in Odin ??
[Galaxy S I9000 Android Development] pikachu01:
Go to recovery and install it from sdcard.

Home + Vol-Up+Power when your phone is off.
[Galaxy S I9000 Android Development] deaconsx:
Ok thanks I will give it a try
[Galaxy S I9000 Android Development] goranbm:
Should i save it to specific location on sdcard ?? And internal sd card , or external, because I have and external to ??
[Galaxy S I9000 Android Development] pikachu01:
Internal. That way, you don't need to have an extra step to mount your external sd.
[Galaxy S I9000 Android Development] existz:
0.5.1.2 Public Test

0.5.1.2

Changelog since 0.5.1.1

- set ULP_FREQ to 400mhz

- updated to memoryfreak-1.21b

MemoryFreak NOTICE: Higher ZRAM settings will allow more data to be stored in RAM. HOWEVER, all of the data stored in ZRAM is compressed. This means that the data must be decompressed prior to use, and must be recompressed before being transfered back to ZRAM. This means that larger ZRAM sizes MAY introduce lag, due to the overhed of repeated compress/decompress cycles. You have been warned!!
[Galaxy S I9000 Android Development] pikachu01:
Hey Existz,

Thanks for the release :)

Hoping that your progress on the thing you wanted to port from Inspire is coming soon :)
[Galaxy S I9000 Android Development] existz:
Well, its not really a port from inspire per-say, its just im testing it out on my Inspire (since its only device i have atm), its also used on Fugu CM kernel, its no big new feature or anything, just something i dont see much in other kernels and should help with memory some
[Galaxy S I9000 Android Development] corgar:
Waiting neutral version color mod :) thx existz
[Galaxy S I9000 Android Development] woj999:
This is normal, when I use Memory Freak, set my settings and reboot and after reboot Memory Freak has got default settings?
[Galaxy S I9000 Android Development] existz:
Probably a busybox issue, download busybox app from the market and install v1.17, it sounds like init.d scripts are not getting executed on boot. Alot of roms use v1.18 which does not have runparts, so scripts are not executed on boot, if you guys know of any roms that use v1.18, i advise you to msg the dev and have them use either v1.17 or v1.19 (i believe 1.19 works ok)
[Galaxy S I9000 Android Development] woj999:
On new busybox works!!! Thanks :-)
[Galaxy S I9000 Android Development] MarcusNO:
I found a mayor bug in "TalonDEV-0.5.1.2-1200-I9000-CWM3.zip"

The hardware Back button does not work proper.. :/
[Galaxy S I9000 Android Development] .:Crack:.:
--ignore--
[Galaxy S I9000 Android Development] rlorange:
Ahhhh brilliant Existz! Music app now runs at 400 mhz with the screen off! Hello battery life? You seriously are THE MAN!

**Simply Honey 5.0 JVR, Talon kernel & Tegrak OC app 1.36ghz@1340mv**
[Galaxy S I9000 Android Development] existz:
Its not a talon issue, if it was it would be happening to everyone...make sure you downloaded the correct version for your device or redownload and flash
[Galaxy S I9000 Android Development] simone201:
Maybe i should revert back to 5 freq?

Any advices existz?
[Galaxy S I9000 Android Development] j-a-c-k:
Hi everybody! Please, upload latest Memoryfreak.apk

Thanks in advance!!!
[Galaxy S I9000 Android Development] mab71:
this links to the test versions dont seem to be working...
[Galaxy S I9000 Android Development] existz:
Memoryfreak is included in latest test.. use it.. MF will not work on 0.4.3 and below and i cannot promise it will work on older test versions..the kernel will remove and readd which ever version was included in that kernel...so if you use memoryfreak 1.21b on a test that included an older version, the old one will be reinstalled on boot

Link to latest test works fine for me on PC and my phone..

http://xdaforums.com/showpost.php?p=17713573&postcount=3403
[Galaxy S I9000 Android Development] mab71:
ok thanks....working now
[Galaxy S I9000 Android Development] rlorange:
Ok oodles of zram! what happens if I set it to 512? Doesn't zram have to fit in ram. Ie compressed virtual ram sitting in ram?

**Simply Honey 5.0 JVR, Talon kernel & Tegrak OC app 1.36ghz@1340mv**
[Galaxy S I9000 Android Development] mab71:
One more thing, cant get to set the governor to ondemandX, it keeps going back to ondemand as soon as i exit control freak, even if i save the settings...anything i missed?
[Galaxy S I9000 Android Development] Tatsuya79:
0.5.1.2 - Neutral Colours Version

-reverted Voodoo colours hack

-back to Speedmod MDNIE

-added Galaxian gamma_22 OLED table

-tweaked UI sharpness

thanks Hardcore, Lukiqq (and Talon dev team :) )
[Galaxy S I9000 Android Development] newcastle9:
Flashing now thanks tatsuya79
[Galaxy S I9000 Android Development] sherpa25:
Thanks existz. What's the advantage of this setup of ULP_FREQ to 400MHz, from...? Just want to know if it's necessary to upgrade. Tried searching but didn't find any on this features.
[Galaxy S I9000 Android Development] pikachu01:
It's to make sure stock Samsung music player plays at 400MHz as opposed to 800MHz.
[Galaxy S I9000 Android Development] sherpa25:
I see, thanks.
[Galaxy S I9000 Android Development] rlorange:
And it works too!

**Simply Honey 5.0 JVR, Talon kernel & Tegrak OC app 1.36ghz@1340mv**
[Galaxy S I9000 Android Development] pikachu01:
Didn't quote the long post, quoted the beginning so that I don't drown out what I wanted to post.

Firstly, Linux swap will never ever get full. You can change swappiness to > 100 and it will try to fill the swap. If it's 50, Linux will only try to fill it in to the point where RAM vs Swap will be utilized 50% of the time. Hence if you have ZRAM of 600, it will try to fill it in 300.

The lock mode bug, I'm not sure. It depends on whether you're getting the call when you're using your phone or not. If you're not, it's not unusual that the phone gets to lock after that.

Once you drop the cache and sync, some apps that are still open (mind you, the apps doesn't get killed when you drop the caches/sync). If it does then it's a Linux bug!! If you killed the task then drop the caches, the time between that, Android will try to fill that space with apps, hence why you will not get the full memory when you kill. When it first boots, it doesn't fill that quickly as it doesn't know what apps you will be using. Once a while after it boots, Android knows what apps are used frequently and will try to fill memory with the apps (although they will not be running). It's how Android works. You will get the same situation with other kernels as well (though not that aggressively, it's based on VM)

About the apps opening slower than normal, I guess you can attribute that to the apps filling up the ZRAM as normal RAM is filled with caches/pre-loaded apps chosen by Android. Hence, it's more prominent in Talon as it uses ZRAM. You can reduce ZRAM so that it swaps faster.
[Galaxy S I9000 Android Development] ken2291:
flashed 0.5.1.2. Hardware back button doesn't work anymore
[Galaxy S I9000 Android Development] pikachu01:
Did you flash the Captivate version by mistake?
[Galaxy S I9000 Android Development] ken2291:
was thinking about that until I checked:D accidentally pressed the wrong link into Captivate's thread:p
[Galaxy S I9000 Android Development] sherpa25:
@flolep, where did you setup scheduling in Script Manager? I didn't see any option when editing the script (... only saw 'Run as Root', 'Configure as Favorite', etc.).
[Galaxy S I9000 Android Development] mab71:
Is it not possible to save ondemandX as governor?
[Galaxy S I9000 Android Development] pikachu01:
It is possible. Just save it in Voltage Control - Save as Boot?
[Galaxy S I9000 Android Development] spambayes:
I can't find the link to the non-Captivate version of 0.5.1.2. Help?

Thanks.
[Galaxy S I9000 Android Development] pikachu01:
You're already in the thread. Check a few posts back? Or go to the front page and click the obvious link of 0.5.1.2 (CTRL-F it?)
[Galaxy S I9000 Android Development] spambayes:
Hmmm... I see Tatsuya79's attachments in

http://xdaforums.com/showpost.php?p=17723820&postcount=3421

and existz's 0.5.1.2 Public Test attachments in

http://xdaforums.com/showpost.php?p=17713573&postcount=3403

However, flashing TalonDEV-0.5.1.2-1000-I9000-CWM3.zip from existz's post has turned my I9000 into a Captivate! Back button disabled and display becomes horizontal!!

What can be wrong?

Thanks.
[Galaxy S I9000 Android Development] mab71:
I did that already, many times actually but still it goes back to ondemand after reboot or even after exiting control freak....
[Galaxy S I9000 Android Development] pikachu01:
Weird. I download the exact same zip file and it's working fine for i9000. Did the binaries change after a while? :S

---------- Post added at 01:15 PM ---------- Previous post was at 01:14 PM ----------

Are you facing the Busybox issue? Try the guide in my link? Android Optimization Guide?
[Galaxy S I9000 Android Development] mab71:
Nope..cos i fixed it following yr guide. And i can change and save the other settings such as the io sched and uv settings... I just cant save the governor to ondemandX..
[Galaxy S I9000 Android Development] pikachu01:
Oh, I know the problem. It's your screenstatescaling script. If you dig inside the file, you can see that the Awake governor to be Ondemand. Just change it to OndemandX.
[Galaxy S I9000 Android Development] spambayes:
All is fine now. I re-downloaded and reflashed. Back to normal. Weird indeed.

Thanks.
[Galaxy S I9000 Android Development] mab71:
Sorry bro, i dont know how to do that...i saw the contents via root explorer but i dont know how to edit it...btw, are you using ondemandX?
[Galaxy S I9000 Android Development] pikachu01:
I'm currently using Ondemand for my awake governor while sleeping governor is conservative. It's the default governors selected in the script.

Take a look at the file using Notepad (or Notepad++, I'm using Notepad++ .. it's good :P) Read up a bit on what the script does. It's very easy actually :)
[Galaxy S I9000 Android Development] mab71:
Ok thanks a lot for yr help..i'll check it out now...
[Galaxy S I9000 Android Development] flolep:
Launch script manager ads, touch menu, touch "plus" button, "advanced option", "scheduler", then here add timer, turn on, repeat every two hours, from the specified hour, add the script you created with sync and drop cache commands, name it and save.

Enjoy :)

---------- Post added at 08:29 AM ---------- Previous post was at 08:00 AM ----------

Ok. Thanks. Got it. Will use your information for further tests :)

Of course, I am using my phone, make a call, then when it's finished, just 5 seonds later it goes to unlock mode alone... Indeed this mode may have been implemented in the case where you have a call when already unlock and after call it goes back to unlock mode... But the problem is that here it happens even if I am using my phone :p

Yes but I did drop cache then kill, kill again, then drop cache, wait a little after, kill again, drop caches again and kill again but no matter what, impossible to have 140 mb back...

Hmm... So for you, the 40 mb are used ? So, in your theory, if I use my phone more and more and more, without rebooting, and sometimes doing the sync and drop cache commands, once Android knows the common apps I am running, using my configuration, I will stay at 100 mb and it won't go down and down and down again until unusable ? Hmm, ok, I will trust you for now and will then go for further tests with 0.5.1.2, zram at 100, and, for swappiness, what do you think would be the best setting with zram = 100 ? And why, in your case, you are using only 50% ? Doesn't make sense for me...

Ok, thank you very much for you answer, Pikachu. I don't hide myself telling you that I am still skeptical about memory leaks really gone with your commands but your answer is very satisfying for me. Just, Existz, would you mind telling us your opinion ? I talked about you in my long post, what do you think about my theory ?
[Galaxy S I9000 Android Development] sherpa25:
Got it, thanks :)
[Galaxy S I9000 Android Development] :
@pikachu01 - can you please post your ram.conf? i want to compare your settings with mine.
[Galaxy S I9000 Android Development] rlorange:
I don't know how this works but using both scripts and zram set st 512mb my phone is snapper than it's ever been

**Simply Honey 5.0 JVR, Talon kernel & Tegrak OC app 1.36ghz@1340mv**
[Galaxy S I9000 Android Development] pikachu01:
Not sure, I'm not facing this problem the last time I made a call.

Android doesn't need a few seconds to fill up your cache. :) It's RAM, it updates itself in less than milliseconds. After you drop the cache, it will just fill up again with uncommitted data. I.e. your CPU spy app actually takes the value of /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state. That file is updated at a very small interval (not sure as I haven't measured). Guess where the uncommitted data stays before being committed? You guessed it right, in the RAM. Linux will wait for a few milliseconds or seconds before committing the data. This is to ensure it doesn't waste battery accessing the disk, and to wait till it needs to commit a big chunk of data to disk.

Android will kill apps according to the LMK as long as ZRAM and swappiness is not too aggressive. Swappiness is at 50%, doesn't mean that ZRAM will only be used up to 50% of the space. It means that swap will be used 50% of the time. There is a difference. There could be situations where Swap will indeed get full, but so far Linux's architecture is done to not fill up the swap and to free up RAM according to best practices. (the same is also true for RAM to avoid overflowing RAM and smoothness and ability of RAM to load bigger chunks of memory faster) ZRAM is best not to exceed 50% of the total RAM. Some put this value around 25% or 15% to be more efficient, but it's a tie between swap space vs efficiency. Some argue that compcache 0.6 is already good enough that enables higher ZRAM size, and some say that larger ZRAM just makes everything slower with its large size requiring compresssing/decompressing a large chunk of space.

Thanks :)

It's the same as applying MemoryFreak as per my signature. Just choose that and it'll be the same ram.conf.
[Galaxy S I9000 Android Development] .:Crack:.:
Hey Talon Crew!

From time to time i noticed that my Bluetooth sometimes won't turn on.

its unelected and its saying 'turning on Bluetoot' but never succeeding.

After a reboot it works fine.

I think it happened since 0.5.1.1.

any ideas/solutions?
[Galaxy S I9000 Android Development] flolep:
Ok. Retested with another kernel and in fact, the bug is present with this kernel too... So it can be a problem of the custom rom (my case Supersonic), or stock JVS. The problem is happening after some seconds without touching it after the call... If you touch the screen before the 5 seconds, the phone isn't going into unlock mode. Can you try again, not touching anything after stopping a call ? (sorry, it is a little off topic... :-()

Thanks to you ! Very interesting and I will do more investigations now that I read your informations.

However still not sure about memory leaks and waiting for the answer of existz about my first big post :p
[Galaxy S I9000 Android Development] Rosa Elefant:
Just wanted to say thanks. 0.5.1.2 has great performance, similar to SpeedMod - and it works with JVS. :)

Keep it up!
[Galaxy S I9000 Android Development] Bushido76:
Hi,

thx for developing this nice Kernel. 5.1.2. runs much smoother than 5.1.1. - I would tip to the 400 Hz. ;-) I like the voodoo lagfix because its the only lagfix I never experienced problems with - opposite to Chainfire, Tornado a.s.o.

I tried the the ondemandX governor for some days, but I returned to to the normal ondemand-Setting because of the little worse responsivness.

Which improvements can we expect in the next version? ;-)

Keep up the good work,

Bushido
[Galaxy S I9000 Android Development] rlorange:
@Existz

I'm currently on Simone's TalonSH but using stock zram settings which I like.

So 66fps cap seems to work without washing out colors? Your thoughts?

Also 6CPU steps seems to use the 1000mhz a lot more than your old-school talon builds did so is actually worthwhile having. Still on demand governor like you stick with.

**Simply Honey 5.0 JVR, Talon kernel & Tegrak OC app 1.36ghz@1340mv**
[Galaxy S I9000 Android Development] pikachu01:
The 1GHz could be attributed to the screenstate scaling script if you're using it. It will scale and populate the lower frequency values when screen is off, or if you tweaked your ondemand governor's up_threshold to a different value.
[Galaxy S I9000 Android Development] MajinkenSword:
Can anyone teach me how to add my partition table in this kernel? I'm getting bootloops everytime I try to convert my system to EXT4 :(

Edit:

I don't know what the deal was, I booted through CWM, then convert to RFS, played with the phone, reset, then it converted it to EXT4 by itself and worked...
[Galaxy S I9000 Android Development] lpalvaro:
my phone rebooted this afternoon when i was going to play asphalt 6, with no overclock or undervolt D:
[Galaxy S I9000 Android Development] pikachu01:
Is this reproducible, or is it a one time deal?
[Galaxy S I9000 Android Development] Mopral:
I am on TalonDEV 0.5.1.2 with 1200 OC and a little UV

Asphalt 6 works flawlessly for me...

( just wait a neutral colors + BigMem version...)
[Galaxy S I9000 Android Development] lpalvaro:
nope, it's not reproducible. i don't know whi it happenened, i use stock jvs with crt off and some icons changed.

BTW, nice kernel :D
[Galaxy S I9000 Android Development] pikachu01:
Are you using any init.d scripts?
[Galaxy S I9000 Android Development] Proelio:
Waiting for neutral colors.
[Galaxy S I9000 Android Development] lpalvaro:
nope

it hasn't rebooted today :D
[Galaxy S I9000 Android Development] sherpa25:
Actually I've also had a few reboots (on it's own) but happens once a day only. Unfortunately, I can't replicate as it just happens when phone locked...suddenly I'll just see the talon 'X' showing it rebooting. OTOH, upon waking up this morning, phone was so laggy for several minutes, didn't know what it was doing, perhaps preparing cache? This are just observations. I'm using talondev 0.5.1.2 1.2GHz.

Edit: Just want to add that I don't leave apps running in the background that much, as I got used to using the back button, w/c I believe exits the apps.
[Galaxy S I9000 Android Development] pikachu01:
When you use the back button, it doesn't really exit the app, but it keeps a portion of it in memory. Didn't get the lagginess in the morning. Can you tell me your configuration?
[Galaxy S I9000 Android Development] sherpa25:
Oh, I thought closing w/ the back button actually 'exits' the app. Most I use don't have an exit button (i.e Handcent, Go Dialer/Contact, Dolphin).

4 Homescreens:

1. AtomRSS

2. Colorize Facebook

3. Main: Miinimalistic Text for Clock and Date and Temperature, Agenda, Widgetsoid (5 buttons), System Tuner widget, 2 (scripts for clear_buffer and free_mem)

4. PureNews

Lock Screen = Widgetlocker (with clock, Circle Battery, Text Missed, Camera and Sound shortcut, and of course, the slider to unlock)

Simplicity 0.4 ROM

Talondev 0.5.1.2 1.2GHz

Scripts (init.d):

_99ramset

enable_netfilter

S98screenstate_scaling (latest)

s98system_tweak (latest)

S_volt_scheduler: (1200Mhz -25, 800Mhz -50, 400Mhz -75, 200Mhz -75, 100Mhz -100)

Let me know if you need other info.

BTW, might as well ask... whole day I was playing some sport and opened my phone only lunch time and 3pm. I then checked CPU Spy and noticed majority of it was at 400MHz (4 hours), what could be running in the background using 400MHz? I believe I used to have Deep Sleep... and if I recall right, this was before updating the 2 's98' scripts with the latest, not sure though.
[Galaxy S I9000 Android Development] pikachu01:
Are you playing music on the background? Or is there something that's waking up and running?

Check BetterBatteryStats and check Partial Wakelocks. See what's draining your system.
[Galaxy S I9000 Android Development] sherpa25:
Yeah, Vibration Notifier was running for 6 hours. Wonder why it wasn't before as I've been using it for months.
[Galaxy S I9000 Android Development] pikachu01:
Misbehaving app I would guess, either through an update or something changed that it reacted like that, or in worse cases, corruption (only if you've used unsafe mounts an/or non journaling in /data or /dbdata)
[Galaxy S I9000 Android Development] sherpa25:
Maybe an update, as I haven't applied yet the 'Acid tweaks - removed useless stuff' script, or other mount options, other than default.