5,597,198 Members 40,953 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
despotovski01
Old
(Last edited by despotovski01; 5th November 2011 at 11:30 AM.)
#1  
despotovski01's Avatar
Recognized Developer - OP
Thanks Meter 1766
Posts: 1,441
Join Date: Jan 2011
Cool [SCRIPT][HOW-TO]Make Live Wallpapers Smoother!

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.
"If you think you can, therefore, you can." - Unknown
"A journey of a thousand miles begins with a single step." - Confucius
"Question everything." - Einstein

"Don't let anyone tell you what you can't do."

My work:
Android Ultimate Toolbox Pro Updated as of 4.5.2013
Boot Animation Factory Updated as of 1.6.2013
Boot Animation Creator Obsolete
Boot Animation Previewer Obsolete

Devices:
LG G2 D802 16GB: Android 4.2.2 Jellybean (stock)
HTC EVO 3D: CyanogenMod 11
The Following 13 Users Say Thank You to despotovski01 For This Useful Post: [ Click to Expand ]
 
despotovski01
Old
#2  
despotovski01's Avatar
Recognized Developer - OP
Thanks Meter 1766
Posts: 1,441
Join Date: Jan 2011
Nobody interested in my script?
"If you think you can, therefore, you can." - Unknown
"A journey of a thousand miles begins with a single step." - Confucius
"Question everything." - Einstein

"Don't let anyone tell you what you can't do."

My work:
Android Ultimate Toolbox Pro Updated as of 4.5.2013
Boot Animation Factory Updated as of 1.6.2013
Boot Animation Creator Obsolete
Boot Animation Previewer Obsolete

Devices:
LG G2 D802 16GB: Android 4.2.2 Jellybean (stock)
HTC EVO 3D: CyanogenMod 11
 
vectress
Old
#3  
Senior Member
Thanks Meter 81
Posts: 160
Join Date: Aug 2009
It worked great, but what's the TW4 process name?
 
jason2302
Old
#4  
jason2302's Avatar
Senior Member
Thanks Meter 27
Posts: 190
Join Date: Feb 2011
So LauncherPro won't be laggy anymore?
 
DigitalJedi
Old
#5  
DigitalJedi's Avatar
Senior Member
Thanks Meter 72
Posts: 255
Join Date: Aug 2010
Location: Texas
Seems to have made my multipicture lwp perform better. Thanx for this!
________________________________________________
(my phone) Samsung Galaxy S4 M919: Vanir nightlies | KToonz kernel | Phil's CWM
(my tab) Nexus 7 32GB (2012):MultiROM w/ CM11 M3 and Ubuntu Touch | 4.23 bootloader unlocked
RETIRED PHONES: Samsung Galaxy SII T989, Samsung Vibrant, Google Nexus One, HTC MyTouch 3G LE Fender
My Github
 
despotovski01
Old
#6  
despotovski01's Avatar
Recognized Developer - OP
Thanks Meter 1766
Posts: 1,441
Join Date: Jan 2011
Quote:
Originally Posted by jason2302 View Post
So LauncherPro won't be laggy anymore?
Well, it shouldn't be.
"If you think you can, therefore, you can." - Unknown
"A journey of a thousand miles begins with a single step." - Confucius
"Question everything." - Einstein

"Don't let anyone tell you what you can't do."

My work:
Android Ultimate Toolbox Pro Updated as of 4.5.2013
Boot Animation Factory Updated as of 1.6.2013
Boot Animation Creator Obsolete
Boot Animation Previewer Obsolete

Devices:
LG G2 D802 16GB: Android 4.2.2 Jellybean (stock)
HTC EVO 3D: CyanogenMod 11
The Following 2 Users Say Thank You to despotovski01 For This Useful Post: [ Click to Expand ]
 
despotovski01
Old
#7  
despotovski01's Avatar
Recognized Developer - OP
Thanks Meter 1766
Posts: 1,441
Join Date: Jan 2011
Quote:
Originally Posted by vectress View Post
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.
"If you think you can, therefore, you can." - Unknown
"A journey of a thousand miles begins with a single step." - Confucius
"Question everything." - Einstein

"Don't let anyone tell you what you can't do."

My work:
Android Ultimate Toolbox Pro Updated as of 4.5.2013
Boot Animation Factory Updated as of 1.6.2013
Boot Animation Creator Obsolete
Boot Animation Previewer Obsolete

Devices:
LG G2 D802 16GB: Android 4.2.2 Jellybean (stock)
HTC EVO 3D: CyanogenMod 11
 
despotovski01
Old
#8  
despotovski01's Avatar
Recognized Developer - OP
Thanks Meter 1766
Posts: 1,441
Join Date: Jan 2011
Quote:
Originally Posted by DigitalJedi View Post
Seems to have made my multipicture lwp perform better. Thanx for this!
You're welcome!
"If you think you can, therefore, you can." - Unknown
"A journey of a thousand miles begins with a single step." - Confucius
"Question everything." - Einstein

"Don't let anyone tell you what you can't do."

My work:
Android Ultimate Toolbox Pro Updated as of 4.5.2013
Boot Animation Factory Updated as of 1.6.2013
Boot Animation Creator Obsolete
Boot Animation Previewer Obsolete

Devices:
LG G2 D802 16GB: Android 4.2.2 Jellybean (stock)
HTC EVO 3D: CyanogenMod 11
 
dislplin01
Old
#9  
dislplin01's Avatar
Senior Member
Thanks Meter 121
Posts: 1,188
Join Date: 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
Device: Nexus 4
ROM: Paronoidroid 3.0
Kernel: Franco Kernel nightly 83
Tablet: Nexus 7
Retired: LGp500, HTC Sensation, Moto Xoom, Galaxy Nexus
PS if i help you press the thank you button it makes me feel all warm inside
 
despotovski01
Old
#10  
despotovski01's Avatar
Recognized Developer - OP
Thanks Meter 1766
Posts: 1,441
Join Date: Jan 2011
Quote:
Originally Posted by dislplin01 View Post
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.
"If you think you can, therefore, you can." - Unknown
"A journey of a thousand miles begins with a single step." - Confucius
"Question everything." - Einstein

"Don't let anyone tell you what you can't do."

My work:
Android Ultimate Toolbox Pro Updated as of 4.5.2013
Boot Animation Factory Updated as of 1.6.2013
Boot Animation Creator Obsolete
Boot Animation Previewer Obsolete

Devices:
LG G2 D802 16GB: Android 4.2.2 Jellybean (stock)
HTC EVO 3D: CyanogenMod 11

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

Advanced Search
Display Modes