ZArchive Manages Your File Archives

Today smartphones are quite powerful devices that can handle multiple processes at once. In fact, some of … more

Regain Double Tap to Wake Functionality on the Nexus 6

A few months ago, Google announced its newest flagship device, the Nexus 6, alongside … more

Clean Your Recent Apps – XDA Xposed Tuesday

In this day and age, you have quite a few apps installed and running on your Android … more

Android Studio Reaches Release Candidate Status

Android app developers have a few options when comes to Android IDEs. One of the most … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[SCRIPT][HOW-TO]Make Live Wallpapers Smoother!

OP despotovski01

5th November 2011, 12:28 PM   |  #1  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,910
 
1,458 posts
Join Date:Joined: Jan 2011
More
So I was searching around the Internet to find a way to make live wallpapers smoother. And I found a tutorial on another forum, tried it, and it worked like a charm, so I decided to post the tutorial on XDA Developers. Credits for this go to boimkun, a member of the Symbianize forum.

If you don't make to waste time on making the script, I have uploaded mine for you. Download the script

Requirements:
-Root access
-An application for making scripts (in this tutorial we are using GScript)
-Live wallpapers

Tutorial:
1. Open GScript
2. Click Menu, and then click "Add script"
3. Tick "Needs SU" if it's not ticked
4. Set the script name, and type in the text box below:
Code:
renice -15 `pgrep android.process.acore'
Note: "android.process.acore" stands for your launcher process name. You can use android.process.acore for ADW Launcher and Launcher Pro
5. Save the script and execute it

You must run the script on every boot.

Optional (I haven't tried this, but works very smooth without this as well):
Quote:
Originally Posted by boimkun

Maybe you want to try to renice the live wallpaper too (this may slow it down, I would not suggest to do it). To do this

- launch the terminal
- write 'ps' then press enter
- will appear a list of processes. here you should find one that has a name similar to the LWP you're using (for example, I'm using Pixel Zombies Infection and the process name is haydenTheAndroid.liveWallpaper.pixelZombies)

now you can renice it either from terminal or from GScript.
To renice from terminal:

- check the number *** which the process has in the PID row. You have to remember this number
- write 'su' then press enter. now you have root privileges
- write 'renice N ***' where N is the nice number you want (20=minimum priority ; -20=maximum priority, which you obviously don't want). You can set it to 20 to give the LWP the minimum priority

To renice from GScript go in the script you already created and add a similar line, by substituting "-15" with "20" and the process name with your LWP's process name.

You should now see an increased smoothness when scrolling homescreens and app drawer

That was all for this tutorial. Please post a comment, whether this script works for you or not.
Last edited by despotovski01; 5th November 2011 at 12:30 PM.
The Following 14 Users Say Thank You to despotovski01 For This Useful Post: [ View ]
6th November 2011, 10:18 PM   |  #2  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,910
 
1,458 posts
Join Date:Joined: Jan 2011
More
Nobody interested in my script?
6th November 2011, 11:31 PM   |  #3  
Senior Member
Thanks Meter: 81
 
160 posts
Join Date:Joined: Aug 2009
More
It worked great, but what's the TW4 process name?
6th November 2011, 11:59 PM   |  #4  
jason2302's Avatar
Senior Member
Thanks Meter: 28
 
202 posts
Join Date:Joined: Feb 2011
So LauncherPro won't be laggy anymore?
7th November 2011, 12:23 AM   |  #5  
DigitalJedi's Avatar
Senior Member
Flag Texas
Thanks Meter: 73
 
251 posts
Join Date:Joined: Aug 2010
More
Seems to have made my multipicture lwp perform better. Thanx for this!
7th November 2011, 08:41 AM   |  #6  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,910
 
1,458 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by jason2302

So LauncherPro won't be laggy anymore?

Well, it shouldn't be.
The Following 2 Users Say Thank You to despotovski01 For This Useful Post: [ View ]
7th November 2011, 08:46 AM   |  #7  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,910
 
1,458 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by vectress

It worked great, but what's the TW4 process name?

I don't know, but you can do the following to find the process name:
Download an app called OS Monitor. Then open it and in the first tab click your launcher from the list. Then, a pop-up will be shown. Click "Watch Log" on the pop-up, and then search for your process name in the list.
7th November 2011, 08:47 AM   |  #8  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,910
 
1,458 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by DigitalJedi

Seems to have made my multipicture lwp perform better. Thanx for this!

You're welcome!
7th November 2011, 10:10 AM   |  #9  
dislplin01's Avatar
Senior Member
Thanks Meter: 122
 
1,194 posts
Join Date:Joined: Apr 2011
Do I download the script and then so that and can I use terminal emulater

Sent from my LG-P500 using XDA Premium App running CM7 over clocked at 806
7th November 2011, 10:44 AM   |  #10  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,910
 
1,458 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by dislplin01

Do I download the script and then so that and can I use terminal emulater

Sent from my LG-P500 using XDA Premium App running CM7 over clocked at 806

Well, I haven't tested it with Terminal Emulator, but it should work.

Post Reply Subscribe to Thread

Tags
android, live, smooth, wallpaper, wallpapers
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes