Android OS Forum banner
1 - 20 of 176 Posts

·
Registered
Joined
·
4,241 Posts
teamb00sted presents.....

boostedASSv2
A modified smartassv2 experience!
========================================================================================​
This is based in part on the port done by First Encounter for the DX. I have discovered that it will also compile for the other DROID devices that were available at the time of the port. I went further to tweak the stock smartassv2, as I felt that it was to CPU needy, with the transisition ideal freq at 800MHz!! Not a very good frequency to be set for ideal, at resting awake state. I further dived into the code and changed majority of the other frequencies, and transistions-based on my conservative tweaks made from PowerBoost. I will have the comparison of smartassv2 vs boostedassv2 in the 2nd post.

SOURCE TO COMPILE :

Is available at https://github.com/teamb00sted/boostedASSv2 and is cloneable by typing the following commands into terminal in linux:
Code:
<br />
DIR=~/android<br />
mkdir -p android<br />
cd android<br />
(DIR and the mkdir can be replaced for wherever you want the directory to be)<br />
git clone [URL=https://github]https://github[/URL].com/teamb00sted/boostedASSv2<br />
which will pull the code down from github and place it in $DIR/boostedASSv2 for you.

Here is the README that will be in your boostedASSv2 directory, which includes the neccesary source and compiling instructions.
!!!!Note that the directories typed out are only an example and should be modified to where your corresponding source is.!!!!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
####################################################################

boostedASSv2

# A modified smartassv2 governor experience

####################################################################

/*
* Currently works with DROID X, DROID X2, DROID 2/G, DROID 3, DROID BIONIC,
* and DROID RAZR
*
* Other DROID devices may compile but may not actually work and are untested
*/

/*
* Pre-reqs:
* ---------
* !! Must have Android Source on system
* !! Must have device kernel on system and compiled (available on SourceForge)
*/

===========================::Compiling::==============================

#cd to your directory (~/android/boostedASSv2 will be used in this tut)

cd ~/android/boostedASSv2

#edit the makefile to point to to the toolchain from source [CCPATH] and your compiled device kernel source [KERNEL__DIR]
# my toolchain from source is in WORKING_DIRECTORY

CCPATH := ~/android/WORKING_DIRECTORY/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
KERNEL_DIR ?= ~/android/dxkernel/omap3

#execute it

make

#remove intermediate files

make strip

#PROFIT
You will then have two .ko files in your directory, cpufreq_boostedASS2.ko and symsearch.ko.
These modules go into your /system/lib/modules directory.
NOTE!!!!!- If you are using Wizard's bootmenu, you do NOT need symsearch.ko as his is loaded already via the boot.

To run the module execute these commands in terminal after gaining root access and mounting system r/w:
Code:
<br />
busybox insmod /system/lib/modules/symsearch.ko<br />
busybox insmod /system/lib/modules/cpufreq_boostedASS2.ko<br />
This method will not survive a reboot. Create an init.d script in /system/etc/init.d/ and place the following text in it:
Code:
<br />
#!/system/bin/sh<br />
<br />
#You dont need this command if you have bootmenu in your rom(from Wizardof0s)<br />
busybox insmod /system/lib/modules/symsearch.ko<br />
<br />
#You definitely need this one<br />
busybox insmod /system/lib/modules/cpufreq_boostedASS2.ko<br />
<br />
#If you want boostedASSv2 set as default then this one too<br />
busybox echo boostedASSv2 > /sys/devices/system/cpu/cpu0/scaling_governor<br />
<br />
Set the permissions to match the rest of the init.d scripts and reboot :)

SCEW THAT! I WANT IT NOW AND DON'T WANT TO TYPE ANYTHING!

Well, than you are in luck :) Wizardof0s is placing this in his bootmenu for you MIUI users(as the source is already there for it), and I'm sure the upcoming bootmenu that will be used, will contain it as well (TALK TO YOUR ROM DEV-NOT ME).

Oh, and you can download it here as well. :)
Just download and flash in recovery, and it will load and select the gov as your default.
(If you dont want it as your default open /system/etc/init.d/99cpu and place a # in front of the insmod command)

======================================================================================
LINKS
Please note that ONLY the modules and the init.d script are in these zips. They are not flashable. Please follow the directions above :)
goo.im/devs/BMc08GT/TeamJBK/boostedASS2 will be the new home for downloads. Moved DX zip to here as well as follows the above suit.

D2/D2G
D2_CLICKY

D3
D3_CLICKY

DX
DX_CLICKY

DX2
DX2_CLICKY

DROID RAZR
RAZR_CLICKY

DROID BIONIC
BIONIC_CLICKY

All Donations are gladly appreciated and cherished. Makes me know you guys like my work. Show me the love <3
 

·
Registered
Joined
·
4,241 Posts
SMARTASSv2 vs. boostedASSv2
COMPARISON
============================================

smartassv2
boostedASSv2

#define DEFAULT_AWAKE_IDEAL_FREQ 768000 500000
#define DEFAULT_SLEEP_IDEAL_FREQ 300000 200000
#define DEFAULT_RAMP_UP_STEP 256000 160000
#define DEFAULT_RAMP_DOWN_STEP 256000 160000
#define DEFAULT_MAX_CPU_LOAD 50 70
#define DEFAULT_MIN_CPU_LOAD 25 40
#define DEFAULT_UP_RATE_US 48000 52000
#define DEFAULT_DOWN_RATE_US 99000 97000
#define DEFAULT_SLEEP_WAKEUP_FREQ 99999999 300000
#define DEFAULT_SAMPLE_RATE_JIFFIES 2 2
 

·
Registered
Joined
·
4,241 Posts
Explanation of the post above :)

#define DEFAULT_AWAKE_IDEAL_FREQ
/*
* The "ideal" frequency to use when awake. The governor will ramp up faster
* towards the ideal frequency and slower after it has passed it. Similarly,
* lowering the frequency towards the ideal frequency is faster than below it.
*/


#define DEFAULT_SLEEP_IDEAL_FREQ
/*
* The "ideal" frequency to use when suspended.
* When set to 0, the governor will not track the suspended state (meaning
* that practically when sleep_ideal_freq==0 the awake_ideal_freq is used
* also when suspended).
*/


#define DEFAULT_RAMP_UP_STEP
/*
* Freqeuncy delta when ramping up above the ideal freqeuncy.
* Zero disables and causes to always jump straight to max frequency.
* When below the ideal freqeuncy we always ramp up to the ideal freq.
*/


#define DEFAULT_RAMP_DOWN_STEP
/*
* Freqeuncy delta when ramping down below the ideal freqeuncy.
* Zero disables and will calculate ramp down according to load heuristic.
* When above the ideal freqeuncy we always ramp down to the ideal freq.
*/


#define DEFAULT_MAX_CPU_LOAD
/*
* CPU freq will be increased if measured load > max_cpu_load;
*/


#define DEFAULT_MIN_CPU_LOAD
/*
* CPU freq will be decreased if measured load < min_cpu_load;
*/


#define DEFAULT_UP_RATE_US
/*
* The minimum amount of time to spend at a frequency before we can ramp up.
* Notice we ignore this when we are below the ideal frequency.
*/


#define DEFAULT_DOWN_RATE_US
/*
* The minimum amount of time to spend at a frequency before we can ramp down.
* Notice we ignore this when we are above the ideal frequency.
*/


#define DEFAULT_SLEEP_WAKEUP_FREQ
/*
* The frequency to set when waking up from sleep.
* When sleep_ideal_freq=0 this will have no effect.
*/


#define DEFAULT_SAMPLE_RATE_JIFFIES
/*
* Sampling rate, I highly recommend to leave it at 2.
*/
 

·
Android Master
Joined
·
1,434 Posts
excited to see how this performs. Nice work.

After the flash and selecting it in the boot menu on the newest miui, it doesn't show up in rom toolbox pro.

I must be doing something wrong here.
 

·
Registered
Joined
·
4,241 Posts
Discussion Starter · #11 ·
excited to see how this performs. Nice work.

After the flash and selecting it in the boot menu on the newest miui, it doesn't show up in rom toolbox pro.

I must be doing something wrong here.
hm make sure the module is in /system/lib/modules. also try to run the following command in terminal(after su and mount system rw)

busybox insmod /system/lib/modules/cpufreq_boostedASS2.ko

Should load the module
 

·
Android Lover
Joined
·
557 Posts
Running it now:D
Edit: Actually, it's not loading automatically. Running MIUI. But I'll try what you posted above.
Edit again: When I go into Rom Toolbox it says I'm on ondemand.
"You know, a long time ago being crazy meant something. Nowadays everybody's crazy."
 

·
Android Master
Joined
·
1,434 Posts
hm make sure the module is in /system/lib/modules. also try to run the following command in terminal(after su and mount system rw)

busybox insmod /system/lib/modules/cpufreq_boostedASS2.ko

Should load the module
Thanks for the help, I got it now. The one posted in the miui thread did not work but the one in this one did.
 

·
Android Apprentice - Semi-noob
Joined
·
614 Posts
This is pretty much phone dependent, rather than ROM based, correct? Meaning, i'm running Boot Manager, and what i do to Miui (phone rom) in the Boot menu goes for the rest of them (I think, as i can change the govenor in each, just haven't checked to see if it changes at boot).

Thanks for all the work all of you DEV's have been puting in on our beloved DX. Almost going to hate using my upgrade in a couple of months.
 

·
Registered
Joined
·
215 Posts
excited to see how this performs. Nice work.

After the flash and selecting it in the boot menu on the newest miui, it doesn't show up in rom toolbox pro.

I must be doing something wrong here.
I thought so too, but rom toolbox hid it at the top so I had to pull the menu down. Maybe that's it for you too?
 

·
Android Master
Joined
·
1,434 Posts
That's a possibly too. It's up and running now.

Sent from my DROIDX using RootzWiki
 

·
Android Apprentice
Joined
·
1,305 Posts
Running on wizards latest. Working flawlessly. Much appreciated.

Sent from my DROIDX using Tapatalk 2 Beta-4
 

·
Android Developer
Joined
·
396 Posts
I've got it up and running on Gummy 090 at the moment. Found it immediately.
Did you have to do anything special? I flashed the zip and my phone would boot up but it would reboot after a minute.
 
1 - 20 of 176 Posts
Top