21
Jan
lagfix

I have a confession to make: I haven't been using my Nexus 7 that much over the past few weeks. Why? Because it has been suffering from horrible lag. Everything was peachy keen up until the Android 4.2.1 update, but that's a different story for a different day. For now, the lag is the important bit.

LagFix is for rooted devices only.

Then we stumbled across a new app called LagFix, which – get this – fixes lag issues on many devices, like the Galaxy Nexus, Nexus 7, Nexus 4, One X+, and more. Of course, the lag thing is a common issue, and is likely caused by a "well-known TRIM bug," which basically means that storage is "not properly TRIMmed when needed." So that's what this app does. But the technicalities here aren't really what's important to you, are they? You just want to know if it works.

Update: The author of LagFix has posted an in-depth FAQ that covers how the app works, what it does, et cetera. You can find that here.

1 2 3

Well, after using it on my Nexus 7, I'm inclined to say that it makes good on its promise to end lag. After running LagFix and rebooting my device, I noticed an improvement immediately – I no longer have to wait 20 seconds for the display to turn on after hitting the power button, for the screen to rotate, or pretty much anything else that previously took what seemed like forever.

So, in a nutshell, LagFix delivers on its promise to, um, fix lag. It's free in the Play Store, so if you're rooted, there's no reason not to give it a shot.

More info: XDA

Thanks, Alexandr!

