Please help: big lag issue

Search This thread

vladja10

Member
Apr 12, 2012
12
2
Guys, I need a help. Tried everything, but still facing big lag especially when I click on dialer, contacts or messages (waiting couple of secs until they show up). This is more obvious when I click right after I 'woke up' my phone from deep sleep.

I'm using stock 20b with Iodak v8 kernel (tried v9 as well, but due to bluetooth and fm radio issue on stock, reverted to v8). Also, I did everything what I could found to improve performace: disabled and then deleted MLT, did a full wipe of everything (clean install), installed only apps that I need, turned off 3g, data and gps (only WiFi is on), installed Greenify and so on..

My current setup of kernel is following:
Governor: interactive (tried ondemand, but was even worst)
Max: 1600000
Min/Max Screen Off: 760000
Scheduler: SIO
CPUQuiet Power: userspace (noticed that only 3 cores are online instead of 4)

I appreciate any help, but please, don't tell me to search, 'cause I did. As for the other custom roms, I tried CM, but I prefer more stock, mostly because of Gallery, Polaris and FM Radio Apps.

Guys, is there any way to fix this lag issue? I don't care much for the battery, since this lag drives me crazy.

Thanks in advance.

Vladimir
 

brunek

Senior Member
Jan 3, 2013
441
51
Guys, I need a help. Tried everything, but still facing big lag especially when I click on dialer, contacts or messages (waiting couple of secs until they show up). This is more obvious when I click right after I 'woke up' my phone from deep sleep.

I'm using stock 20b with Iodak v8 kernel (tried v9 as well, but due to bluetooth and fm radio issue on stock, reverted to v8). Also, I did everything what I could found to improve performace: disabled and then deleted MLT, did a full wipe of everything (clean install), installed only apps that I need, turned off 3g, data and gps (only WiFi is on), installed Greenify and so on..

My current setup of kernel is following:
Governor: interactive (tried ondemand, but was even worst)
Max: 1600000
Min/Max Screen Off: 760000
Scheduler: SIO
CPUQuiet Power: userspace (noticed that only 3 cores are online instead of 4)

I appreciate any help, but please, don't tell me to search, 'cause I did. As for the other custom roms, I tried CM, but I prefer more stock, mostly because of Gallery, Polaris and FM Radio Apps.

Guys, is there any way to fix this lag issue? I don't care much for the battery, since this lag drives me crazy.

Thanks in advance.

Vladimir

This is "normal" for system apps. Download custom apps from google store like ExDialer,GOSms.. That will resolve your lag.. When you install those apps from store, use titanium backup to freeze stock apps(dialer,contacts,messages).
 
  • Like
Reactions: vladja10

vladja10

Member
Apr 12, 2012
12
2
Thanks guys, but neither of these two options helped. There's some improvements, but still pretty much laggy.
 

vladja10

Member
Apr 12, 2012
12
2
Think I found out what causing lag: synchronization. Every time when phone is synchronizing, everything is so laggy, otherwise is ok. Following accounts have sync turned on: Skype, Facebook, WhatsApp, Twitter and Google.

Does anyone of you have experienced similar problem? Is there solution for this?
 

bomerzz

Member
Jan 11, 2014
7
0
Think I found out what causing lag: synchronization. Every time when phone is synchronizing, everything is so laggy, otherwise is ok. Following accounts have sync turned on: Skype, Facebook, WhatsApp, Twitter and Google.

Does anyone of you have experienced similar problem? Is there solution for this?

I have all those apps running in my phone, but I did not face those lags.

But ya I did felt those lags when I'm still using stock JB OS. Stock JB from LG is sucks man, you should instal another ROM.

Currently I'm using CM11 (Kitkat 4.4.2 based), its lag free and have more free RAM. (around 350 - 400MB). :good: :D

The difference is like heaven and hell compared with the stock ROM (I only have 150 - 200MB Free RAM).
 

SimonTS

Senior Member
Oct 23, 2011
4,245
1,616
Bristol
I have all those apps running in my phone, but I did not face those lags.

But ya I did felt those lags when I'm still using stock JB OS. Stock JB from LG is sucks man, you should instal another ROM.

Currently I'm using CM11 (Kitkat 4.4.2 based), its lag free and have more free RAM. (around 350 - 400MB). :good: :D

