HOW to disable Zram0 - Samsung Galaxy SL i9003

I never liked zRAM feature in the android devices! ^_^
In most Kitkat ROM for this device, zRAM is enable by default with 50 MB
And due to I couldn't repack Boot.img (Kernel) from Kitkat ROMs to disable zRAM, I decided implement one script to disable it.
Deactivating zRAM you get a slight boost in performance and extends a bit the battery duration due to is not needed use CPU to compress data in zRAM... (Dont expect much difference)
Disable zRAM
Download this file and install it by recovery.
09Dis-Zram0.zip
or
Download this file and put it in /etc/init.d folder, then set the right permissions after this, restarts to apply changes.
09Dis-Zram0

It works fine, my phone is running better with a swap partition in my SD card.

chrisdlc119 said:
It works fine, my phone is running better with a swap partition in my SD card.
Click to expand...
Click to collapse
I am happy enjoy It:fingers-crossed:

Related

[SCRIPT] The Best RAM Optimization

Hello,
I just try this on my Asus Transformer and it seem to make a big different on the tablet smoothness.
Before when I either wake up the TF or running allot of program, it would lag allot. After the ram tweak, I can said it does make a different. Even after I had almost fill my memory up to 90%, opening new programs and swapping screen is fast. Android does a decent amount of work and return my memory back to 150 (and up) with the OOM Kill task. It did not cure my SOD problem.
I am current running the ram optimization with no other ram optimizer or task killer.
Here my TF configuration:
Prime 1.5, Netformer 1.5 @ 1.5GHZ, SD Boost, and Script Ram Optimization. The link is below. Check it out and let me know how it goes on your transformer. As always, make a nano backup before the tweak.
Credit goes to Juwe11
http://forum.xda-developers.com/showthread.php?t=1111145&highlight=ram
Hi, if you're running prime 1.5 it has support for sysctl changes built in. By using /system/etc/sysctl.conf_default as a guide, simply put the desired settings into the /system/etc/sysctl.conf file and these will be applied on reboot by the 04sysctl init.d script that's already in the rom.
Or just use the script for the post above, it should work fine too.
nice work !
By the way, what is SD Boost?
can i use this tweak with the netformer kernel and stock rom?
amerikian said:
By the way, what is SD Boost?
Click to expand...
Click to collapse
The default settings for I/O is really slow when it comes to SD r/w. With SD Boost app on market, it'll tweak the I/O parameters on boot. If you're running Prime, then it is already tweaked for you and is permanent.
frosty5689 said:
The default settings for I/O is really slow when it comes to SD r/w. With SD Boost app on market, it'll tweak the I/O parameters on boot. If you're running Prime, then it is already tweaked for you and is permanent.
Click to expand...
Click to collapse
But those files can be applied on stock rom with root and Kernel netformer 1.5 or i can fall in some issue if i don't have prime 1.5 installed into TF?
devilpera64 said:
But those files can be applied on stock rom with root and Kernel netformer 1.5 or i can fall in some issue if i don't have prime 1.5 installed into TF?
Click to expand...
Click to collapse
Apps like that or SD Speed Increase should be fine with just a rooted device at minimum.
jonitfcfan said:
Apps like that or SD Speed Increase should be fine with just a rooted device at minimum.
Click to expand...
Click to collapse
and the RAM tweak? if i apply it with CWM on the stock rom (as i have done with wpa_supplicant to turn on Ad-Hoc connections) it's ok or i can have issues?
Here is what Roach2010 already has in the kernel by default:
[taken from the /system/etc/sysctl.conf_default file in PRIME v1.5]
NOTE: only the values that relate to what is in the script that the OP links to
Code:
vm.dirty_background_ratio = 5
vm.dirty_ratio = 20
vm.dirty_writeback_centisecs = 500
vm.dirty_expire_centisecs = 200
vm.swappiness = 60
vm.vfs_cache_pressure = 100
Here are the values to place into the /system/etc/sysctl.conf file that Roach2010 mentions above:
NOTE: these are the replaced values that relate to the script the OP links to
Code:
vm.dirty_background_ratio = 5
vm.dirty_ratio = 90
vm.dirty_writeback_centisecs = 1000
vm.dirty_expire_centisecs = 500
vm.swappiness = 50
vm.vfs_cache_pressure = 10
Looks to be similar to this app => https://market.android.com/details?id=com.rs.autokiller&feature=search_result
Roach2010 said:
Hi, if you're running prime 1.5 it has support for sysctl changes built in. By using /system/etc/sysctl.conf_default as a guide, simply put the desired settings into the /system/etc/sysctl.conf file and these will be applied on reboot by the 04sysctl init.d script that's already in the rom.
Or just use the script for the post above, it should work fine too.
Click to expand...
Click to collapse
Canny figure oot if yer sayin this is gonny help oor no?
I'm running Prime 1.5 and clemsys kernel v14b.
Globespy said:
Canny figure oot if yer sayin this is gonny help oor no?
I'm running Prime 1.5 and clemsys kernel v14b.
Click to expand...
Click to collapse
Everything about how much "snappier" it becomes is subjective.
frosty5689 said:
Everything about how much "snappier" it becomes is subjective.
Click to expand...
Click to collapse
Cheers. I guess it falls in the same basket as autokiller etc. Highly debatable subjects.
Just from my experience. When I have using the TF for 4 hours, I would have use over 10 programs. opening the android market up would take at least ten seconds or more. With the ram tweak, it open up in two seconds.
Opening all other programs there after are just as quick, as if you first start up the Transformer. Switching from screen to screen is very smooth. Where with out the tweak it would lag for a few seconds if I have allot of programs running.
My experience with the tweak vastly improve the usability of the tablet. Then again, it is subjective.
Did not know Prime 1.5 already have the SD Boost tweak? Can anyone recommend me a SD Card benchmark tools that can work on the microsd, SD, and internal storage? Been looking on the market, but not that work for all the storage slots in one tools.
Thanks
I am using the Clemsyn version 16 kernel. Can I use the CWM RAM Script?
Thanks a lot
I don't see why not. OC does help with loading up the program faster and durning usage. The ram tweak help with the multitasking part. It use subjective though.
Do a backup before tweaking it.
minhgi said:
I don't see why not. OC does help with loading up the program faster and durning usage. The ram tweak help with the multitasking part. It use subjective though.
Do a backup before tweaking it.
Click to expand...
Click to collapse
would a complete nandroid be necessary or could we just backup the files it alters?
adiliyo said:
would a complete nandroid be necessary or could we just backup the files it alters?
Click to expand...
Click to collapse
A complete nandroid backup would a safer bet in this instance, or any other instance for that matter, in case you can't boot into your TF for whatever reason. It'll also be more convenient than having to find out which exact files are being modified and to use a root file manager to manually copy and paste the current versions before flashing.
It seemed to help me on my tf. Surprisingly I didn't have anything in my sysctl.conf before I added this in.
brando56894 said:
It seemed tohelp me on my tf. Surprisingly I didn't have anything in my sysctl.conference before I added this in.
Click to expand...
Click to collapse
Same here...I don't have any sysctl.conf on my Asus..
I have asus eee transformer with kernel netformer 1.5 @1,5 ghz and prime 1.4 but after a succesfull flash wirh cwm i don't see the file in the folder and with the other metod i can't change permissions with root explorer, what have to do?*

