Lagfix app


Im using fstrim binary and a init.d script to trim 3 partitions after boot.
Works nice.

Wysłane z Xiaomi MI 2
 
  • Like
Reactions: xeGox
Im using fstrim binary and a init.d script to trim 3 partitions after boot.
Works nice.

Wysłane z Xiaomi MI 2
What's the init.d file?

Inviato dal mio Xiaomi Mi-4s...con tapatalk 26°
 
Its a directory. in /etc (but not there by default). Everything you put there is executing during boot.
A bash scripts are allowed there. But our MI-2 doesnt have init.d support (we might create that in future for miuiandroid builds)
 
Its a directory. in /etc (but not there by default). Everything you put there is executing during boot.
A bash scripts are allowed there. But our MI-2 doesnt have init.d support (we might create that in future for miuiandroid builds)

nah isn't necessary xiaomi update soon the xiaomi to 4.3
 
Well maybe not but im already doing that since few months on my rom ;p
And MIUI said they are comparing 4.2 and 4.3 - they didnt say yet that MI-2 will get 4.3.
 
Well maybe not but im already doing that since few months on my rom ;p
And MIUI said they are comparing 4.2 and 4.3 - they didnt say yet that MI-2 will get 4.3.

i don't see the xiaomi words is only my thought. Like last year with mi1 and mi2 they do the same thing with mi3 and mi2 this year i think
 
Yes they will do for sure. But question is 4.2 or 4.3? I suppose it will be 4.2.1(2) for MI-2.
 
That sucks. 4.3 is much better. Revived my galaxy nexus NP.

@ Acid. Does your script fstrim /system? I'm terrified of messing with /system on a device with two system partitions.

Sent from my Xiaomi MI2S
 
Its a directory. in /etc (but not there by default). Everything you put there is executing during boot.
A bash scripts are allowed there. But our MI-2 doesnt have init.d support (we might create that in future for miuiandroid builds)
I know....
I wanted to know the script exactly ;-)

Inviato dal mio Xiaomi Mi-4s...con tapatalk 26°
 
@Acid: would you mind sharing that script with us here pls ? we would also like to use that script instead of app !
Is it enough to put that file in init.d folder ?
 
For MI2? No.. you have to make init.d support also. Fix certain files. Its not for users to do that.

Script is simple:
Code:
su fstrim -v /cache
su fstrim -v /data
su fstrim -v /system
Also fstrim binary needs to be put in /system/bin to be able to call it from script without full path.
 
But people... Why? I have old MI 2 and don't see much difference with fstrim.
And you guys with S600 CPUs? C'mon..


Wysłane z Xiaomi MI 2
 
  • Like
Reactions: xeGox and deini
But people... Why? I have old MI 2 and don't see much difference with fstrim.
And you guys with S600 CPUs? C'mon..


Wysłane z Xiaomi MI 2

Its definitely not a placebo. After flashing miuiandroid over the xiaomi release, there was probably a lot of junk leftover.

Sent from my Xiaomi MI2S
 
Well I can implement fstrim for aries just to make users happy they have something from 4.3...
But It won't make visual difference. Trim is extends flash memory life and holds its speed over time.
In my rom fstrim is executing each reboot (or just new version install). On my laptop trim is doing also each reboot as I have SSD disc.
 
Pry better to leave it out. I wonder what xiaomi will be giving us now that kit Kat was announced.

Sent from my Xiaomi MI2S