The difference is like heaven and hell compared with the stock ROM (I only have 150 - 200MB Free RAM).

The ROM can make a difference, but it has nothing to do with "Free RAM". I wish people would stop perpetuating this myth.

Free RAM is wasted memory on an Android device. Unless you are getting below about 50MB there is not a problem as the device is designed to use as much as it can and then swap it out automatically.

I agree about CM11 though. I'm running the latest nightly and the only problem I have is the delay in waking when you press the power button
 

bomerzz

Member
Jan 11, 2014
7
0
The ROM can make a difference, but it has nothing to do with "Free RAM". I wish people would stop perpetuating this myth.

Free RAM is wasted memory on an Android device. Unless you are getting below about 50MB there is not a problem as the device is designed to use as much as it can and then swap it out automatically.

I agree about CM11 though. I'm running the latest nightly and the only problem I have is the delay in waking when you press the power button

Well.. Sorry for my false statement and thank you for correcting it :D

4X HD is my very first android device. But that's what I really thought after I flashed the CM11.. Its like whoa, more free space on RAM, and it feels like I'm using a new phone :p
 

SimonTS

Senior Member
Oct 23, 2011
4,245
1,616
Bristol

vladja10

Member
Apr 12, 2012
12
2
Well, I’m afraid that I’ll be forced to get back to CM (used it once, but missed some apps such are: FM Radio, stock gallery app (couldn’t find good replacement that synced photos with google acc) and Polaris Office – these apps I use on a daily basis). Anyway, before install CM, I’ll give one more try to Stock.

I did what @ottomanhero told me, and that actually helped. But, since I used Trickstermod to tweak governors, after every single reboot, stock values would be back, so I had to use init.d script, and there comes a problem.

