yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] edpo1976:
Ok, i've done wipe cache and Dalvik, new Fix Permission (this time it has taken near 30 seconds, as always) and reboot. Then, I checked values in minfree and they are still incorrect. I don't know if this is important, but permissions of that file (minfree) are different that the script (I think the uniques boxes marqued are the two first in user, but not the third).

Sorry again.
[Galaxy S Plus I9001 Android Development] smeroni68:
Post me a screen of permission of minfree... thanks
[Galaxy S Plus I9001 Android Development] edpo1976:
Here they are:
[Galaxy S Plus I9001 Android Development] smeroni68:
They are exacly as mine... I really do not understand why. I try in the mean time to change my values for 3 times and reboot... they are updated every time correctly!!!

So from my side it must work... don't know why for you do not... I'm sorry!!

What I can say, is that if someone else want to try this boot script and let us know if it works or not... I completely finish my ideas...
[Galaxy S Plus I9001 Android Development] edpo1976:
Thanks, anyway. Do you think that reflashing kernel would help?.
[Galaxy S Plus I9001 Android Development] smeroni68:
May be... I reflashed rom, gapps and kernel just 2 days ago, without wiping data (only cache and dalvik) and the phone was ready without any app reinstall or data lost... try...

Did you use extreme or standard?

---------- Post added at 06:44 PM ---------- Previous post was at 06:42 PM ----------

If you use extreme UV, use this ROM "all in one" by me...

http://www.mediafire.com/?55su5y3jf150ot4
[Galaxy S Plus I9001 Android Development] edpo1976:
I uses extreme UV til this morning (if you remember, my phone turn off when rebooting, it was my first problem with that kernel, probably due to voltage). I flashed standard kernel and made the process of the script.

I'm gonna try to restore my previous backup (that I made befor install AMM), with extreme UV, and check if it works that way. If not, i will try flashing your ALL IN ONE Rom.

Thanks again
[Galaxy S Plus I9001 Android Development] Christopher83:
Post to be deleted, sorry...
[Galaxy S Plus I9001 Android Development] edpo1976:
Hi, again.

I've restored my previous backup (with kernel extreme), and I've repeated the entire process with the script. Still no luck. The values in minfree file are the same, before and after.

I think the only test to do is reinstall your All in one ROM, so I'm gonna charge the phone for a while and then I'll try to reflash it.

I suppose that the process is the same (flash the ROM, wipe cache and dalvik, flash GAPPs, wipes again, normal reboot, fix permissions and reboot agail). Am i correct?. Or isn't neccesary reflashing Gapps?.

By the way, what is the exact numeration of v6 EXUV?. Just to check it out.

Thanks, as always. I will report,
[Galaxy S Plus I9001 Android Development] akhil.myteam:
I checked the script ..and got values like

2048,4096,6264,10096,15360,19200
[Galaxy S Plus I9001 Android Development] akhil.myteam:
permission screen is like this
[Galaxy S Plus I9001 Android Development] edpo1976:
I think, then that the script has no effect at all. Those are the original values of v6 kernel, if i'm correct. I've got the same screens.

Smeroni68, I've complete the process of reflashing your All in One Rom (with EXUV Kernel), and I tried again, with no success.

Anyone could make the script work?.

Regards
[Galaxy S Plus I9001 Android Development] fusionjack:
Did you try to run the script with script manager? If it doesn't run, then something wrong with the script. It could be that the script is edited with a non appropriated editor that can break the script.

If it runs, then it could be that the kernel reset the value after executing init.d. You can try to run it with script manager after PIN input, so that the kernel doesn't reset the value.
[Galaxy S Plus I9001 Android Development] smeroni68:
I've placed the script I posted in my init.d and it works!!!

Please can you upload your file (get the one you have in init.d) that I'll check if any stupid mistake I've made? Thanks

---------- Post added at 08:30 PM ---------- Previous post was at 08:23 PM ----------

That's a good idea... but still I do not understand why in my phone works!! Before starting the post's today, I've tested myself the script many times... also editing the script and changing the values... after reboot the minfree values were updated... this is why I don't understand... anyway...
[Galaxy S Plus I9001 Android Development] edpo1976:
I am attaching the script, taken directly from my init.d (I had to rename it back with the extension, so that I can attach it correctly).

Smeroni68, friend, surely the error is mine, and surely it is an stupid mistake. Sorry to make you work so much.
[Galaxy S Plus I9001 Android Development] smeroni68:
I've uploaded on mediafire the original file I attached to the post...

PLEASE, download this one and use it:

http://www.mediafire.com/?w5bn458agxm8ij8

I have a doubt that in attaching ans saving the txt file a charapter has been changed and we are fighting with a stupid stuff...

Let me know. Thanks
[Galaxy S Plus I9001 Android Development] Christopher83:
The script seems correct, I executed it from terminal emulator and the values changed as wanted. If I put the script in init.d, minfree values doesn't change after reboot. I think that using ScriptManager, this script should surely works.

---------- Post added at 08:55 PM ---------- Previous post was at 08:53 PM ----------

I try it now
[Galaxy S Plus I9001 Android Development] smeroni68:
I thank you very much for testing the goodness of the script... but sorry, I would not loose half a day posting if the script was a fake!! Do you agree with me? Now why in my system it apply the values correctly from init.d and not apply on another phone is a mistery... bye
[Galaxy S Plus I9001 Android Development] fusionjack:
As I suspected, the attached file is saved as windows format which will break the script.

I have updated it as unix format. It is working on me. You can try it. :fingers-crossed:
[Galaxy S Plus I9001 Android Development] edpo1976:
No matter, Smeroni68, I think we all appreciate your efforts.

I've tried the new scrpt from mediafire, and still doesn't work.
[Galaxy S Plus I9001 Android Development] smeroni68:
Problem solved!!!!!!!

Look to the previous post... thanks for solving the format mistake!!!! ... half a day for a fu..ng stuff...
[Galaxy S Plus I9001 Android Development] edpo1976:
I am testing it now...

EDIT. Yeeeeesss!!!!!!!!!. Finally we got it!. I mean, you got it.

Thanks Smeroni68, and thanks Fusionjack.

I'm gonna check the next few days the utility of the script, as a possible solution to all those who still have lags with v6.

Awesome work, guys!
[Galaxy S Plus I9001 Android Development] Christopher83:
I agree with you.

Thank you so much!

Oh yeah, this could surely be the explanation. I try it too.

Thank you too!

---------- Post added at 09:15 PM ---------- Previous post was at 09:06 PM ----------

It works great! :thumbup:
[Galaxy S Plus I9001 Android Development] smeroni68:
Now I understood why mine was working... because I placed the file in init.d and I found a syntax mistake... so I edited the file with the phone editor and I saved it... this has changed the format in unix... sometime for a stupid stuff the loosing time is unbeliveable!! Thanks for your patience...
[Galaxy S Plus I9001 Android Development] fusionjack:
but...we are learning from the mistake. The time is not wasted in vain...Don't give up! :highfive:
[Galaxy S Plus I9001 Android Development] smeroni68:
OK... it was hard but we get it!!

Now: if you want to change some values for testing, you can edit the 99lowmemorykiller file.

The values written in the file are pages of 4kb, that means tha 1MB is equal to 1024B, subdivided for 4... 1024/4=256...

10MB... 10240 / 4 = 2560... this is the number to be written to obtain the 10MB value.

So the values follow this rule... Be carefully, because a bad sequence of values can result in an unbootable phone or at least problems...

For your reference these are the values used by the tweaker SuperCharger V6:

Multitasking 8,14,40,50,60, 75 MB (The one I use for mine)

Balanced 8,14,55,70,85,100 MB