Lollipop improvements for HOXL

Hey guys and gals.
So I got myself a new/old HOXL and immediately flashed a Candy5 ROM on it with all lollipop and CM12 bells and whistles. To keep things even more interesting, I threw a nice package of google apps on top of it and enabled Google Now.
Guess what I found out immediately after my phone booted
My phone was sloooooooow. Like, it was fast for 1 hour or so after reboot and then it started to drag. After a day of moderate usage it became barely usable; sometimes I would miss a phone call because it wouldn't show me the bloody dialer and let me answer.
My phone was sucking battery like a thirsty camel in an oasis in the middle of Sahara desert... ok, ok, just don't throw that tomato at me. Anyway, I was losing 10-15% of my battery per hour.
So, I started messing around with the phone and found out several interesting things. I think it's worth sharing and discussing. In the next posts, I will share my findings with you. Please share yours.
My goal is pretty obvious: fast, smooth experience on CM12 and decent battery life. I was getting 2 full days of moderate usage on my good ol' HD2, so that's my current target with HOX. I also want Google Now working, at least to some extent. I especially like the feature when it shows me my parking location and things around me, so disabling locations altogether is not an option.
First step to smoothness: swap and OOM
DISCLAMER. The script below plays with your system settings. It might cause bootloops, brick your device or start nuclear war. Please use at your own risk.
So, first thing I noticed was that the phone was getting slow because it didn't have enough memory to run. I figure that CM12 and lollipop in general is probably optimized for 2GB RAM, whereas our device has only 1GB. So I tried to play with OOM values, but didn't get the desired results. So I went and enabled swap. Guess what? Works like a charm.
Here's how I did it:
1. install SuperSU from here .
2. open it and let it install its su module. this part might be tricky; for me, doing this via recovery didn't work and regular install didn't work either. i ended up having to open ADB terminal and setting SELinux to permissive manually, like so:
su
setenforce 0
and only after that did it succeed to push its su module to system/xbin.
3. go to SuperSU's settings and make sure you have checked the following:
a. Enable Superuser
b. Enable su during boot
c. Trust system user (this is not mandatory; however, if you don't check this, you will be flooded with requests to grant su to system apps)
4. after you have everything set up, reboot to recovery and install the attached zip like you would install a ROM.
5. reboot and enjoy your new silky smooth HOX
This script enables swap on data and cache. The files are pretty large, too: 250MB on data and 250MB on cache. I saw that even with this I still have plenty of room on data and cache to keep rolling. This gives me 0.5GB of swap, virtually enlarging my RAM to 1.5GB. This seems to be enough for all my needs.
The script also sets swappiness to 50, sets OOM to the values that work best for me at the moment and brings over several optimizations from my HD2 ROM. Feel free to edit the values and share.
EDIT: uninstalling script attached
EDIT2: scripts updated to reflect my latest changes.
EDIT3: reduced small (small_swap.zip) attached for those who want to use swap with ZRAM
Second step to smoothness: kernel
This step proved to be extremely important for smoothness. For some reason, stock CM12 kernel appears to be severely underoptimized... or the kernels that our devs generously made available for us are heavily overoptimized
To my best knowledge, currently there are only two kernels that work with LP and support swap: Torched Kernel v1.4 and Frosted Kernel.
IMPORTANT: if you are going to flash Torched kernel, be sure to flash LP version 1.3 or 1.4. Previous versions break swap, thus hurting speed and stability
IMPORTANT: if you are going to flash Bricked kernel, you ABSOLUTELY MUST flash the voltage table (see this post). First flash the kernel and then the voltage table. Not following this procedure can damage your phone.
I am currently using the Bricked kernel and the results are extremely impressive.
Third step to smoothness: Ext4 optimizations: disable journaling, enable dir_index
This step helps quite a bit if you decide to stay with ext4 for now. But even if you don't and want to switch to F2FS (see step 4), it's worth doing it on the /system partition.
WARNING. Journaling slows your system down quite a bit but it also adds stability. Please beware. You may lose your data or may even have to reflash your ROM in some extreme cases.
I never experienced any problems with non-journaling systems, but be aware that google enabled it for a reason.
Note: Your system might became unstable only if you forcefully shut the device down by long-pressing the power button or if you run out of battery. In case of normal work and normal shutdowns/restarts, everything will be fine.
1. Flash the attached zip (no_journal.zip).
2. Profit! Your cache, data and system partitions have no journaling now.
Fourth step to smoothness: F2FS
It took me some time to figure out this one, but it proved to be extremely helpful in terms of speed and general smoothness. Stability is yet to be tested, but I have it for ~24 hours now, and everything looks fine so far.
0. You need a F2FS-enabled TWRP. Luckily, we have jrior001 with us, who took care for that. Grab it from here (please thank jrior001 in his thread).
1. Install Torched kernel 1.4. (Bricked supports F2FS too, but for some reason, the performance is degraded and the stability is much worse than with Torched).
1a. If you had Bricked installed, remove undervolt script from /system/etc/init.d
2. Install attached zip (evita_F2FS_conversion_v2.0_pav.zip). This will enable you to work either with ext4 (with some extra optimizations) or with F2FS, so you can always go back without having to remove it. (note that you'll have to flash this zip each time you install a new kernel)
3. In TWRP, go to Backup, select data and cache and unselect system. I also disabled compression, just in case. Start the backup and wait for it to finish.
3a. STOP! Check that backup returned no errors. If there were errors during the backup, don't go any further or you'll lose your data!
4. Now connect your device to the PC. On PC, browse to Computer\One X\Internal Storage\TWRP\BACKUPS\<number of your device>\<latest backup>
5. You will see a bunch of files whose name contains ext4. For example, data.ext4.win.md5
6. Go ahead and change ext4 to f2fs for each file. The names should now look as follows: data.f2fs.win.md5
7. Back in TWRP, choose Restore -> your latest backup.
8. Sit back and relax while TWRP reformats your data and cache partitions as F2FS and restores all your data.
9. Reboot and enjoy!
10. If you'll ever want to go back to ext4, just go to TWRP, connect your device to the PC, on your PC, restore the original names of the backup files (rename f2fs to ext4), in TWRP choose restore and you're back to where you stated
First step to battery life: wakelocks
1. Go to Settings -> Privacy -> Privacy guard.
2. Scroll down till you reach the word Google.
3. Enable privacy for everything that starts with the word Google, including (!!!) Google Play Services.
4. Long-tap to enter each row and disable "keep awake" and "wake up" wherever applicable
Also, I use ServiceDisabler (from Play Store) to enter Google Play Services and disable Google Analytics
Second step to battery life: WIFI
Settings -> WI-FI -> three dots on top of the screen -> Advanced.
Disable "Keep WIFI on during sleep" (set to never) and "Scanning always available"
Third step to battery life: build.prop
Attached is my modified build.prop. It is derived from the stock build.prop, with some important tweaks that I brought over from my HD2 ROM. The measurements here are not that objective, but I felt that I could squeeze ~30% more juice from a single charge.
Of course, uninstall script is attached as well, just in case.
Fourth step to battery life: data usage
1. Head to Settings -> Data usage.
2. Scroll down till you see Google App.
3. Click on it and enable "Restrict app background data".
4. Go back and scroll further down till you find cLock.
5. Enable "Restrict app background data" as well.
for me
another one for me
last one for me
Cannot end a call by pressing the red button.. After unswap everything is normal again.. Can you please check it?
Nice work!!!!
How did u unswap ?
My phone was kinda cool.... Until I flashed this, my phone lagged the more.
Nice work BTW.
I want to unswap please!
Flash unswap.zip.. But i just notice that despite unswapping problem still persists.. Maybe it.s a cm12 bug.. I dont know
flashing unswap.zip should remove any traces of what swap.zip has done. if the problem persists after you flashed unswap, then the problem is elsewhere
I downgraded firmware from 2.18 to 2.15 and now i can terminate the calls.. I also install your swap file in latest cm12 02.19 nightly and seems to work fine..
I flashed Candy 5 and noticed that even after installing Torched kernel and overclocking, optimizing, etc, my phone would slow to a crawl by the end of the day and it definitely wasnt a memory problem as I had plenty free. What I found was that randomly my IO settings reset to 128Kb read-ahead and the scheduler resets to ROW. Changing back manually to 512Kb and FIOPS and suddenly the performance is back to what it was. This has happened twice in two days and I'm not sure if this is a Torched/CM/Candy/or Lollipop bug but at least I figured out what was causing it....
Hi thelonewolf_pav,
I just saw your post in the torched kernel lp thread. So if I have torched kernel lp flashed, the swap doesn't work? I flashed swap.zip and then flashed torched kernel lp, and my evita seems to be running without lag, for now. I hope torched can figure out what the problem is. Also, if I use fiops for my I/O scheduler and 512 Kb read ahead cache size, it helps. One more thing, how do I check if my swap portions are being used, I just want to see if mine are being used or not.
Thank You,
Hi harpin,
harpin14789 said:
I just saw your post in the torched kernel lp thread. So if I have torched kernel lp flashed, the swap doesn't work?
Click to expand...
Click to collapse
nope. it starts alright, but it's never actually used
harpin14789 said:
I flashed swap.zip and then flashed torched kernel lp, and my evita seems to be running without lag, for now.
Click to expand...
Click to collapse
that's cool
unfortunately, that wasn't the case for me, I had to return to the stock kernel. my evita would run without lags for a day or two and then slow down to a crawl. very annoying
harpin14789 said:
Also, if I use fiops for my I/O scheduler and 512 Kb read ahead cache size, it helps.
Click to expand...
Click to collapse
fiops should be great. too bad we don't have it in stock kernel. however, in my experience, the lower read ahead cache is, the better. try experimenting with it. i ended up setting it to 0.
harpin14789 said:
One more thing, how do I check if my swap portions are being used, I just want to see if mine are being used or not.
Click to expand...
Click to collapse
very simple. run terminal from the phone or start ADB. then type:
free
Click to expand...
Click to collapse
look at the last reported line (swap). it should say that you have about 1GB total and some amount of it in use. if you have all values (including "total") at zero, then swap wasn't initialized properly (or isn't supported by the kernel) and didn't kick in. if you have "used" at zero for a prolonged period then you, like me, experience the Torched bug: swap was started but kernel isn't actually swapping anything. if all values are greater than zero, that means that swap is working properly.
please report here what you get. it would be very nice to know whether Torched kernel worked for you
thelonewolf_pav said:
Hi harpin,
nope. it starts alright, but it's never actually used
that's cool
unfortunately, that wasn't the case for me, I had to return to the stock kernel. my evita would run without lags for a day or two and then slow down to a crawl. very annoying
fiops should be great. too bad we don't have it in stock kernel. however, in my experience, the lower read ahead cache is, the better. try experimenting with it. i ended up setting it to 0.
very simple. run terminal from the phone or start ADB. then type:
look at the last reported line (swap). it should say that you have about 1GB total and some amount of it in use. if you have all values (including "total") at zero, then swap wasn't initialized properly (or isn't supported by the kernel) and didn't kick in. if you have "used" at zero for a prolonged period then you, like me, experience the Torched bug: swap was started but kernel isn't actually swapping anything. if all values are greater than zero, that means that swap is working properly.
please report here what you get. it would be very nice to know whether Torched kernel worked for you
Click to expand...
Click to collapse
Hi thelonewolf_pav,
I really appreciate you telling me how to do this. I will get back as soon as I can with the results I am getting. Thanks for the swap.zip in the first place
harpin14789 said:
Hi thelonewolf_pav,
I really appreciate you telling me how to do this. I will get back as soon as I can with the results I am getting. Thanks for the swap.zip in the first place
Click to expand...
Click to collapse
hi thelonewolf_pav,
You were right, my phones is slowing down to a crawl even with swap enabled. I think, since I clean installed candy5 version 1.0.1, I got some good performance without much lag, but after some time the lag came back, I am torched kernal now. Should I switch back to stock kernal? To do that do I just fastboot flash boot boot.img from candy5 rom?
harpin14789 said:
hi thelonewolf_pav,
You were right, my phones is slowing down to a crawl even with swap enabled. I think, since I clean installed candy5 version 1.0.1, I got some good performance without much lag, but after some time the lag came back, I am torched kernal now. Should I switch back to stock kernal? To do that do I just fastboot flash boot boot.img from candy5 rom?
Click to expand...
Click to collapse
yes, just do fastboot flash boot boot.img
alas, you will lose all the bells and whistles of the Torched kernel. i really hope the dev will be able to solve the problem in Torched...
thelonewolf_pav said:
yes, just do fastboot flash boot boot.img
alas, you will lose all the bells and whistles of the Torched kernel. i really hope the dev will be able to solve the problem in Torched...
Click to expand...
Click to collapse
Hi thelonewolf_pav, if I flash the stock kernal do I need to reflash swap.zip? And what will losing the over clock to 1.7 GHz and GPU over clock to 512 MHz actually do to my device? As long as swap is enabled on stock kernal, my phone should run without any lag without the over clock, right? It is sad that I well lose fast charge, s2w and dt2w. But do we know what the root cause of this problem is, like in touched?
Thanks
harpin14789 said:
Hi thelonewolf_pav, if I flash the stock kernal do I need to reflash swap.zip? And what will losing the over clock to 1.7 GHz and GPU over clock to 512 MHz actually do to my device? As long as swap is enabled on stock kernal, my phone should run without any lag without the over clock, right? It is sad that I well lose fast charge, s2w and dt2w. But do we know what the root cause of this problem is, like in touched?
Thanks
Click to expand...
Click to collapse
Hey,
flashing the stock kernel should be enough. you don't have to reflash swap.
regarding your overclocked settings, they simply won't apply. the phone should boot normally, and you will be able to set the frequencies to the values that are allowed by the kernel.
regarding the root cause of the problem, unfortunately, we don't know it. kernel dev said that he will look into it. all i know is that swap starts perfectly well on Torched kernel, but the kernel never actually uses it. ("used" value is always at zero). which is equal to not having swap at all
thelonewolf_pav said:
Hey,
flashing the stock kernel should be enough. you don't have to reflash swap.
regarding your overclocked settings, they simply won't apply. the phone should boot normally, and you will be able to set the frequencies to the values that are allowed by the kernel.
regarding the root cause of the problem, unfortunately, we don't know it. kernel dev said that he will look into it. all i know is that swap starts perfectly well on Torched kernel, but the kernel never actually uses it. ("used" value is always at zero). which is equal to not having swap at all
Click to expand...
Click to collapse
ok, thanks

