Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Virtually Eliminate Homescreen Redraws


  • Please log in to reply
28 replies to this topic

#1 Tomadoggy

Tomadoggy
  • Members
  • 2 posts
  • Country:
    us - United States
  • Device Model:
    Droid 1
  • CM Version:
    6
  • Recovery Image:
    Cyanogen

Posted 20 October 2010 - 09:57 PM

*** THIS WORKS, VIRTUALLY ELIMINATES SCREEN REDRAWS ***

OK I did not believe this but have been using it for >3 days. The improvement is dramatic, I executed a control test of opening/using applications and noted which resulted in a homescreen redraw, then did the change noted below...seeing is believing. This is reversable also, do your own test my guess is that you will be very impressed. Try it on Angry Birds :) no redraw after application close!  This may save me from buying a faster processer phone (still love my Droid1).  No I cannot tell you what it does or why it works, I am not a coder, just a user and experimenter.

If you use ADW or LauncherPro and if after using any memory intensive application you hed back to your Homescreen... you know the drill.....lag, lag, redraw, redraw, then finally you are able to function again.

#1 MAKE A NANDROID BACKUP  

In your terminal application on your phone (if you have to ask what this is, Google it, download it from the market)

su (enter)
echo ro.HOME_APP_ADJ=1 >> /data/local.prop (enter)
reboot (enter)

If you want to undo what this command does, simply remove that toggle from: /data/local.prop, or if you did not have this file (like I did not) prior to the mod...remove it entirely

EDIT 10/21 Links fixed:

As far as I know/understand all Credit to SAMSONITE801
Samsonite801
Thread here:
Link to the thread where the hack exists

Edited by Tomadoggy, 21 October 2010 - 01:41 PM.


#2 bliu

bliu
  • Members
  • 23 posts
  • Twitter:bliu
  • Device Model:
    |3|
  • CM Version:
    Froyo 2.2
  • Recovery Image:
    ClockworkMod

Posted 20 October 2010 - 10:04 PM

View PostTomadoggy, on 20 October 2010 - 09:57 PM, said:

As far as I know/understand all Credit to SAMSONITE801
http://www.droidforu...msonite801.html

Thread here:
http://www.droidforu...msonite801.html

Can you repost your link(s)? It's getting truncated...
I think it's the same info as this, but just want to make sure:
http://www.droidhype...stay-in-memory/

#3 bliu

bliu
  • Members
  • 23 posts
  • Twitter:bliu
  • Device Model:
    |3|
  • CM Version:
    Froyo 2.2
  • Recovery Image:
    ClockworkMod

Posted 21 October 2010 - 05:06 PM

Btw, I tried it out and it's not working for me. :( Not sure if it's because I'm using QuickDesk, which is technically the 'home' application...?

Edited by bliu, 21 October 2010 - 05:12 PM.


#4 ne0

ne0
  • Members
  • 4 posts
  • Twitter:semitex
  • Country:
    us - United States
  • Location:
    Pittsburgh, PA
  • Device Model:
    OG Droid
  • CM Version:
    Cyanogenmod 6.1 nightlies
  • Recovery Image:
    ClockworkMod

Posted 21 October 2010 - 05:30 PM

View PostTomadoggy, on 20 October 2010 - 09:57 PM, said:

su (enter)
echo ro.HOME_APP_ADJ=1 >> /data/local.prop (enter)
reboot (enter)

yay this works!!! thank you!

#5 bpyazel

bpyazel
  • Members
  • 161 posts
  • Country:
    us - United States
  • Device Model:
    Moto Droid
  • CM Version:
    CM 6.0.0
  • Recovery Image:
    ClockworkMod

Posted 21 October 2010 - 05:47 PM

Cool.  Worked!

Sent from my Droid using Tapatalk

#6 virtus

virtus
  • Members
  • 15 posts
  • Country:
    us - United States
  • Device Model:
    Motorola Droid
  • CM Version:
    6.1 Nightlies
  • Recovery Image:
    ClockworkMod

Posted 21 October 2010 - 08:47 PM

Worked for me too (using LancherPro)! No screen redraws yet. It's kind of strange to always have the homescreen waiting there for me.

#7 reaper

reaper
  • Members
  • 32 posts
  • Country:
    us - United States
  • Device Model:
    Droid1
  • CM Version:
    CM6.1
  • Recovery Image:
    ClockworkMod

Posted 22 October 2010 - 12:35 AM

So far so good here with ADW. Can someone please explain what this does exactly and what are the down sides?

Thanks

Edited by reaper, 22 October 2010 - 02:30 AM.


#8 stearic

stearic
  • Donators
  • 84 posts
  • Twitter:lilpute
  • Country:
    us - United States
  • Device Model:
    Galaxy Nexus
  • CM Version:
    n/a
  • Recovery Image:
    ClockworkMod

Posted 22 October 2010 - 03:20 AM

Yea, i'd like to know exactly what this does to fix the problem. Doing it now though so i hope it works.

#9 stearic

stearic
  • Donators
  • 84 posts
  • Twitter:lilpute
  • Country:
    us - United States
  • Device Model:
    Galaxy Nexus
  • CM Version:
    n/a
  • Recovery Image:
    ClockworkMod

Posted 22 October 2010 - 03:58 AM

Wow, this will teach me to make a backup. Had to use adb fix my phone. And the fix does work really well. :-)

#10 reaper

reaper
  • Members
  • 32 posts
  • Country:
    us - United States
  • Device Model:
    Droid1
  • CM Version:
    CM6.1
  • Recovery Image:
    ClockworkMod

Posted 22 October 2010 - 01:24 PM

Found this on Google:

"Hint for developer phones:

One limitation has been noticed on Android developer phones (ADP1). Due to limited memory home screen often takes several seconds to load. Luckily these phones allow root access. Issue the command "echo ro.HOME_APP_ADJ=1 >/data/local.prop" and reboot, to lock home screen in memory."

Taken from:

http://code.google.c...pdroid/wiki/FAQ

#11 stearic

stearic
  • Donators
  • 84 posts
  • Twitter:lilpute
  • Country:
    us - United States
  • Device Model:
    Galaxy Nexus
  • CM Version:
    n/a
  • Recovery Image:
    ClockworkMod

Posted 22 October 2010 - 02:57 PM

If only we had more memory on our droids. Next phone i get will have a min of 512mb ram.

#12 RayToombs

RayToombs
  • Members
  • 19 posts
  • Twitter:RayToombs
  • Device Model:
    MOTO DROID
  • CM Version:
    CM6
  • Recovery Image:
    ClockworkMod

Posted 23 October 2010 - 04:44 PM

Can I just do the back up with rom manager? Them do the coding through the terminal app.

Sent from my Droid

#13 stearic

stearic
  • Donators
  • 84 posts
  • Twitter:lilpute
  • Country:
    us - United States
  • Device Model:
    Galaxy Nexus
  • CM Version:
    n/a
  • Recovery Image:
    ClockworkMod

Posted 24 October 2010 - 12:15 AM

Yea, you can set it up via rom manager. It will just reboot into the recovery console and do the backup for you w/out having to manually do it all with the buttons and all.

#14 mcstagger

mcstagger
  • Members
  • 10 posts
  • Country:
    us - United States
  • Device Model:
    Droid 1 Rooted
  • CM Version:
    CM6.1 Stable - Gingerbread Theme
  • Recovery Image:
    ClockworkMod

Posted 25 October 2010 - 04:05 PM

View PostTomadoggy, on 20 October 2010 - 09:57 PM, said:

*** THIS WORKS, VIRTUALLY ELIMINATES SCREEN REDRAWS ***

#1 MAKE A NANDROID BACKUP  

In your terminal application on your phone (if you have to ask what this is, Google it, download it from the market)

su (enter)
echo ro.HOME_APP_ADJ=1 >> /data/local.prop (enter)
reboot (enter)

If you want to undo what this command does, simply remove that toggle from: /data/local.prop, or if you did not have this file (like I did not) prior to the mod...remove it entirely






Your method definitely worked but how is this different than using the toggle that is built into CM6?


su (enter)
echo ro.HOME_APP_ADJ=0 >> /data/local.prop (enter)
reboot (enter)

also, just to be sure, if i want to switch back i would enter the following into the command, correct?

#15 mdmadph

mdmadph
  • Members
  • 63 posts
  • Twitter:mdmadph
  • Country:
    us - United States
  • Device Model:
    Motorola Droid 2
  • CM Version:
    CM7 Nightlies
  • Recovery Image:
    ClockworkMod

Posted 25 October 2010 - 06:03 PM

View Postmcstagger, on 25 October 2010 - 04:05 PM, said:

Your method definitely worked but how is this different than using the toggle that is built into CM6?


su (enter)
echo ro.HOME_APP_ADJ=0 >> /data/local.prop (enter)
reboot (enter)

also, just to be sure, if i want to switch back i would enter the following into the command, correct?

Like some of the settings in the stock CM screens, I have a feeling that the toggle that's built-in may not actually do anything on the Moto Droid.  <_<

#16 Creepy

Creepy
  • Donators
  • 160 posts
  • Country:
    us - United States
  • Device Model:
    Droid 1
  • CM Version:
    CM 6.1.2-stable
  • Recovery Image:
    ClockworkMod

Posted 25 October 2010 - 06:51 PM

I love you.

#17 Androidddd

Androidddd
  • Members
  • 21 posts
  • Country:
    ca - Canada
  • Device Model:
    HTC Hero
  • CM Version:
    CyanogenMod 6.1.0
  • Recovery Image:
    ClockworkMod

Posted 31 July 2011 - 02:35 PM

Works like a charm :)

#18 Nblufire12

Nblufire12
  • Members
  • 34 posts
  • Device Model:
    Motorola Droid
  • CM Version:
    CM 6
  • Recovery Image:
    Cyanogen

Posted 02 August 2011 - 06:01 PM

What's the difference between this and locking home in memory in the CM7 settings?
I nea

Just wondering if everyone locks home in memory

Edited by Nblufire12, 02 August 2011 - 06:01 PM.


#19 hellomcfly

hellomcfly
  • Donators
  • 130 posts
  • Country:
    us - United States
  • Device Model:
    Galaxy Nexus CDMA
  • CM Version:
    CM10.1 Nightlies
  • Recovery Image:
    ClockworkMod

Posted 16 August 2011 - 07:20 PM

View PostNblufire12, on 02 August 2011 - 06:01 PM, said:

What's the difference between this and locking home in memory in the CM7 settings?
I nea

Just wondering if everyone locks home in memory

View Postmdm-adph, on 25 October 2010 - 06:03 PM, said:

Like some of the settings in the stock CM screens, I have a feeling that the toggle that's built-in may not actually do anything on the Moto Droid.  Posted Image

that even if we have locked home in memory, it may not actually be locking home in memory?  that would make a lot of sense, as i still get redraws when i have this checked.  i've even tried the supercharger script with the hard to kill launcher and still get them.  if something this simple works, that's wonderful.  is anyone who used this running the supercharger script?  i'm wondering if i should disable it now. so far so good, though.

#20 th3chainrule

th3chainrule
  • Members
  • 3 posts
  • Twitter:thechainrule
  • Device Model:
    Droid
  • CM Version:
    7.0.3
  • Recovery Image:
    Cyanogen

Posted 21 September 2011 - 03:18 PM

Trying it with the supercharger scripts right now.