Aggressive 8,14,75,90,95,125 MB (this is really aggressive, no app will stay open... let's say FREE MEM FOREVER...)

Do not play for a week with the values... find a combination and fix it for your phone... different way of using= different custom file... everyone can have the phone as he desire...

Remenber to save someware Your Custom File... in case of rom flash, the init.d folder will result cleaned... you can restore back your file after the first reboot...

Thanks to all for the attention.

EDIT: be sure (and double check) after a modification that the appearing of the code is:

#!/system/bin/sh
echo "2560,4096,6144,10000,22000,25000" > /sys/module/lowmemorykiller/parameters/minfree
[Galaxy S Plus I9001 Android Development] edpo1976:
... even inexperience people like me can learn with your work. Thanks for that.

By now, I will test the configuration of your script, and post it in our spanish forum, so that anyone with lags can test it.

Regards
[Galaxy S Plus I9001 Android Development] smeroni68:
You can cut and paste my post's... translate if you want.. when you will have a spanish post, please send my in PM the link... I will have a look... remember to leave the Credits for my time... Gracias!!
[Galaxy S Plus I9001 Android Development] Christopher83:
I created a zip which includes various versions of 99lowmemorykiller script (v5.9, v6.0, multitasking, balanced and aggressive), based on Smeroni68's precious suggestions.

Steps to follow:

- download the attached zip file

- open file manager and go into the download folder

- uncompress it in the same folder

- select which one you'd like to use and copy it in /system/etc/init.d

- rename it removing the version extension (you should have 99lowmemorykiller as name)

- change script permissions to rwxr-xr-x

- reboot

- check if the values changed correctly in /sys/module/lowmemorykiller/parameters/minfree
[Galaxy S Plus I9001 Android Development] edpo1976:
Smeroni68, I've sent you a PM with the link, but my control panel shows the sent item folder empty.

Let me know if you have recieved it.

Thanks

---------- Post added at 11:38 PM ---------- Previous post was at 11:36 PM ----------

Thanks chrisdp, Smeroni68 and all of you, guys. After all, it has been a profitable day!:good:

EDIT. I've link all this to our spanish forum, and first users who have tested it are reporting a good result with the script. Good work!.
[Galaxy S Plus I9001 Android Development] DualJoe:
If i remember correctly (from v6 superscript) it's the third value that's mainly responsible for the android 'free mem' gui value that highly affects necessary free space for system/kernel activities that can cause huge speeddowns if tightened too much.

I have none of these problems yet with v6.0 so i think i will leave them untouched for now even though 24MB is quite low indeed. But unless it makes trouble somehow this value can't be low enough (for most userspace memory). Unneeded high values would waste memory because neither the system/kernel would ever assign/need that much reserved memory nor could the userspace ever access this area because of the OOM threshold.
[Galaxy S Plus I9001 Android Development] MaliMravac:
I'm not sure is this connected to new settings regarding memory management but built-in application (phone and messaging) are opening slower on 6.0 compared to 5.9.
[Galaxy S Plus I9001 Android Development] iLpirLa:
so that error should happen also with the "jpegcompression" file which has been uploaded and renamed with .txt extension, right?
[Galaxy S Plus I9001 Android Development] alaanto:
Yes i conform it, But 6.0 is great on normale Life, Battery Life is Very Long, for the gaming

tapatalkeggiando allegramente
[Galaxy S Plus I9001 Android Development] darsh11192:
V6 both kernel makes phone hot when charging... tried on 2-3 ROMs but same ...
[Galaxy S Plus I9001 Android Development] tribual:
only with "smartassV2"

changed to Lionheart and everything is fine. :D

writed about 3 or 4 times here, but nobody takes care.

Greetz
[Galaxy S Plus I9001 Android Development] roberpao:
Bluetooth and Deep Sleep

Hello guys, someone know as can resolve this problem?. When I power on the bluetooh, the deep sleep does not work. This is very bad for me, because I need use bluetooth so very much, and the battery drain is very big.

Exist many aplication for disconnect bluetooh, for when nothing is connected, turn off the bluetooth?.

Sorry for my english.

Regards.
[Galaxy S Plus I9001 Android Development] eggmich:
Hey, I did :D

...and you are right: Lionheart is better for me, too. Thanks

If you want bluetooth just for connecting to a bluetooth headset, I solved this with a tool named "BTHF PowerSave".

If a call comes in (or out if you want) it switches bluetooth on for you AND immediately connects to a already known headset. I tried this a few days and it worked fine for me. This saves me MUCH power...
[Galaxy S Plus I9001 Android Development] akhil.myteam:
Script Worked well....and all values are correct..:good:
[Galaxy S Plus I9001 Android Development] roberpao:
Thanks, but I tell me that my device is not compatible, you use this aplication?.

Thanks.
[Galaxy S Plus I9001 Android Development] eggmich:
...as I wrote: Yes, Version 1.020

You can get it here maybe: http://code.google.com/p/bthfpowersave/downloads/list
[Galaxy S Plus I9001 Android Development] Invicta:
is the overheating problem occurs when ONDEMAND governor is used?
[Galaxy S Plus I9001 Android Development] DiKei:
Which do you choose ?
[Galaxy S Plus I9001 Android Development] smeroni68:
I use smartassv2 from the beginning (as with gb roms) and I never had problems of overheating or strange behaviour with charging... that's another stuff that sound strange. I belive that there must be a reason that will block the clock of the phone to high frequency (may be) and this for sure will create an overheating and a slow charging.

My 2 cent's on this matter...
[Galaxy S Plus I9001 Android Development] mrjraider:
Charging your phone will make deep sleep not possible.

The phone wont sleep when charging, i think this is also a reason it gets hot. Is it possible that charging your phone the cpu keeps running at max?
[Galaxy S Plus I9001 Android Development] smeroni68:
True... so the phone normally will stay ad min cpu freq (I've checked many times with cpu-spy and 100% I found that). But I've read of users that has found exactly the opposite (so cpu @max freq) and this create for sure heat for nothing (on one side) but also a slow charging because heat = power consuption = the current from the power supply is used for a part to maintain the phone at max freq and the rest for battery recharge... it is a energetic balancing, so the recharge will result in a disaster...

Normally I can expect a reboot will solve the issue, but I really do not know how and why it happens... it can be hardware or software problem. Both the reasons can be acceptable without any real data or test that can replicate the situation (I mean, a procedure that if followed on different phones give the same result). Unfortunately it is difficult to find a common factor and is too easy saying "I'm using ROM... Kernel...", it can be just a coincidence or it can be a common factor... who knows for sure?

My other 2 cent's...
[Galaxy S Plus I9001 Android Development] Christopher83:
If you mean the 22zerojpegcompression script linked by CastagnaIT in the faq section, personally I hadn't any problem when I tried it (directly downloaded and tested on my phone), it works correctly. However, after opening it with Notepad++ on my PC, I see that it doesn't contain line endings in Unix format (LF), but in Windows format (CR LF).

I've attached the zipped script with correct line endings just in case someone had problems with the original.
[Galaxy S Plus I9001 Android Development] sartana:
I run AOPK milestone, whit kernel 6 and smartassv2, and now my phone is recharging...it's really cold, no problem of overrheating, charging normally

I had that problem whit previous version 5.7 (same ROM and APP) , because when the phone was in charge cpu goes at mximum. (i'm one of the user that report this problem on the Italian Forum , thanks to smeroni for his support and advices)
[Galaxy S Plus I9001 Android Development] smeroni68:
Hi sartana, nice to find you here...

Just to fix your experience: you are confirming that you had that problem with v5.7 and with v6.0 it hasn't appear till today... so same phone, same app installed, same rom... if we assume this "experience" as a valid data to try to understand where is "located" the problem, I can say that probably is on software side and may be in kernel... but it's only an assumption till now... but from someware we need to start...

Please all of us must always remember that we are using a beta version, so bugs are normal for that status of development.

My experience I explaned some post's before, so nothing usefull because any problem has been encountered, but at the same time usefull because for a mistery reason it has not appeared!!!

If other users has something to "declare/explain" regarding this issue, I invite them to report their experience. Thanks
[Galaxy S Plus I9001 Android Development] DualJoe:
Those affected must pinpoint the bug. Its just a minor number of people reporting this. Use clean images, clear logcat (logcat -c) before charging and if bug occurs dump the log (logcat -d >/sdcard/logcat.txt) and post it. Then lookup in 'Settings' (there is a realtime MHz display) if the clock is frozen. If so try to unfreeze by changing governor. We need at least something to work with (error in logcat or dmesg, a frozen clock, corrupt sysfs values or something). Also make sure to not use any root tools like SetCPU or similar. They may have bugs, go wild or whatever. Check your root tools in Superuser app and revoke permissions for unnecessary tools if possible. You can also try tools like 'Better Battery Stats' or some CPU monitor tools to pinpoint kernel/partial wakelocks or similar anomalies over time. But make sure these tools do not raise the bug itself. And don't forget to post proper informations about used image/kernel/baseband and enabled devices (WiFi, GSM, BT, GPS,..).
[Galaxy S Plus I9001 Android Development] Numma1984:
I have a strange bug with CastagnaITKernel v6.0 (OC/UV)

If i put usb on my smartphone and want to put anything on my ext sd or sd card it isnt showed in windows. It shows that it is connected but i cant get access to mass storage

Anyone knows it ?
[Galaxy S Plus I9001 Android Development] yussuf007:
i had this problem befor, but reinstal the rom whit full format/wipe and everything working now.

first i try arco's recowery but i get error in format system after try TWRP 2.2.1 and its work.
[Galaxy S Plus I9001 Android Development] BattleBear3000:
I'm using ondemand for 2 days now and i experienced no overheating ;)
[Galaxy S Plus I9001 Android Development] hypnos17:
I'm not asking for ETA's, but only a question: in RC2 are there any changes in kernel?

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] akhil.myteam:
No problems with ONDEMAND

I'm always using ONDEMAND when ever faces a problem with SmartassV2..

So I choose ONDEMAND for permanent use....so far no problems...no over heating..
[Galaxy S Plus I9001 Android Development] Tut_Ank:
I had this problem twice with Ivendor's Beta 5 using his kernel, never happened to me using Kernel 5.9 always used Ondemand until I moved to 5.9

I plann on testing RC2 next week and mabe later Kernel 6.0...
[Galaxy S Plus I9001 Android Development] seba2121:
I see one thing if i reboot my phone and go to no frills CPU i see maximum use CPU i must change governor from smartass to other and back to smartass and use my cpu is normal.

Sorry for my bad English
[Galaxy S Plus I9001 Android Development] Karls0:
+1 i too have this problem. Sometimes it stuck on max use (1.4ghz in my case). It happend in 5.9 and 6.0.
[Galaxy S Plus I9001 Android Development] iGunslinger:
I also had this problem when I used NSTools. if not use NSTools no such problem.
[Galaxy S Plus I9001 Android Development] smeroni68:
This is a good information...

Inviato dal mio GT-I9001
[Galaxy S Plus I9001 Android Development] xeGox:
this is for me too

ns tools give me a lot of problems

Device: Samsung Galaxy S Plus (I9001)

ROM: AOKP Milestone 6 b3 Crybert ed.

Kernel: CastagnaIT v6.0 Kernel

Recovery: TWRP TeamWin Recovery Project 2.2.1

USING XDA-APP
[Galaxy S Plus I9001 Android Development] smeroni68:
You are the second one that is telling that NSTools has created problems...

I can confirm that I NEVER used that app... I installed but leaved always disable...

So we can say that if someone that has found problems with frequency during charging and it's using NSTools, can try to disable every service of it and recheck if it help on the issues... reports are always welcome... thanks
[Galaxy S Plus I9001 Android Development] nguyenchienbig:
hope CastagnaIT update kerner ivendor rc2
[Galaxy S Plus I9001 Android Development] hypnos17:
Do u think that dualboot is too dfficult to port?

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] CastagnaIT:
Interesting thanks

the kernel does not need to be modified to work with RC2, is already updated
[Galaxy S Plus I9001 Android Development] smeroni68:
For sure!... but it is already updated...

Inviato dal mio GT-I9001
[Galaxy S Plus I9001 Android Development] Skar3:
dualboot would be interesting but I do not know if it is possible to port on our device
[Galaxy S Plus I9001 Android Development] xeGox:
with nstools installed,sometimes my phone lags,random reboot and wakeup lag(from deepsleep)

without it's much better!

an interesting thing is the init.d script created from it...that enable bln and io scheduler

take a look for it

Device: Samsung Galaxy S Plus (I9001)

ROM: AOKP Milestone 6 b3 Crybert ed.

Kernel: CastagnaIT v6.0 Kernel

Recovery: TWRP TeamWin Recovery Project 2.2.1

USING XDA-APP
[Galaxy S Plus I9001 Android Development] Bedi_:
Excuse me, dual boot means two roms on the device in the same moment? :confused:

Inviato dal mio GT-i9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] Invicta:
the 6th version of castagnas kernel is updated with the RC2 kernel?
[Galaxy S Plus I9001 Android Development] crishurazvi:
Yes. Like you can dual boot for example Windows and Linux on the same machine.
[Galaxy S Plus I9001 Android Development] hypnos17:
Yeah :)

