Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
-Mr. X-
Old
(Last edited by -Mr. X-; 25th May 2011 at 04:25 AM.)
#1  
-Mr. X-'s Avatar
Senior Member - OP
Thanks Meter 2060
Posts: 1,576
Join Date: Apr 2007
Location: Ontario
Talking [MODULES][GSM] Smartass & Interactive CPU Gov for Gingerbread [Patch Included]

100% tested and working!
FLASHABLE ZIP ATTACHED
Patch For GT-P1000 GB Source Attached

Smartass CPU Gov is tweaked by me to behave properly on the SGT and ill assume it works on the SGS. I was running this module (well i built it in to the overcome kernel source) on Froyo just fine. No Ramping issues. It has been modified a fair bit by Ziggy471 originally for my Bravo, and now has a working sysfs interface to change settings on the fly. Ramp up and down steps should always be multiples of 128000, this is default set at 256000 which i have found to be optimal. I would not recommend touching any of the other defaults i have set.

Interactive Gov has been modified to load properly with direction as its not finding a symbol. Smartass depends on Interactive.ko


To install:

Push to /system/lib/modules obviously and run these commands in an adb shell or via device terminal:


Code:
insmod /system/lib/modules/cpufreq_interactive.ko
insmod /system/lib/modules/cpufreq_smartass.ko
init.d:

add these lines to an existing init.d script or download the one attached, and remove.txt from it. Push it to the device and chmod 755 it.

Code:
insmod /system/lib/modules/cpufreq_interactive.ko
insmod /system/lib/modules/cpufreq_smartass.ko

Big thanks to Ziggy471 for helping me with my C code, and af974 and crisvillani for being the testers since my tab is busted!

Patches Are attached, one labled with GINGERBREAD was made from the newly released Galaxy Tab Gingerbread source. It is assuming that the kernel devs will include the 600MHz frequency so the table conforms to =< 250MHz step up or down on each level of frequency. Otherwise They will have to define 800MHz as a skipped frequency in the config when compiling the kernel. I have made the patch to also export the nr_running symbol in sched.c which is needed by both interactive and smartass.
The Following 6 Users Say Thank You to -Mr. X- For This Useful Post: [ Click to Expand ]
 
af974
Old
#2  
af974's Avatar
Recognized Developer / Retired Forum Moderator
Thanks Meter 1876
Posts: 4,942
Join Date: Jan 2008
I'm going to test it right now, thanks for sharing though.
“You have to learn the rules of the game. And then you have to play better than anyone else.” ~ Albert Einstein
The Following User Says Thank You to af974 For This Useful Post: [ Click to Expand ]
 
-Mr. X-
Old
#3  
-Mr. X-'s Avatar
Senior Member - OP
Thanks Meter 2060
Posts: 1,576
Join Date: Apr 2007
Location: Ontario
Thanks, i would have liked to test them make sure they behave properly. But i'm unable to.
 
af974
Old
#4  
af974's Avatar
Recognized Developer / Retired Forum Moderator
Thanks Meter 1876
Posts: 4,942
Join Date: Jan 2008
I don't know what i'm doing wrong but i can't insmod it, get: " unknow symbol in module or invalid parameter.Any advice?

Note: I have it under System/lib/modules
Quote:
Originally Posted by -Mr. X- View Post
Thanks, i would have liked to test them make sure they behave properly. But i'm unable to.
“You have to learn the rules of the game. And then you have to play better than anyone else.” ~ Albert Einstein
 
-Mr. X-
Old
#5  
-Mr. X-'s Avatar
Senior Member - OP
Thanks Meter 2060
Posts: 1,576
Join Date: Apr 2007
Location: Ontario
Quote:
Originally Posted by af974 View Post
I don't know what i'm doing wrong but i can't insmod it, get: " unknow symbol in module or invalid parameter.Any advice?

Note: I have it under System/lib/modules
The module is probably borked then, I will investigate. Does Interactive work?

If neither do i will pull them both.

can you do a dmesg and post it?
 
af974
Old
#6  
af974's Avatar
Recognized Developer / Retired Forum Moderator
Thanks Meter 1876
Posts: 4,942
Join Date: Jan 2008
i'm testing it, wait a bit for a reply.
Quote:
Originally Posted by -Mr. X- View Post
The module is probably borked then, I will investigate. Does Interactive work?
“You have to learn the rules of the game. And then you have to play better than anyone else.” ~ Albert Einstein
 
af974
Old
#7  
af974's Avatar
Recognized Developer / Retired Forum Moderator
Thanks Meter 1876
Posts: 4,942
Join Date: Jan 2008
Interactive zip is empty, you forgot it
“You have to learn the rules of the game. And then you have to play better than anyone else.” ~ Albert Einstein
 
-Mr. X-
Old
#8  
-Mr. X-'s Avatar
Senior Member - OP
Thanks Meter 2060
Posts: 1,576
Join Date: Apr 2007
Location: Ontario
Quote:
Originally Posted by af974 View Post
Interactive zip is empty, you forgot it
LOL damn, its fixed now and uploaded

also

dmesg | grep smartass

would be better to run to see what its complaining about when you try to install it.
 
af974
Old
#9  
af974's Avatar
Recognized Developer / Retired Forum Moderator
Thanks Meter 1876
Posts: 4,942
Join Date: Jan 2008
Dmesg attached.
Quote:
Originally Posted by -Mr. X- View Post
LOL damn, its fixed now and uploaded

also

dmesg | grep smartass

would be better to run to see what its complaining about when you try to install it.
Attached Files
File Type: txt dmesg_smartass.txt - [Click for QR Code] (3.1 KB, 108 views)
“You have to learn the rules of the game. And then you have to play better than anyone else.” ~ Albert Einstein
 
af974
Old
#10  
af974's Avatar
Recognized Developer / Retired Forum Moderator
Thanks Meter 1876
Posts: 4,942
Join Date: Jan 2008
I'm getting the same error with interactive, it could be that i'm doing something wrong?
I'm doing all by terminal, i'm gonna try another terminal app.
“You have to learn the rules of the game. And then you have to play better than anyone else.” ~ Albert Einstein

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...