Lagfix app


Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#2
Im using fstrim binary and a init.d script to trim 3 partitions after boot.
Works nice.

Wysłane z Xiaomi MI 2
 
Likes: xeGox

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#4
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)
 
Jan 9, 2013
507
96
65
#5
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
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#6
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.
 
Jan 9, 2013
507
96
65
#7
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
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#8
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.
 
Oct 13, 2012
282
23
40
#9
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
 

xeGox

Members
Feb 26, 2013
401
58
62
#10
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°
 
Jun 6, 2013
904
243
80
#11
@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 ?
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#12
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.
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#15
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
 
Oct 13, 2012
282
23
40
#18
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
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#19
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.