Cameron Summerson
Cameron is a self-made geek, Android enthusiast, horror movie fanatic, musician, and cyclist. When he's not pounding keys here at AP, you can find him spending time with his wife and kids, plucking away on the 6-string, spinning on the streets, or watching The Texas Chainsaw Massacre on repeat.

  • deltatux

    Actually, knowing how it actually works is rather important as it'll help ROM developers and also see if it's a placebo effect or not as well.

    • http://www.androidpolice.com/ Artem Russakovskii

      I agree with this.

    • http://www.androidpolice.com/ Cameron Summerson

      Right. I'm not suggesting that how it works isn't important, only that whether or not it actually works is the key here. Those who want to dig in deeper can do so at the "more info" link at the bottom.

    • http://www.facebook.com/people/Aleksandr-Ivanov/734916624 Aleksandr Ivanov

      ROM developers should add discard mount option for /data and /cache partitions in most cases. Permanent discard slows down file deletions a lot, but this is not critical for most mobile users. Desktop Linux users do not add discard for SSDs, they run fstrim once a day from cron to speed things up. Scheduled trimming is coming in next lagfix update.

      fstrim calls ioctl function called TRIM, it is a part of Linux kernel tools.

  • heat361

    What's the effect on battery?

    • Justin Swanson

      Shouldn't affect battery too much. It doesn't manually run in the background. It has to be manually run.

      • heat361

        So this isnt like seeder right?

        • http://www.deathbycone.com Jared Kotoff

          Thats what i was thining at first. This sounds diffrent than Seeder though.

          • heat361

            I just tried it and I didn't see much of a difference.

          • http://www.deathbycone.com Jared Kotoff

            Are you on a rom? Possibly this: "Kernels with -discard mount option are NOT affected!"

          • heat361

            No I'm on stock rooted and unlocked.

          • Caleb Allen

            Is Discard Mount in dev options (if it were to exist in a ROM)?

        • DaveTea

          Its not even remotely similar.

    • Aux MHz

      App does NOT run in background. It gives effect only when 1) you have storage device with TRIM support AND 2) your kernel does NOT have discard enabled AND 3) you filled up space on your /data partition. One point missing? App won't do a thing.

  • http://twitter.com/rohanXm Rohan Mathur

    I'm thinking of a word that begins with Pla and ends in something that rhymes with meebo.

    • Justin Swanson

      The theory behind the app is interesting but needless to say, i am also hesitate.

      • QwietStorm

        Son I am disappoint.

      • Elias

        You accidentaly the english.

    • http://www.androidpolice.com/ Artem Russakovskii

      That's most definitely not true. There's a real explanation to all this - look up fstrim and the relevant bugs.

      This is not for all lag - it's for very specific kind of lag.

    • Aux MHz

      20x repeatable difference in benchmarks is not a placebo by any means. And this is why Google added discard mount option to 4.2.1 update for Nexus 7. Some users of custom kernel and ROMs are not so lucky.

      • Caleb Allen

        Discard Mount option? Is that in Developer options?

        • http://www.facebook.com/people/Aleksandr-Ivanov/734916624 Aleksandr Ivanov

          No, it is inside kernel. In RAM disk to be more specific.

  • Olivia

    I'm willing to give it a shot on my Galaxy Nexus... but how about a BatteryFix? Mine has been AWFUL since 4.2...

    • http://twitter.com/oOBlueOo Haunter

      Try the 'Disable Currents' fix (assuming you're not too invested in to. Disable Google Currents, wipe the app cache, and reboot. While I wasn't as thorough as I typically am (before and afters), I felt like it helped the 4.2 battery issues on my GNex.

      • Olivia

        Don't even use Currents - thanks for the tip! Fingers crossed it helps at least a bit.

        • Karthik Kumar

          Exchange Services has a battery bug. Been well documented in XDA forums. Try Disabling it from Manage Apps if you don't use exchange. Or at the very least, delete your account, clear all data and re-setup your Exchange mail

          • Olivia

            I had read about the Exchange bug but I've never used Exchange so I figured it wasn't something I had to worry about, didn't think to disable the service anyway. Thanks!

  • Abhigyan Banerjee

    I might just have been lucky, but I've never had any of the "common" issues that Nexus 7 buyers seem to have had. Mine came with 4.2.1 out-of-the-box.

    • Jason Banich

      Mine has been a nightmare. 20 second lag at times, noticable lag most of the time. I'm on my 4th replacement of the 8gb model.

    • Aux MHz

      Google added discard to 4.2.1, so users of stock 4.2.1 ROM from Google are not affected.

  • JirafaBo

    Now they just need a cute icon to show in the notification bar and lagfix will be as popular as advanced task killer.

    Ill trh it in mg nexus 7 although im hesitsnt to believe. I trust my android popo.

    • http://twitter.com/RvLeshrac RvLeshrac

      I have to use ATK pretty regularly. The GC is pretty useful when it actually causes apps to sleep and cleans up memory, but it almost never does.

      • JirafaBo

        GC?

        • http://www.androidpolice.com/ Artem Russakovskii
          • JirafaBo

            Thanks for the link, but I already know what that is. They come by my neighborhood twice a week.

          • http://www.androidpolice.com/ Artem Russakovskii

            Twice a week? Wow, lucky guy.

        • http://twitter.com/RvLeshrac RvLeshrac

          Garbage Collector. So that memory is *ACTUALLY* cleared when apps are "closed." The problem is that you think every app is well-behaved, always closes when you tell it to, never runs in the background against your wishes, and always properly frees up memory when it does close.

  • http://twitter.com/NothAU Tony

    "Warning! This app should only be used by ADVANCED users! If you do not understand what it does - DO NOT USE IT! You can find fstrim() man in Google and more information on XDA. RTFM before asking any questions or rating this app bad!"

    The very first paragraph in the play store pretty much stopped me using it until I look into it further.

    • http://www.facebook.com/profile.php?id=1745689461 Hal Motley

      Surely the fact it requires root permissions would make you do that first.

  • fixxmyhead

    probably fake like that seeder app. remember that

    • David Shaheen

      the seeder app actually sped my device up though, there was no placebo about it, it was quite noticible

      • fixxmyhead

        The seeder app was proven not to work.

        • Alvin Brinson

          Actually it "works" but not for the reasons claimed. It works by keeping the CPU at full speed all the time because it is constantly running! Thus your CPU doesn't idle, the device feels more responsive. Unfortunately it also eats your battery. The random number generation bit was completely unrelated to the actual effect of the app.

          What it DOES go to show, is that the CPU governors don't ramp up fast enough to be transparent to users.

      • br_hermon

        David, I have to agree with you. I installed it on my N7 and Gnex and noticed on both considerable improvements. Maybe it didn't work for everyone but for some it was definitely NOT a placebo effect.

    • Aux MHz

      This is not a placebo or fake, this is what EVERY desktop OS does! Read Wikipedia at least - http://en.wikipedia.org/wiki/TRIM

    • http://twitter.com/TheChrisGlass Chris Glass

      Nope. Try again. By simply setting the read_wakeup_threshold to 1300~
      you get the exact same results, WITHOUT a service running. Tried on 3
      different devices with varying BUT NOTICEABLE results.

  • MeCampbell30

    This really only works for people that have nearly filled their devices and are now experiencing major lag (for example 3-4 second lag between pressing the power button and the screen coming on).

    This is not a general speed improvement app.

  • Karthik Kumar

    Can anyone confirm that this is downloadable on Cyanogenmod 10? I can't see this when browsing from the phone Play Store, and it's not downloadable even if I push the page from Chrome to Phone.

    • Aux MHz

      Some devices do NOT support TRIM operation, they are excluded by market filters - app won't work on such devices, no need to install.

  • Ivan Lisenkov

    It really speeds up my Nexus S. But I have to apply it on a system partition too.

  • http://www.facebook.com/taylor.labrier Taylor LaBrier

    If you're havin' lag problems, I feel bad for you son. I got 99 problems but my TRIM ain't 1.

    • QwietStorm

      :(

  • Niels

    Too bad it doesn't work for me; this is what it returns for the data and cache partition:
    fstrim: FSTRIM: Not a typewriter
    (HTC Desire still on Froyo)

    • Aux MHz

      Your memory does not support TRIM operation. And does not need it. I'll add Desire to the list of excluded devices.

      • JoshScoffer

        same with the oldie Dext/Cliq :(

      • http://twitter.com/homncruse Aaron Burke

        FYI, same for G2x. I got excited about a potential lag fix...

      • Niels

        Indeed, I came to the same conclusion about 15' after I posted this comment. It's too bad... Thanks for the explanation though! :-)

      • http://www.facebook.com/matcho13579 Matej Farkaš

        same with ZTE Blade

    • Karol

      I have same problem on my galaxy ace (s5830)....

      • Niels

        As Aux MHz said, I think your device isn't supported as well.

  • http://www.facebook.com/larryjasonstorey Jason Storey

    Keep getting error trying to install. Says can't find package. Anyone have apk?

    • Aux MHz

      Device? ROM? APK is in XDA thread. It would be great if you've reported your issue on XDA to keep bug reports organized in one place.

      • http://www.facebook.com/larryjasonstorey Jason Storey

        Vibrant. SlimBean. I looked didn't see will look again. Error is more play store related I think.

        • Aux MHz

          APK is on XDA, I replied to you there.

  • Aux MHz

    FAQ is published! Read on XDA, it will answer questions about how it works, why it works, when it works and when not.

    http://forum.xda-developers.com/showpost.php?p=37029420&postcount=122

    P.S. Cameron, Artem, mb add the link to the post?

    • http://www.androidpolice.com/ Artem Russakovskii

      Will do, thanks.

    • http://www.androidpolice.com/ Cameron Summerson

      Sure thing!

  • Leonardo Pudicomp

    why should we need developers to come up with such smart fixes though? frustrating that google are not being proactive

    • http://www.facebook.com/people/Aleksandr-Ivanov/734916624 Aleksandr Ivanov

      Discard option is in 4.2.1 update for N7. The strange thing is it is not included for N4 (:

  • Paul Tobeck

    Even if Google doesn't drop a fix for this, KLP isn't that far away, so I think I'll just wait. The lag I'm experiencing isn't horrible, just annoying, and it has gotten better after disabling Currents. The screen rotation lag is the worst, taking 2-3 seconds.

  • WestIndiesKING

    Thank you lord jesus! I havent really used my N7 either because of the lag. I have heard its because of the processor on the N7 isnt very good at multitasking. Is that true? I never heard about the trimming issue so i will look to read more about that too. Going to install this today. Thank you so much.

    • http://www.facebook.com/people/Aleksandr-Ivanov/734916624 Aleksandr Ivanov

      I have N7 and HTC One X, both with Tegra3 - no problems with CPU.

    • http://www.androidpolice.com/ Artem Russakovskii

      The processor is great - I have no lag on my 2 Nexus 7s. Any issues you see are almost guaranteed to be software.

  • The Seventh Son

    Sweet baby jesus, this made a MASSIVE difference. I'm running PA 2.54 with Franco Kernel m6 on my Galaxy Nexus and somehow the kernel not have DISCARD built in?? Wtf. Anyhow, my phone is now pretty much as fast as brand new, couldn't be happier!

  • Leo Kanellopoulos

    Isn't that already taken care off by most of the developers? i mean i am running on arhd and never experienced any lag on my hox. same goes for my stock nexus 10.

    • http://www.facebook.com/people/Aleksandr-Ivanov/734916624 Aleksandr Ivanov

      Not most, only some.

  • http://www.facebook.com/nickdrakewhat Nick Drake

    Is this pretty much the same thing as Seeder?

    • http://www.androidpolice.com/ Artem Russakovskii

      No, Seeder doesn't do what this does, and the converse.

  • tbonefsg

    I am also having lag issues with my gnex since the update

  • Caleb Allen

    So is this similar to the Seeder app that popped up a few weeks ago?

    • Aux MHz

      No.

  • Sootie

    Does this mean I can finally use that 3gb I have been keeping empty on my N7?

    • http://www.facebook.com/people/Aleksandr-Ivanov/734916624 Aleksandr Ivanov

      YES!

  • http://www.facebook.com/profile.php?id=867995173 Eduardo Pimentel

    Aux MHz, a couple of questions about LagFix that is not clear in the xda faq (I have a Galaxy Nexus GSM):

    1) Is this only true for JB 4.2? Or does this apply to all versions of Android?

    2) Ever since installing CM10.1 I´ve had lag issues in videogames, but not on app transitions (which is what I understood from the xda post). Will this fix that, or is this only for app transition lags?

    3) Say I apply this fix while on JB 4.2 (CM10.1), and I decide to downgrade to JB 4.1.2 (CM10) or move to a different ROM altogether, while most likely this will obviously defeat the purpose as it will overwrite anything done by the app, but is it safe to flash after applying the fix?

    Thanks in advanced

  • http://www.facebook.com/profile.php?id=867995173 Eduardo Pimentel

    Aux MHz, a couple of questions about LagFix that is not clear in the xda faq (I have a Galaxy Nexus GSM):

    1) Is this only true for JB 4.2? Or does this apply to all versions of Android?

    2) Ever since installing CM10.1 I´ve had lag issues in videogames, but not on app transitions (which is what I understood from the xda post). Will this fix that, or is this only for app transition lags?

    3) Say I apply this fix while on JB 4.2 (CM10.1), and I decide to downgrade to JB 4.1.2 (CM10) or move to a different ROM altogether, while most likely this will obviously defeat the purpose as it will overwrite anything done by the app, but is it safe to flash after applying the fix?

    • http://www.facebook.com/people/Aleksandr-Ivanov/734916624 Aleksandr Ivanov

      Replied on XDA.

  • http://www.facebook.com/people/Aleksandr-Ivanov/734916624 Aleksandr Ivanov

    Donate version is now available! https://play.google.com/store/apps/details?id=com.grilledmonkeydonate.lagfix

    No ads, plus auto-trimming on user-specified schedule. Comes from different publisher because Google does not allow paid apps from my country.

  • Terry Steed

    Worked well on my HTC One S but strangely Mortplayer just started having audio skiiping problems. Never happened before but Lagfix is the only thing I've changed lately.

  • fiahball

    What is ROOT? Pls help me

  • siddharth dharod

    can i hav to use /system also?