yashsingh1/xdaforums huggingface dataset:
[HTC One X] AuxLV:
I'm fixing force closes now, sorry.

P.S. Will you be online for a while so I can send you a patched version to test it?
[HTC One X] gpzbc:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Yes, I will do my best to watch for it.

I should also mention that the updated version works fine on my Nexus 7 running CM 10.1 and Franco Kernel.

Sent from my Nexus 7
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Yes. I got the same problem.
[HTC One X] AuxLV:
So here's the patched version. Uninstall 1.4, install this patched one, run fix and tell me what you see in log. I hope it won't crash.
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Tested on S3. This is what I got.

It worked fine 2 days ago on the same ROM.
[HTC One X] AuxLV:
Oh, I see... Uber-strange... Will think how to fix it, I have an idea!
[HTC One X] gpzbc:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Just tried it. The first time it FC'd but no messages. The second time I ran it, it ran but then I got a message that Trim is not supported in cache.

Edit: I had the same results as the post before me.
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

But this time it didn't FC like before. It just didnt do a thing.
[HTC One X] AuxLV:
Such a dumb mistake! Oh lol! Another test version in a few mins.
[HTC One X] AuxLV:
Try this one please, it should work just fine!
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

No FC. Cache trimed this time. But Data is still not supported.
[HTC One X] gpzbc:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Just tried it. It force closed while waiting to gain su permission. Ran it again and it is the same result as the earliest version. See screen shot
[HTC One X] AuxLV:
Oh, I hope this one will do fine with detection and I'll look for root issue. RootTools are kind of unstable after all...
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

It didn't give any errors this time and data is not greyed out after but it also didnt say that data partition was trimmed.
[HTC One X] gpzbc:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