Here is what I did (followed instructions from Iodak's OP):

- Using ES File Explorer created folder /system/etc/init.d and set permissions to rwxr-xr-x

- Created new file in init.d folder and name it 1script (used Note++ instead of Windows editors to avoid leaving an extra space at the end of each line or an invisible invalid character)

- Then added following commands:

Code:
#!/system/bin/sh
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/midrange_go_maxspeed_load
echo "60000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "20000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo 200 300 400 450 500 600 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_overclock

- and finally set permissions to 1script rwxr-xr-x and owner to root group to shell

So, that should be it, but didn’t work for me. Then, I installed SManager to check what’s wrong with the script, and it stated that with first 4 lines error is: no such file or directory (which is strange because exactly that's the path), and for the last line is stated: permission denied.

Did I miss something? Apologize if this question is too noob for you guys, but I’m running out of ideas.

Thanks all for your help.

Regards,
Vladimir
 

ottomanhero

Senior Member
Jan 4, 2013
452
247

Oh, really?

Free RAM is NOT wasted RAM.

It directly effects smoothness of the phone.Why do you think android would have Out Of Memory values if it was created to just fill up the RAM with only apps? It still needs some RAM free for caching.

---------- Post added at 03:50 PM ---------- Previous post was at 03:46 PM ----------

Well, I’m afraid that I’ll be forced to get back to CM (used it once, but missed some apps such are: FM Radio, stock gallery app (couldn’t find good replacement that synced photos with google acc) and Polaris Office – these apps I use on a daily basis). Anyway, before install CM, I’ll give one more try to Stock.

I did what @ottomanhero told me, and that actually helped. But, since I used Trickstermod to tweak governors, after every single reboot, stock values would be back, so I had to use init.d script, and there comes a problem.
- and finally set permissions to 1script rwxr-xr-x and owner to root group to shell

So, that should be it, but didn’t work for me. Then, I installed SManager to check what’s wrong with the script, and it stated that with first 4 lines error is: no such file or directory (which is strange because exactly that's the path), and for the last line is stated: permission denied.

Did I miss something? Apologize if this question is too noob for you guys, but I’m running out of ideas.

Thanks all for your help.

Regards,
Vladimir

Code:
#!/system/bin/sh
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/midrange_go_maxspeed_load
echo "60000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "20000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo "200 300 400 450 500 600" > /sys/devices/system/cpu/cpu0/cpufreq/gpu_overclock

I think the script didn't execute at boot due to last line, you forgot the quotes.And while using Smanager you gotta tick "root" or else it won't run.Try this one ;)
 

vladja10

Member
Apr 12, 2012
12
2
I think the script didn't execute at boot due to last line, you forgot the quotes.And while using Smanager you gotta tick "root" or else it won't run.Try this one ;)

Well, you were right about the quotes (now, the new values are set), but as the other 4 lines, they still have the same error: No such file or directory, and all values are stock.

Do you have any idea what's going on? Why did it work for one, and didn't for the other lines?
 

SimonTS

Senior Member
Oct 23, 2011
4,245
1,616
Bristol
Oh, really?

Free RAM is NOT wasted RAM.

It directly effects smoothness of the phone.Why do you think android would have Out Of Memory values if it was created to just fill up the RAM with only apps? It still needs some RAM free for caching.

As I stated in my first post;-
Unless you are getting below about 50MB there is not a problem

Of course you need some free memory, but not hundreds of MBs of it. I notice that you pointed the same XDA quote that is used and linked to by lots of different sites when this is being discussed. To use someone else's quote - better written than I could do so myself;-
In the most simplistic terms, here is how it works, and why "free RAM is wasted RAM," but also, why you don't want all RAM in use at any given time.

If an application is not in memory when you try to open it, that application haa to be loaded into memory, thus triggering a "load time." Having the application in memory (prefetched) prevents this load time and has the application load near insantly. This is why a modern OS will preload our most commonly used applications into memory. The more memory that you have, the more applications that can be preloaded, the smoother your device will run. Clearing this memory gives you no immeidate benefit, and will actually slow your device. Idle applications in memory consume almost no resources (CPU cycles, battery power, etc.). If an application is consuming resources, that means that it is doing something. Closing it will only force the application to re-load. Using a task killer for this purpose will cause a "boxing match" where the task killer closes the application, the app reopens itself, and back and forth. THIS will consume resources.

However, you want to have some memory free. Your devices will not have enough memory to preload EVERY application, so it has to guess based on your actions. It needs to have enough memory available to quickly load an app that you may want.

Let's say that you want to load an application that requires 256MB of RAM, but you only have 128MB available. This means that the OS is going to try to clear 128MB of RAM to accomodate your app, and as your app loads, will try to clear another 128MB to return to its previous state. This clear/load/clear causes a longer load time and more slowdown than just loading an app not already in memory.

So, the ideal situation is to have most common apps in memory (pre-fetched), but enough memory available to handle 1-2 common apps that are not already pre-loaded. Touchwiz (Samsung) devices allow you to clear memory from the task manager. My S2 had about 870MB of user-available RAM, and if I trashed all apps, it would go as low as 300MB in use. This may look cool, but it is a complete waste of resources, and the OS is simply going to re-load those apps over the next 2-3 minutes anyway. And if you use a task killer to keep your device idling at 300MB of available RAM? This is simply going to slow down the device, harm the battery, and give you the same memory performance and availability that you would get with an HTC G1.

As the OP was stating that "I only have 150 - 200MB Free RAM" with the Stock ROM, that is definitely NOT what is causing a lag issue. If you have that much free memory (before Android goes caching stuff and not declaring it of course) then you are absolutely fine on any Android device there is.
 
  • Like
Reactions: ottomanhero

ottomanhero

Senior Member
Jan 4, 2013
452
247
Well, you were right about the quotes (now, the new values are set), but as the other 4 lines, they still have the same error: No such file or directory, and all values are stock.

Do you have any idea what's going on? Why did it work for one, and didn't for the other lines?

Maybe your partitions aren't mounted.I took these lines from pimp my rom init.d script.Create another script but it has to come before the governor tweaks script.

#!/system/bin/sh
busybox mount -o remount,noatime,noauto_da_alloc,nodiratime,barrier =0,nobh /system
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /data
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /cache

For example, name this script "93Mount" and name the governor script "94Governor" so the mounting script will be executed before governor script.
 

vladja10

Member
Apr 12, 2012
12
2
Maybe your partitions aren't mounted.I took these lines from pimp my rom init.d script.Create another script but it has to come before the governor tweaks script.



For example, name this script "93Mount" and name the governor script "94Governor" so the mounting script will be executed before governor script.

Well, I did like you said and here's what I got:

Code:
exec /system/bin/sh '/etc/init.d/93Mount' 
h '/etc/init.d/93Mount'                              <
 failed: No such file or directory
 failed: No such file or directorybh on /data
mount: mounting atime,barrier=0,nobh on /cache failed: Invalid argument

Any idea?
 

GalaxyVolvoZ

Senior Member
Jan 28, 2013
455
129
Hanoi
For the People who want Stock Gallery on CM and hate Aosp Gallery like Iam, check facebook offical cyanogenmod. They send a link to their new gallery next. Its in beta stase, so its not avaible yet. But if its stable itll be in play store. Its like the stock gallery app. Very beauty

Sent from my LG-P880 using xda app-developers app
 
  • Like
Reactions: vladja10

ottomanhero

Senior Member
Jan 4, 2013
452
247
Well, I did like you said and here's what I got:

Code:
exec /system/bin/sh '/etc/init.d/93Mount' 
h '/etc/init.d/93Mount'                              <
 failed: No such file or directory
 failed: No such file or directorybh on /data
mount: mounting atime,barrier=0,nobh on /cache failed: Invalid argument

Any idea?

Well try this app https://play.google.com/store/apps/details?id=com.stericson.remount&hl=tr

EDIT : check this link out. http://xdaforums.com/showthread.php?t=1381188
 
Last edited:
  • Like
Reactions: vladja10

klbterminator

Member
Sep 17, 2009
33
9
I'm not sure it's the right track or not, it does happen to me quite ago.
The problem is the SD (my case, luckily it's external). The system try to read files from card but it got error thus try again => laggy

I removed the card and it's alive. Try to check your internal sd. hope that help
 

vladja10

Member
Apr 12, 2012
12
2
App didn't help, I got the same error. Never mind, I give up :) Will use Trickstermod after every single reboot until finally find solution. Thanks @ottomanhero for all your help.
@GalaxyVolvoZ that app looks realy nice. Finally a good replacement for Stock Gallery.
@klbterminator I don't have any problems with SD, at least didn't so far :)

Thanks guys.

Regards,
Vladimir
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Well.. Sorry for my false statement and thank you for correcting it :D

    4X HD is my very first android device. But that's what I really thought after I flashed the CM11.. Its like whoa, more free space on RAM, and it feels like I'm using a new phone :p

    You might want a read of this;-

    RAM: What it is, how it's used, and why you shouldn't care
    2
    A week ago I flashed CM11 as well as Iodak 9.5 kernel and asked myself: what took me so long to go from stock to CM. Everything works as it should: init.d script, Trickstermod and all other things that didn't work properly on Stock.

    But, have to admit, it's not as smooth as I expected. It's a bit laggy, not even close how it was on Stock, but a little bit yes. I'm using following tweaks:

    Governor: interactive
    Max: 1500000
    Min/Max Screen Off: 760000
    Scheduler: SIO
    CPUQuiet Power: balanced

    echo "70" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
    echo "70" > /sys/devices/system/cpu/cpufreq/interactive/midrange_go_maxspeed_load
    echo "60000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
    echo "20000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
    echo 200 300 400 450 500 600 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_overclock

    Do you guys have any advice how to improve performance a little bit to get rid of lag, but still to have a decent batery life?
    -First of all don't use GPU freq 600 mhz, 564 uses less power by far and is stable under less voltage so you get less heat, less power consumption.Not worth for the 36 mhz.
    -Deadline scheduler is better than SIO.SIO might show you better benchmarking scores, but it is not as fast as it seems.It isn't stable so you'll get lag spikes.
    -Maybe you mean the UI lag.There is really nothing much you can do about it as it doesn't really put any load on CPU so you get some lags.Notice how navigation bar is smoother while using an app, but it gets laggy in launcher.
    -Also try vanir, it looks smoother overall (IO etc.) but haven't tried gaming yet.
    -Get android tweaker 2 and use some build.prop tweaks.They helped me with UI responsiveness in CM.(Make sure to not enable power supply under battery tweaks, it gave me a bootloop.)
    -I found runnable smoother than balanced, somehow.
    -I suggest you to keep max freq while screen is off, @ 475 mhz cause it'll be using LP core.I haven't tried music playback as I have my mp4 to do playback stuff but I guess it shouldn't lag on 475 mhz.
    -Give seeder a try and/or find entropy enlarger tweaks to keep your entropy high, this helps with overall smoothness of the phone.Vanir seems to have a seeder like service runing to keep the entropy full, so that is why it's so smooth.
    -Set readahead cache size to 5.5 mb or 2 mb.5.5 gives me the best benchmark results on 10 MB & 100 MB files (tested via android tuner free)

    Stock rom is the slowest of all so I don't really get how you think CM is almost as laggy as stock.

    Click thanks if I helped ;)
    1
    Guys, I need a help. Tried everything, but still facing big lag especially when I click on dialer, contacts or messages (waiting couple of secs until they show up). This is more obvious when I click right after I 'woke up' my phone from deep sleep.

    I'm using stock 20b with Iodak v8 kernel (tried v9 as well, but due to bluetooth and fm radio issue on stock, reverted to v8). Also, I did everything what I could found to improve performace: disabled and then deleted MLT, did a full wipe of everything (clean install), installed only apps that I need, turned off 3g, data and gps (only WiFi is on), installed Greenify and so on..

    My current setup of kernel is following:
    Governor: interactive (tried ondemand, but was even worst)
    Max: 1600000
    Min/Max Screen Off: 760000
    Scheduler: SIO
    CPUQuiet Power: userspace (noticed that only 3 cores are online instead of 4)

    I appreciate any help, but please, don't tell me to search, 'cause I did. As for the other custom roms, I tried CM, but I prefer more stock, mostly because of Gallery, Polaris and FM Radio Apps.

    Guys, is there any way to fix this lag issue? I don't care much for the battery, since this lag drives me crazy.

    Thanks in advance.

    Vladimir

    This is "normal" for system apps. Download custom apps from google store like ExDialer,GOSms.. That will resolve your lag.. When you install those apps from store, use titanium backup to freeze stock apps(dialer,contacts,messages).
    1
    Oh, really?

    Free RAM is NOT wasted RAM.

    It directly effects smoothness of the phone.Why do you think android would have Out Of Memory values if it was created to just fill up the RAM with only apps? It still needs some RAM free for caching.

    As I stated in my first post;-
    Unless you are getting below about 50MB there is not a problem

    Of course you need some free memory, but not hundreds of MBs of it. I notice that you pointed the same XDA quote that is used and linked to by lots of different sites when this is being discussed. To use someone else's quote - better written than I could do so myself;-
    In the most simplistic terms, here is how it works, and why "free RAM is wasted RAM," but also, why you don't want all RAM in use at any given time.

    If an application is not in memory when you try to open it, that application haa to be loaded into memory, thus triggering a "load time." Having the application in memory (prefetched) prevents this load time and has the application load near insantly. This is why a modern OS will preload our most commonly used applications into memory. The more memory that you have, the more applications that can be preloaded, the smoother your device will run. Clearing this memory gives you no immeidate benefit, and will actually slow your device. Idle applications in memory consume almost no resources (CPU cycles, battery power, etc.). If an application is consuming resources, that means that it is doing something. Closing it will only force the application to re-load. Using a task killer for this purpose will cause a "boxing match" where the task killer closes the application, the app reopens itself, and back and forth. THIS will consume resources.

    However, you want to have some memory free. Your devices will not have enough memory to preload EVERY application, so it has to guess based on your actions. It needs to have enough memory available to quickly load an app that you may want.

    Let's say that you want to load an application that requires 256MB of RAM, but you only have 128MB available. This means that the OS is going to try to clear 128MB of RAM to accomodate your app, and as your app loads, will try to clear another 128MB to return to its previous state. This clear/load/clear causes a longer load time and more slowdown than just loading an app not already in memory.

    So, the ideal situation is to have most common apps in memory (pre-fetched), but enough memory available to handle 1-2 common apps that are not already pre-loaded. Touchwiz (Samsung) devices allow you to clear memory from the task manager. My S2 had about 870MB of user-available RAM, and if I trashed all apps, it would go as low as 300MB in use. This may look cool, but it is a complete waste of resources, and the OS is simply going to re-load those apps over the next 2-3 minutes anyway. And if you use a task killer to keep your device idling at 300MB of available RAM? This is simply going to slow down the device, harm the battery, and give you the same memory performance and availability that you would get with an HTC G1.

    As the OP was stating that "I only have 150 - 200MB Free RAM" with the Stock ROM, that is definitely NOT what is causing a lag issue. If you have that much free memory (before Android goes caching stuff and not declaring it of course) then you are absolutely fine on any Android device there is.