[DEPRECATED] Young Engine - The best balance of performance and battery life

Introduction
I tested a lot of mods, and I read a lot of scripting stuffs over time but the finding was always the same : A majority of mods contained only placebo things, and they only made things worse. I decided to make my own mod and Young Engine is what I got, I was septic to share it but sharing is caring after all ! Its particulairity is that every code line and every tested values inside suit our Galaxy Young.
Features
Compatible with all the ROMs (Stock and custom ROMs, CM7/CM9/CM11) and kernels.
Better memory management (calculated and based on Galaxy Young's RAM).
Better partitions mount options (compatible with both of EXT4 & RFS filesystems).
Better battery life.
Better call quality. That's placebo.
Better scrolling. That's placebo.
Better SDcard read/write speed.
I/O scheduler general and specific tunables for SIO and SIOPlus schedulers.
SmartassV2 governor tuning.
3G and TCP/IP optimisations (Download/upload speeds, network's latency reducing).
Useless debugging disable (for non-dev users).
Requirements
Rooted device with Busybox installed.
Init.d support.
Custom recovery.
Installation
Delete your installed scripts (expect which your kernel and/or your ROM need).
Download the attached ZIP file and put in inside your SDcard.
Reboot your phone in recovery mode.
Flash the ZIP file and reboot again your phone.
Credits
@FeraVolt : Your awesome work with FeraDroid gave a new life to my mod, thank you a bunch !
@osm0sis & Franco's Dev Team : For their great scripts which helped me a lot, the entropy part, and the TCP/IP optimisations are from them ! Thanks a lot guys.
@pkgnex : For his SIO and SIOPlus schedulers tunables, thank you for the great work !
Nice work Dude !! Keep it up !!!
First changelog - Thanks again @FeraVolt !
Added SmartassV2 governor tuning.
Removed the screen state scaling script.
Updated partitions mount options.
Updated debugging disable script.
Updated memory management, filesystem and entropy tunings.
Updated I/O scheduler tunables.
Cannot download ......please fix the download link.
Arkonite said:
Cannot download ......please fix the download link.
Click to expand...
Click to collapse
Sorry, it's now fixed !
Best regards.
Is this compatible with cm 7.2?
Arkonite said:
Is this compatible with cm 7.2?
Click to expand...
Click to collapse
Of course, it's compatible also with CM11/CM9 and stock ROM.
Best regards.
Second changelog - Thanks @raisul2010.5396 for some ideas :
Added calculated LMK's minfree/adj and Android's OOM flags (which are both synced with each other).
Added build.prop flags for several purposes :
Overall performance improvement.
Battery life improvement.
Better scrolling.
Call related improvements (Reduced proximity and ring delays, enabled Adaptive Multi-Rate Wideband for a better call quality, mobile data's speed increase).
Updated again memory management, filesystem and entropy tunings.
Updated again debugging disable script.
Please, I'm tired of the feedbacks lack. Try to understand my situation as I done all my possible for this mod's making.
Best regards.
I have a question: Is compatible with the Percy's ROM and kernel?
danielcuervog said:
I have a question: Is compatible with the Percy's ROM and kernel?
Click to expand...
Click to collapse
Yes, it is.
Best regards.
Nice.... New update is much stable and faster.
BlackGunZ said:
Second changelog - Thanks @raisul2010.5396 for some ideas :
Added calculated LMK's minfree/adj and Android's OOM flags (which are both synced with each other).
Added build.prop flags for several purposes :
Overall performance improvement.
Battery life improvement.
Better scrolling.
Call related improvements (Reduced proximity and ring delays, enabled Adaptive Multi-Rate Wideband for a better call quality, mobile data's speed increase).
Updated again memory management, filesystem and entropy tunings.
Updated again debugging disable script.
Please, I'm tired of the feedbacks lack. Try to understand my situation as I done all my possible for this mod's making.
Best regards.
Click to expand...
Click to collapse
Will test it soon, and add the link to your thread in tweaks section of my ports
good tweak for this lil device,maybe its cooler to have a cleaner in it too for clean junk files and other things like that on boot,when needed i can give u a lil help for this,keep it up.
--SIGNATURE--
Final changelog
Updated LMK's minfree/adj and Android's OOM flags (RAM management). Thanks a lot @ImbaWind !
Updated build.prop flags (Better UI and better performance).
Updated again memory management, kernel and entropy tunings (it does the same as the well-known Seeder scripts).
Updated partitions mount options.
You will be impressed guys (@raisul2010.5396 - @Arkonite - @-CALIBAN666-) !
i am using hyperion 9 beta and i flashed this zip file but it takes time much less than 5 seconds even u can say that it flashes the whole zip file in 2 seconds only. it means it didn't flashed on my rom correctly...or it is?
Aryanyadav9 said:
i am using hyperion 9 beta and i flashed this zip file but it takes time much less than 5 seconds even u can say that it flashes the whole zip file in 2 seconds only. it means it didn't flashed on my rom correctly...or it is?
Click to expand...
Click to collapse
The whole content of the mod is contained in the init.d script file, that's why the installation is very fast. Mount your /system partition, install the ZIP and check the log file after the reboot in the /data partition.
Edit : I did a very small update again to the ZIP package, I corrected a typo.
Best regards.
BlackGunZ said:
The whole content of the mod is contained in the init.d script file, that's why the installation is very fast. Mount your /system partition, install the ZIP and check the log file after the reboot in the /data partition.
Edit : I did a very small update again to the ZIP package, I corrected a typo.
Best regards.
Click to expand...
Click to collapse
ok i got it right now, Tysm

[port] l speed for nokia x2

This L SPEED IS MADE By. #PAGET96
#MALTONATOR
For more details and downloads go to http://forum.xda-developers.com/showthread.php?p=58598266
L Speed is a mod that combines some scripts and little tweaks in one package which is aimed to improve performance, reduce lags and expand battery life.
Originally developed for the LG L Series and Nokia X2, now this mod is expanded and modified accordingly to run on any device!
This mod will work on any device.
All you need to ensure is that your phone is running Android!
It will work from Android 2.3 (Gingerbread) to Android 6.0 (Marshmallow)
DO NOT USE THIS MOD WITH OTHER MOD, CLEAN UP YOUR init.d FOLDER BEFORE FLASHING!
If you're updating from previous versions, you don't need to do anything, the script will do everything automatically
User friendly (clear menu in Terminal Emulator)
Less RAM usage through zipalign
Better Performance
Less lags with LMK Tweak and various VM Tweaks
Faster SDCARD Read/Write speed
Cleaner script for cleaning system
Better battery life
CPU tuner
Battery calibration
Seeder
Kernel tweaks
FS Trim
No more ads, host file updated
How to clean up init.d
Use a root explorer as File Explorer)
* go to root directory ( / )
* navigate to /system/etc/init.d
* Open init.d folder
* Delete all files from other mods (e.g. zipalign, sqlite, setpermissions, System tweaks, etc.)
* Done! Optionally, do a reboot for safety measure
Requirements
* Root Access
* init.d support (Users without init.d just flash the mod, but SuperSU is needed)
* Custom Recovery (such as CWM or TWRP)
- Mod will not be properly flashed on some device with TWRP because the recovery doesn't have /tmp folder
* Minimal ~10MB free space on system partition
How to install:
Before flashing please take a backup to avoid any incompatibility issues. (Just in case)
1. Change SElinux to permissive*IMPORTANT* (but no need for Nokia x2 because we already have it)
3. Reboot into recovery mode
4. Flash zip file
5. Reboot
6. Profit!
L Speed menu: (check script, L Speed Wizard, changelogs, uninstall)
Download Terminal Emulator from Play Store
Open it and type:
su
LS
You can BOOST your device directly from teriminal emulator
Thanks to
*@Paget32
XDAevDB Information
L SPEED, Tool/Utility for the Android General
Contributors
Yasat nokiax2,Paget96, skyinfo, F4uzan, aidasaidas75
Source Code: https://github.com/Paget96/L_SPEED.git
Version Information
Status: Stable
Stable Release Date: 2015-09-18
Created 2015-02-11
Last Updated 2015-09-18
What's this? There is already a thread for l speed.
Yes, but not in Nokia x2.☺
Sent from my ara
There is no thread for l speed for a certain device because it's made for all devices.
Totally time pass mod....i tried in cm11 no speed improvement i think i makes my phn more laggy now
Same problem.....
please use wisely guys. it works fine for me
yasat nokiax2 said:
please use wisely guys. it works fine for me
Click to expand...
Click to collapse
It performs good but not too good.....in cm11 before install l speed scroll lags and also after install this prblm occurs.....no chng
@yasat nokiax2 what exacktly to download from the zips because there is a lot?
https://www.androidfilehost.com/?fid=24269982086995056
Try that @Ahmed X
its laggy.. **** -_-
sonic.exp said:
its laggy.. **** -_-
Click to expand...
Click to collapse
Hey bro, can you please let me know which settings you used. Sol that we can solve that lag. Thank you!
@yasat nokiax2 bro......after flash play store sometime my phn gets leggy but after lock the screen and on its runs smooth how to solve......?
Pawan987 said:
@yasat nokiax2 bro......after flash play store sometime my phn gets leggy but after lock the screen and on its runs smooth how to solve......?
Click to expand...
Click to collapse
Hmm. Do you have good storage bro. I mean like >600mb internal storage?
yasat nokiax2 said:
Hmm. Do you have good storage bro. I mean like >600mb internal storage?
Click to expand...
Click to collapse
Yes i have
And what about mem card?
If you have more that 1gb in your mem. Card then download a app called ram expander from browser since its paid app. Open it and swap your wish in your mem. Card. Don't forget to keep 100% swappiness and autorun on. After completed reboot your device.
yasat nokiax2 said:
And what about mem card?
Click to expand...
Click to collapse
Yes mem crd also has 2-3gb free space
---------- Post added at 05:58 PM ---------- Previous post was at 05:55 PM ----------
yasat nokiax2 said:
If you have more that 1gb in your mem. Card then download a app called ram expander from browser since its paid app. Open it and swap your wish in your mem. Card. Don't forget to keep 100% swappiness and autorun on. After completed reboot your device.
Click to expand...
Click to collapse
I will try....thanks bro for help
Why y bee deleted all things...what happened??yasat
Pawan987 said:
Yes mem crd also has 2-3gb free space
Click to expand...
Click to collapse
Yeah try that . it may work. Let's me know the result bro

[KERNEL] BitO-K Kernel for Xiaomi Mi Mix (lithium) [009]

This kernel was built originally only for private use, but some of you have asked for it so I've decide to share.
I'm not responsible: You use at your own risk.
This kernel is based on latest LineageOS source code, with only a few tweaks in config file and maybe any external commit. It's more a "proof of concept" than a development by itself. My philosofy is "keep it simple"... I don't look for a "overloaded super-kernel with steroids"... if you want many features (exotic governors, OC, etc...) and "bleeding edge" functionalities there are some good alternatives made by good devs here so this kernel is not for you. Maybe other kernels can benefit by this approach in the future.
The approach for BitO-K is a light and stable kernel optimized via some basic params in kernel config and built with latest Toolchain (TC) to get a very optimized code for our device's architecture.
Fronts attacked: Task scheduling (SMT enabled), task efficiency (CleanCache/FrontSwap and other minor tweaks) and IO optimization (the only commit you can see ATM in my source branch) and, depending on version, latest Toolchains from Linaro or UBER. ATM no more "magic"...
*In my personal device I'm also testing with /data and /cache partitions on F2FS instead of EXT4 (this also helps...). Maybe new thread in the future about this...
Download
You can get latest version here.
Installation
Make backup
Install via TWRP
Wipe Dalvik/Cache
Reboot and profit
Notes
You can disable thermal control bins from xiaomi to avoid some lag if you get your CPU hot... Revise your config to be sure you don't get a brick...
You can install on any ROM, but if MIUI based, then you can get some features not to work, like WIFI, etc... If you want to test on MIUI, you have info here, thx to @Hen Ry
How to delete thermal control binaries by Xiaomi
You need root permissions (I suggest Magisk 13.6+)
Go to /vendor/bin
Delete (I suggest to move to a backup folder into /vendor/bin or rename files, not delete):
perfd
thermal-engine
Additonally you can delete (or move/rename to *.bak) file:
/etc/thermal-engine-8996.conf
My Kernel Settings (Kernel Adiutor)
Not necessary the best ones, only the ones I usually set (battery/performance balanced, smooth behaviour, almost total lag free):
CPU BIG MAX: 1900 MHz
CPU LITTLE MAX: 1440 MHz
GPU MX: 560 MHz
Governor: Interactive
Other minor tweaks (sometimes I set them):
IO: Disabled statistics
...
Source Code
https://github.com/BitOBSessiOn/android_kernel_xiaomi_msm8996
How to convert FS's from EXT4 to F2FS (IO performance improvement)
Be prepared to break it all... Again: at your own risk
Your TWRP must support F2FS (look for my latest TWRP-MROM )
Your kernel (on primary or secondary) must support F2FS (usual if LineageOS based)
Your system (on primary or secondary) must support F2FS mounting (fstab.qcom file updated with F2FS entries for /cache and /data ) (usual if LineageOS based)
Make a backup of ALL your data you want to keep (/data partition via TWRP backup + DCIM, WhatsApp folder, etc... ) (I suggest copying/backup via USB from TWRP)
In TWRP go to: Wipe / Advanced Wipe / Change or repair file system / Change file system for /cache and /data and select F2FS
Restore your /data partition from TWRP backup and manually copy your extra folders (DCIM, Whatsapp, etc...)
Reboot and profit
Testing! :highfive:
Behaving awesomely both on RR and AICP, the two roms I've tested it so far with some minor kernel auditor tweaks.
Thanks dev!!!
Awesome with @marchetto96 ViperOS!!
Testing with LOS. So far so good. Thanks Dev
albertoduqe said:
Behaving awesomely both on RR and AICP, the two roms I've tested it so far with some minor kernel auditor tweaks.
Thanks dev!!!
Click to expand...
Click to collapse
Hello Mate. May I please ask if you can share the tweaks / config in Kernal Audiutor ?
It's all placebo or its doing its job very well and very quietly. Either way, its not breaking anything or making anything worse, so bravo.
VerucaSalt said:
Hello Mate. May I please ask if you can share the tweaks / config in Kernal Audiutor ?
Click to expand...
Click to collapse
Governors to interactive. CPU max to 1900 and 1440, GPU max to 560. Thermal bins deleted.
It's not my idea though, I just learnt and copied from the boss
Happy tweaking!
Sent from my MIX using Tapatalk
albertoduqe said:
Governors to interactive. CPU max to 1900 and 1440, GPU max to 560. Thermal bins deleted.
It's not my idea though, I just learnt and copied from the boss
Happy tweaking!
Sent from my MIX using Tapatalk
Click to expand...
Click to collapse
How to delete thermal bin?
rhong said:
How to delete thermal bin?
Click to expand...
Click to collapse
OP updated with little howto.
How to jump from EXT4 to F2FS
Second post updated with a little guide: How to convert FS's from EXT4 to F2FS (IO performance improvement)
BitOBSessiOn said:
Second post updated with a little guide: How to convert FS's from EXT4 to F2FS (IO performance improvement)
Click to expand...
Click to collapse
Cheers. I'm going to try this F2FS mod out but it's going to take forever just to copy everything off my phone (256GB model, almost full). If I switch data to F2FS will it kill the encryption (I don't want it to be encrypted anyway)? If not, I may as well get rid of it now when all my personal files are backed up to my PC.
gavin19 said:
Cheers. I'm going to try this F2FS mod out but it's going to take forever just to copy everything off my phone (256GB model, almost full). If I switch data to F2FS will it kill the encryption (I don't want it to be encrypted anyway)? If not, I may as well get rid of it now when all my personal files are backed up to my PC.
Click to expand...
Click to collapse
Ummhhh.. I always assume an unencrypted scenario... but indeed you lose encryption when reformatting to another FS, you must re-encrypt after formatting (target FS must be encryptable).
BitOBSessiOn said:
Ummhhh.. I always assume an unencrypted scenario... but indeed you lose encryption when reformatting to another FS, you must re-encrypt after formatting (target FS must be encryptable).
Click to expand...
Click to collapse
I copied everything off, took a backup of data in TWRP and copied it to the PC too. Wiped data/cache, changed both to F2FS and rebooted into recovery. Copied the data backup back to the phone and restored (gave a warning about it being from an EXT4 source but it restored ok). Rebooted into Resurrection Remix and in the settings it still says it's encrypted. To get it decrypted I had to use the 'Format Data' option in TWRP (as opposed to ticking data and wiping it).
Between the new kernel, some tweaks in EX Kernel Manager (mainly ondemand governor for CPU and performance for GPU), and decryption, I'm getting the highest Antutu scores I have for months. Just got 156k (60477/53925/31252/10475). Now I just have to wait while it copies 200GB+ of stuff back to the device.
gavin19 said:
I copied everything off, took a backup of data in TWRP and copied it to the PC too. Wiped data/cache, changed both to F2FS and rebooted into recovery. Copied the data backup back to the phone and restored (gave a warning about it being from an EXT4 source but it restored ok). Rebooted into Resurrection Remix and in the settings it still says it's encrypted. To get it decrypted I had to use the 'Format Data' option in TWRP (as opposed to ticking data and wiping it).
Between the new kernel, some tweaks in EX Kernel Manager (mainly ondemand governor for CPU and performance for GPU), and decryption, I'm getting the highest Antutu scores I have for months. Just got 156k (60477/53925/31252/10475). Now I just have to wait while it copies 200GB+ of stuff back to the device.
Click to expand...
Click to collapse
Battery? Stability? Smoothness...? Thx for feedback
BitOBSessiOn said:
Battery? Stability? Smoothness...? Thx for feedback
Click to expand...
Click to collapse
I always found ondemand to give the smoothest experience and that's exactly what I'm getting here. It feels like being back on MIUI (that's a good thing).
I can't give any input battery-wise as I'm rarely away from a charger and don't care about battery life (within reason obviously), so I never monitor it.
As for stability, I did temporarily lose WiFi connectivity (other network devices were fine), and when that dropped out I lost mobile data too. This happened when I was transferring the last batch of files I forgot to restore via USB. I've been using RR for weeks and it has never happened before, but it could just be a one-off. It took a reboot to resolve.
I have noticed the device can get very warm when transferring a large number of files over WiFi. It has always been like that regardless of kernel. I had the case on when I lost connectivity so I couldn't feel if it was that warm, but maybe that sustained high temp buggered the WiFi. If it happens again I'll let you know.
I should note that I had the thermal files removed (I've always deleted them from I first got the device). I also usually run the OC'd DragonXia kernel so my device is no stranger to a little extra heat.
I'm using it for a day now. so far so good. Latest Mokke rom, working flawlessly. using ondemand governor with stock clocks, CFQ and I/O Scheduler with 2Mb read ahead value.
only odd thing I have noticed so far is that WiFi signal seems to be a bit weaker. In places that I had connectivity before, now I'm not in range.
Otherwise all good! Keep up the good work, and thanks man!
BitOBSessiOn said:
How to convert FS's from EXT4 to F2FS (IO performance improvement) (-- WIP --)
Be prepared to break it all... Again: at your own risk
Your TWRP must support F2FS (look for my latest TWRP-MROM ) -- perhaps 4/128GB pending, WIP --
Your kernel (on primary or secondary) must support F2FS (usual if LineageOS based)
Your system (on primary or secondary) must support F2FS mounting (fstab.qcom file updated with F2FS entries for /cache and /data ) (usual if LineageOS based)
Make a backup of ALL your data you want to keep (/data partition via TWRP backup + DCIM, WhatsApp folder, etc... ) (I suggest copying/backup via USB from TWRP)
In TWRP go to: Wipe / Advanced Wipe / Format Partition and select /cache and /data and format to F2FS
Restore your /data partition from TWRP backup and manually copy your extra folders (DCIM, Whatsapp, etc...)
Reboot and profit
Click to expand...
Click to collapse
my rom is aicp,after converted,i can not mount the data,but the speed is really fast
315602494 said:
my rom is aicp,after converted,i can not mount the data,but the speed is really fast
Click to expand...
Click to collapse
Weird... seems that AICP does not include F2FS entries in fstab.qcom file...
If I have time I will try to make a zip to inject updated fstab.

Categories

Resources