No fc while waiting for su permission, and I think it ran as it should. The last message (partition trimmed) seems to have come a little late. See screenshot.
[HTC One X] AuxLV:
It is right after all the output (: I'm digging RootTools sources now, something is wrong there. And this library is the source of the problem. I'll try to understand how to make it work properly, but emergency fix will be uploaded - looks like no more false reports.
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

I clicked a couple of times more and look what happened.
[HTC One X] AuxLV:
Yeah, I know. I'm uploading emergency fix now, then I'll fix this one too (:
[HTC One X] patp:
CM10 SE

Amazing improvement, thanks so much. It took no time at all to run, how can it do so much so quickly?

Any advantage to also doing it for /system?
[HTC One X] TAGTRAUM:
Antutu w/out trimming :p
[HTC One X] DeeZZ_NuuZZ:
which rom? i use renovate with stock boot...i hope i didn't messed up something with the app pimp my rom :D but don't know why mine is now so low ...i had some days ago over 15k ...i think 15890 or so...
[HTC One X] AuxLV:
Only if you do a lot if hacking there. I believe normal people don't do that in sane mind.
[HTC One X] liorderei:
Re: [APP] LagFix for Nexus 7 & HTC One X

Wow man it works like a charm, its amazing!!!
[HTC One X] zombiefly:
another quality fix from XDA for something HTC would never confirm as a bug... I'm so glad this site exists :)
[HTC One X] beanbean50:
definite improvement using viperx jb but uninstalled it due to the spyware/adware you've added (DoubleClick Agent and Admob)

I wouldn't mind paying for a pro version if you remove the spyware/adware
[HTC One X] Goku80:
spyware/adware is a no no for me:cool: but agree with what you are saying...if the OP would make it PRO then i would gladly throw him my money if it means making my phone even better
[HTC One X] zombiefly:
oh! i hadn't realized. +1 on the paid app version please! I had it linked in my sig, removing it for now :(
[HTC One X] Milamber33:
Quick question for the OP, I see that this requires (or at least strongly recommends) a reboot after running, is there any way to avoid having to do that? Would it require kernel support?
[HTC One X] chrone:
Re: [APP] LagFix for Nexus 7 & HTC One X

Thanks for bringing this up. Didn't notice the ads since i block its internet access with avast firewall. Would love to see ads free app too! :)

Sent from my Nexus 4
[HTC One X] miniudavid:
AW: [APP] LagFix for Nexus 7 & HTC One X

Wtf. This tool is great. My SD took allmost 30 secs Rio get up after Boot before. Now it was done in 1 or 2. Thanks man
[HTC One X] jefbeck:
Re: [APP] LagFix for Nexus 7 & HTC One X
[HTC One X] chntpw:
hey, you said that :

"P.S. If your ROM mounts /data with -discard then this app is NOT needed! Mounting with -discard causes brickbug on some devices, so I DO NOT advise using -discard."

how do i know that my ROM do that?
[HTC One X] shree.cse:
Re: [APP] LagFix for Nexus 7 & HTC One X

It worked and I rated 5 stars in the play store.
[HTC One X] AuxLV:
I can't publish paid apps, my country is not allowed to and I couldn't find any trusted person to help me. And it is kind of stange attitude to hate app which really helped you for small banner. Most of the internet is flooded with ads, how do you browse it?

So it stays the way it is until I find a solution for publishing.
[HTC One X] AuxLV:
Run mount command without parameters in terminal, it will show you all mount points and their options.
[HTC One X] chrone:
not to disrespect, i'm newbie to these ads thing, do the ads come from google admob and google doubleagent? and how frequent will it be displayed?

i do hope the ads only run whenever i open the LagFix app and not running for 24/7 in the background whether LagFix is opened or closed. i'm still using your app, though. love your work here! :)
[HTC One X] Kroutnuk:
Here is a screenshot of the app which doesn't work.

Bindroid JB sense 4+ rom.
[HTC One X] AuxLV:
Ads are from AdMob and TapForTap. They are simple banners, they are active only when you see them while using app. There is NO any crap like AirPush or other intrusive bs. Ads can be easily blocked with AdFree/AdBlock apps.
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Looks like it's acting up the first time because it waits for the root and works the second time because it already got it.

Maybe it's just a matter of making a delay between asking for root and the actual trimming.
[HTC One X] Jewremy:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Latest version doesn't output how much data was trimmed. Feature or bug?

Data partition seems to take a few seconds to trim.
[HTC One X] FDisk80:
Yea, it was nice to see some details of how much was done.
[HTC One X] AuxLV:
Too many people were confused by this output. I'm tired of dumb complains and bad ratings of brain-damaged people (:
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

I know what you mean.
[HTC One X] AuxLV:
The thing is that output depends on hw/kernel combo, it may show blocks, bytes, trimmed or free left. It is mentioned in FAQ. But no one reads (:

In the last few days I realized that placebo apps are way better to make - people never complain about them...
[HTC One X] c5satellite2:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Maybe an option to enable it?

Why is system unchecked by default? Any rules, recommendations, advantages or disadvantages with fstrimming system?
[HTC One X] FDisk80:
Because usually nothing major changes in system unless you update your ROM.
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Because system rarely change and if it is read only it will throw error.
[HTC One X] akpe:
Getting the "operation not supported on transport endpoint" error on latest premium version.

Weird thing is, it used to work with a previous version, don't remember which one exactly.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

And on what device this occurred?

Sent from my Nexus 4
[HTC One X] akpe:
Bah, keep forgetting the basics, HTC Sensation on ICS with latest ARHD
[HTC One X] kye04:
I have the first version....

Interesting is that on market it says i could not download this app because it is not working in my phone (defy+ )

But downloaded the apk and it works.

It does not have the schedule thing.... but manually always works...
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

There were reports that app does not work on your device. I'll enable it tomorrow if you wish.
[HTC One X] mw86:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

This is the truth and I am sorry you had any users like that. I think if those users read more they would never give a bad rating for your app. We need to be able to rate how poor a user's judgment is ftw! :p
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

I'll upload older version for you somewhere tomorrow so you can check.
[HTC One X] kye04:
version 1.1 i use on my defy + and it works perfectly
[HTC One X] Draxion:
LagFix and the Thunderbolt (ADR6400L)

First... Thank you for an amazing app! This works great and has given new life to my Thunderbolt running ICS. Earlier versions of the Free app worked fine on my device, and the results were VERY noticeable. I always performed a reboot after to avoid things like corrupted text, etc. After the reboot, AMAZING! After resolving the following problems, please add it to your list of device that benefit from the use of LagFix.

Now for my problem... The latest update to the Free version has 'ghosted' out the options for /data and /cache. I tried running with /system selected but I get an error saying trimming of all three paths is not supported on my device. I purchased the Premium version (was planning to anyway) and the results are a little different. I'm now able to select all three options (although I normally leave /system unchecked), but the app usually crashes on the first attempt. Try again and I get a normal run with the following exception, it seems to take considerably longer to show the results and their values (directory name and quantity trimmed) are missing altogether, just two "Partition was trimmed." lines. Is this normal?

**<UPDATE> I just found the answer to the resulting "Partition was trimmed" over in the HTC One X forum. This is now the normal response.**

And one request... Can a reboot option be added to the scheduler?
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Yeah, I'm working on all these issues.
[HTC One X] rgshah3:
Your kernal doesn't support TRIM error. Any help?
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Which device/kernel?
[HTC One X] AuxLV:
I've rewritten everything, anyone having issues with detection etc, please try this test version and report. Please uninstall Market version before installing this one.
[HTC One X] kye04:
Trim not supported by my hardware ....

Still the 1.1 version works fine...
[HTC One X] AuxLV:
What does the app show?
[HTC One X] kye04:
attached
[HTC One X] AuxLV:
Well, as you can see underneath the popup, app tells you that trimming is not supported (not a typewriter message). So it never worked (:
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Works perfect here.
[HTC One X] AuxLV:
Glad to hear that at last!
[HTC One X] a1exus:
I'm using Galaxy Nexus (toro), after running this app, do I need to reboot my device?
[HTC One X] AuxLV:
I think no.
[HTC One X] kye04:
Why on certain phones works and on some other not ?

On Wildfires s it gives me the typewritter ...

Also can u please remove the typewritter message an put something more "normal" ?
[HTC One X] AuxLV:
It depends on a kernel. Benchmark your memory, lagfix it, benchmark again - everything OK? No need for reboot. Speed did not rise above 1mbs for seq. write? Reboot!
[HTC One X] geoffcorey:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

That is not from his app, bit rather the fstrim binary and is the resulting os error message. This cannot be replaced (nor should it).
[HTC One X] akpe:
TRIM is not supported an all three partitions.

HTC Sensation with latest DarkForest rom and latest Bricked kernel
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Was it ever working?
[HTC One X] mw86:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

I wasn't sure how many you wanted to test but here is mine. Worked perfectly and reboot was successful with no side effects as your older versions. Pic below

Samsung Galaxy S3 SPH L710

Kt747kernel, Android 4.1.1, kernel 3.0.56
[HTC One X] carberoz:
hi..

does this app fix the problem permanently?

or this problem will be back? if the problem will be back, how long the problem will back since we use this app?

one more question..

is this perfomance issue hardware of software issue? thanks :)
[HTC One X] AuxLV:
Memory should be trimmed regularly. It will be back as soon as you write some new files. It depends on how often you write new data to /data partition. I personally trim my phone once a week.

The thing is that trimming is needed on all solid memory types, but different memory types uses different mechanisms for trimming. For example, SD cards use function called SD_ERASE and it is automatically called when needed by all known to me operating systems. Newer eMMC chips use TRIM function like in SSD drives. Desktop OSes call TRIM on a regular basis, like once per day or so. This includes desktop Linux. But Google devs forgot about it for some reason. So it can be called a software "bug" by Google/HW vendors.

What I did? I took fstrim app from desktop Linux, cross-compiled it for Android and packed inside nice looking app (: I'm also preparing patches for CyanogenMod so that fstrim would be included for devices with such eMMC chips and run automatically like it does on desktop systems. But I need to spend some time understanding how Android and CM works and where to put it correctly. And how to submit patches and so on, so bear with me.
[HTC One X] akpe:
Yup, an older version did. I remember searching this thread for "sensation", after I found sanderg's post which confirmed it was working on Sensation with ARHD I gave it a try :)
[HTC One X] AuxLV:
I did not change fstrim binary since day one. If it was writting something like "not a typewriter" or anything else except for "X Bytes was trimmed" then it did not work. Now only info popup is added in such cases now.
[HTC One X] carberoz:
thanks for your reply :)

one more.. it is fine if i run this app frequently like once a day or twice a day?

thanks
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

I suggest to use it wisely, once a week is a safe bet for the sake of your emmc life span. Use it at your own risk. Hehe :D

Sent from my Nexus 4
[HTC One X] AuxLV:
Well, I run it multiple times per day for testing purposes and don't have any problems (:
[HTC One X] markop90:
R: [APP] LagFix (fstrim) v1.4 2013.02.02

In fact if discard mount option runs trim command after every erase (thing that doesn't happen on my device :( ), I guess there are no problem for running lagfix often :)
[HTC One X] chrone:
+1. i also hope the dynamic wear levelling always kick in despite fstrim or not. :)
[HTC One X] fridlack:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Hi all

I have a request about the functionality in long press to change to second layer in pie

Attached you can find a screen with how it's working now

1- you move to any pie and hold to activate the long press, second layer is showed

2- if you move between the pies second layer disappears and need to hold again to show second layer again

Would be great if the second layer works as follows

1- you move to any pie and hold to show the second layer

2- second layer hold on until you move back to center of the pie, but you can move between pies without need to hold it again, and when you move to center first layer is showed again

I think it's easy to use the second layer with this option

How I explained clearly

Best regards

FriDLaCk
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

You missed the thread, aren't you? (:
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Lol. I read all his post and realized it was not fstrim related. Haha

Sent from my Nexus 4
[HTC One X] fridlack:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Ok, i think I need some sleep, sorry guys

FriDLaCk
[HTC One X] darklordkk:
i9000 Galaxy S

Someone here was asking whether this is installable and usable on a i9000 Galaxy S (international). First up, it's not installable from the Play Store. A 942 error comes up. So I installed it from the apk on this thread. And.. It works.. Though as you can see from the attached pic, it doesn't work on all partitions. As for the speed difference, I could gauge "some" speed up and less lags here and there, but my data partition is around half full (890MB or so out of 1.6GB) so perhaps the speed bump isn't much. No Brickbug reared it's ugly head on my phone. I ran it on Cyanogemond 10.1 which of course does not use the Samsung RFS file system.

Edit - I can't see the pic i've attached. So, here's the output of the app.. (The apk i've installed is version 1.1)

# fstrim -v /data

636157952 Bytes was trimmed

# fstrim -v /cache

fstrim: FSTRIM: Not a typewriter

System partition wasn't checked for trim
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

No problem, dude. Hehe :D

Sent from my Nexus 4
[HTC One X] AuxLV:
I'm glad that it worked on your device, but there are so many brickbug affected devices, so I as an app dev DO NOT WANT to risk. So app is not available in market. Being responsible for bricks is not good on karma and there are some already.

I will add new version to OP when in comes out for risky guys like you (:
[HTC One X] uf21:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

I'm a complete noob with this.

What will happen if I also tick the 'system' checkbox and hit run. Will I mess anything up?

I ran default first did androbench test then ran lagfix again and the second time around androbench write and read speeds were much slower than the first. Why?
[HTC One X] darklordkk:
That'd be good.. Am sure there are plenty of "risky guys" who'll test out stuff. Considering the i9000 is a 2+ year old phone now, it's not that risky anyway :p

I thought the "brickbug" only afflicted Exynos 4xxx chipsets anyway :confused:
[HTC One X] chrone:
if data and cache are successfully fstrimmed than it's safe to say nothing will happen on /system too.
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Slower? Reboot, wait 5-10 mins for system to settle and re-test.
[HTC One X] markop90:
R: [APP] LagFix (fstrim) v1.4 2013.02.02

Brickbug is related to emmc nands, not to chipsets!
[HTC One X] uf21:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

My speeds are bad. Why. I attached some images from androbench
[HTC One X] uf21:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

More
[HTC One X] uf21:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02
[HTC One X] azturbomini:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Mine are about the same if not a little lower than yours. My phone runs fine though.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Dude, seriously?

Don't compare your device with the online result, it is biased with kernel parameter tweaking and such thus translates the higher unrealistic iops and throughput benchmark score.

You need to compared your benchmark on a clean slate and after heavy usage (storage near full).

And as always leave 25% of your storage available for over provisioning. Leaving it near full and fstrimming won't help you out.

Sent from my Nexus 4
[HTC One X] qdoba:
Great application, I can see some speed improvements on my galaxy nexus. I currently set the auto trim to happen once every night, is that overkill? What do you guys set your trim schedule to?
[HTC One X] gpzbc:
I set it to trim twice a week, and that is probably a little bit overkill.
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Depends on your usage (:
[HTC One X] R4DK0:
Thank you! Worked on Nexus 7 running 4.2.1.

On another note, is is necessary to run this app more than once? (except you are changing ROMs, kernels)
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Did you read FAQ? Yes, you need to run it once in a while.
[HTC One X] marlonmillamina:
Does it work on xperia Go?

Does it work on xperia Go?
[HTC One X] AuxLV:
Version 1.5 is uploaded to Market and should be available in a few hours. Full app rewrite, not using buggy RootTools lib anymore. Premium version will follow once my publisher wakes up, sorry (:
[HTC One X] ogre_x:
Sv: [APP] LagFix (fstrim) v1.5 2013.02.10

Tried the new version on my Galaxy Nexus. No message, just hanging on the trim command for /data. Any logs I can look at?

Earlier versions were really fast.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.5 2013.02.10

Works great on n4. Clear apps data first before running as posted on gplay.

Sent from my Nexus 4
[HTC One X] qdoba:
Same problem here even with clearing the app data. Will go back to 1.4 for now.
[HTC One X] nitsua98:
Re: [APP] LagFix (fstrim) v1.5 2013.02.10

Working fine on my galaxy nexus
[HTC One X] AuxLV:
All logs are on screen. How long does it hand on /data?
[HTC One X] ogre_x:
Sv: [APP] LagFix (fstrim) v1.5 2013.02.10

It just echoes the command and then nothing.

---------- Post added at 10:19 PM ---------- Previous post was at 10:09 PM ----------

---------- Post added at 10:22 PM ---------- Previous post was at 10:19 PM ----------

A few minutes. Before it was a matter of seconds before I got a confirmation. How long should I wait?
[HTC One X] AuxLV:
A few seconds. fstrim binary was not changed since day one. I know that on some devices trimming data output was returned way after everything else, so logs were looking broken. Try running binary from console, it is in /data/data/com.grilledmonkey.lagfix/files/fstrim.
[HTC One X] tarroyo:
On version 1.5 it says to 'clear app data before running' does that mean clear data in lagfix or clear data in recovery?
[HTC One X] AuxLV:
For LagFix in Settings -> Applications. I forgot to add auto-cleaner, sorry.
[HTC One X] qdoba:
Re: [APP] LagFix (fstrim) v1.5 2013.02.10

Does this really make a noticeable impact on the lifespan of the emmc?
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.5 2013.02.10

By the way, people who have problems - did you check if your kernel mounts /data with discard? CM10.1 for N7 finally comes with discard in latest nightlies! Or maybe you have dynamic fsync activated.
[HTC One X] ogre_x:
Sv: [APP] LagFix (fstrim) v1.5 2013.02.10

I run stock 4.2.1 rooted with SuperSU.

I tried running the command from prompt. Same result, just hangs on the command.
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.5 2013.02.10

I have an idea why some users reported slower speeds after running LagFix previous versions - it did not finish running. The problem with older version is that I used another lib for su and shell stuff and this way LagFix did not properly synchronize with fstrim. So a lot of weird things were happening, like /data trimming output was shown after success message. Some people didn't see it at all.

Right now EVERYTHING WORKS! And all the errors are properly handled. Everyone with lagfix hanging also reports that running fstrim manually also "hangs".

So, just open terminal, run fstrim and let it run - you may go back to home screen. Check like every five minutes. Looks like Samsung failed with memory in Nexus too.

So, check how long it runs, I might move the execution into background service.
[HTC One X] ogre_x:
Hi,

You might just do that. I ran it using adb shell just now and it took about five minutes to complete:

root@android:/ # /data/data/com.grilledmonkey.lagfix/files/fstrim -v /data
4244234240 Bytes was trimmed

Thanks for making this!