I always thinked that can be a really interesting project, and I asked for

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] crisk73:
Yes, castagna 6 kernel is already built on arco's last sources on which RC2 is based
[Galaxy S Plus I9001 Android Development] broodplank1337:
Making the kernel dualbootable is pretty easy actually. I saw how siyahkernel did it. the only problem is where to store the other rom? making it for cm7/stock would be easy for example. But thatd gb
[Galaxy S Plus I9001 Android Development] zimmbadroid:
Here are some battery screenshots.

Im running AOKP build 3 by Crybert + CastagnaIT 6.0 normal.

I did fresh install following this procedure and calibrated baterry so these results are after 1st discharge.

ROM feels smoth, no lags, pure awesome overload.

Edit: Attached my homescreen :D
[Galaxy S Plus I9001 Android Development] mrjraider:
Looks awesome but do you use 3G/Wifi or playing music with it?

Just asking :angel:
[Galaxy S Plus I9001 Android Development] zimmbadroid:
A little bit of 2G usage, no music, you can see wifi usage on screenshot.
[Galaxy S Plus I9001 Android Development] mrjraider:
Alright thanks ill post my screens tomorrow :)

Verstuurd van mijn GT-I9001 met Tapatalk
[Galaxy S Plus I9001 Android Development] DualJoe:
Never used NSTools, never had problems too.

One can always use sysfs directly though so it's not really mandatory i think. We maybe should collect useful sysfs locations for 1st post.