[MODULES][GSM] Smartass & Interactive CPU Gov for Gingerbread [Patch Included]

Search This thread

-Mr. X-

Senior Member
Apr 13, 2007
2,246
2,530
0
Ontario
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.
 

Attachments

  • 90modules.txt
    116 bytes · Views: 312
  • interactive_smartass_GB_SGS-SGT_TAKE13.zip
    8 KB · Views: 325
  • smartass_sgt_gb.patch.zip
    7.8 KB · Views: 280
  • interactive_smartass_flashable_2.6.35.7_SIGNED.zip
    166.3 KB · Views: 522
  • GINGERBREAD_SGT_cpufreq_smartass_interactive_2.6.35.7.patch.zip
    7.7 KB · Views: 349
Last edited:

af974

Retired Recognized Developer / Retired Forum Moder
Jan 22, 2008
4,968
1,702
253
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
Thanks, i would have liked to test them make sure they behave properly. But i'm unable to.
 

-Mr. X-

Senior Member
Apr 13, 2007
2,246
2,530
0
Ontario
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

Retired Recognized Developer / Retired Forum Moder
Jan 22, 2008
4,968
1,702
253
Dmesg attached.
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.
 

Attachments

  • dmesg_smartass.txt
    3.1 KB · Views: 117

af974

Retired Recognized Developer / Retired Forum Moder
Jan 22, 2008
4,968
1,702
253
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.
 

-Mr. X-

Senior Member
Apr 13, 2007
2,246
2,530
0
Ontario
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.

Well thats not good, Smartass depends on interactive, i had a brain fart there and forgot to mention that. this is why i posted both in one shot.

But if you cant get interactive to install then you wont be able to get smartass too.

If you want to throw me a dmsg of the interactive as well fi you cant get it to install. and i don't think you are doing anything wrong.
 

af974

Retired Recognized Developer / Retired Forum Moder
Jan 22, 2008
4,968
1,702
253
This is dmesg for interactive:

Code:
dmesg | grep interactive
[ 2593.847022] cpufreq_interactive: Unknown symbol nr_running (err 0)
 

af974

Retired Recognized Developer / Retired Forum Moder
Jan 22, 2008
4,968
1,702
253
Anytime buddy, thanks to you for this, i'm waiting for smartass from a long time. :)
Take your time, i will check this thread for any news and i will test asap.
Thank you, let me investigate this, thanks for the help!
 

-Mr. X-

Senior Member
Apr 13, 2007
2,246
2,530
0
Ontario
Anytime buddy, thanks to you for this, i'm waiting for smartass from a long time. :)
Take your time, i will check this thread for any news and i will test asap.

Alright i recompiled unstripped versions.

These should work. Install in the order you see on first post :)

I hope lol
 
Last edited:

af974

Retired Recognized Developer / Retired Forum Moder
Jan 22, 2008
4,968
1,702
253
No luck my friend :(

Code:
dmesg | grep interactive
[ 7468.721184] cpufreq_interactive: Unknown symbol __put_task_struct (
[ 7468.725687] cpufreq_interactive: Unknown symbol sched_setscheduler_
rr 0)
[ 7468.726887] cpufreq_interactive: Unknown symbol nr_running (err 0)
[ 7726.910534] cpufreq_interactive: Unknown symbol __put_task_struct (
[ 7726.912113] cpufreq_interactive: Unknown symbol sched_setscheduler_
rr 0)
[ 7726.913255] cpufreq_interactive: Unknown symbol nr_running (err 0)

Here's my terminal command
Code:
#su
#insmod /system/lib/modules/cpufreq_interactive.ko
 
  • Like
Reactions: -Mr. X-

-Mr. X-

Senior Member
Apr 13, 2007
2,246
2,530
0
Ontario
No luck my friend :(

Code:
dmesg | grep interactive
[ 7468.721184] cpufreq_interactive: Unknown symbol __put_task_struct (
[ 7468.725687] cpufreq_interactive: Unknown symbol sched_setscheduler_
rr 0)
[ 7468.726887] cpufreq_interactive: Unknown symbol nr_running (err 0)
[ 7726.910534] cpufreq_interactive: Unknown symbol __put_task_struct (
[ 7726.912113] cpufreq_interactive: Unknown symbol sched_setscheduler_
rr 0)
[ 7726.913255] cpufreq_interactive: Unknown symbol nr_running (err 0)

Here's my terminal command
Code:
#su
#insmod /system/lib/modules/cpufreq_interactive.ko

alright i think i may have actually tracked the issue down with interactive atleast. nr_running was undefined, the modules build fine with make modules but it threw the error if i atempted a full build.

so that should take care of the dmesg issue for that, unless its undefined in this kernel was compiled wiht it undefined in sched.c in if thats the case then i will have to work around that.

We could also try using richardtrips interactive module for the desire, just change the versionmagic. If this fails.
 

crisvillani

Senior Member
Oct 22, 2009
1,252
151
0
Don't mean to be a noob, but it seems may tab doesn't have a system/libs/modules folder :confused:

Will it work if i just create one or am I missing something ?
 

af974

Retired Recognized Developer / Retired Forum Moder
Jan 22, 2008
4,968
1,702
253
Same as before with 3rd attempt.....sorry bud.
Code:
dmesg | grep smartass
[12953.735293] cpufreq_smartass: Unknown symbol __create_workqueue_key (err 0)
[12953.735839] cpufreq_smartass: Unknown symbol destroy_workqueue (err 0)
[12953.736346] cpufreq_smartass: Unknown symbol sysfs_create_group (err 0)
[12953.736835] cpufreq_smartass: Unknown symbol cpufreq_unregister_governor (err
 0)
[12953.737393] cpufreq_smartass: Unknown symbol nr_running (err 0)
[12953.737827] cpufreq_smartass: Unknown symbol sysfs_remove_group (err 0)
[12953.738319] cpufreq_smartass: Unknown symbol __cpufreq_driver_target (err 0)
[12953.738768] cpufreq_smartass: Unknown symbol get_cpu_idle_time_us (err 0)
[12953.739365] cpufreq_smartass: Unknown symbol queue_work (err 0)
[12953.739854] cpufreq_smartass: Unknown symbol cpufreq_register_governor (err 0
Code:
dmesg | grep interactive
[12905.617134] cpufreq_interactive: Unknown symbol nr_running (err 0)
Alright attempt 3 is up, hope they suck less.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    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.
    5
    hi, im currently on the overcome rom 2.0 rc1, how do i go about installing this? do i need to install setcpu? what are the procedures to install the flashable zip file? does this still need the patch? thanks!

    No patch needed.
    Instal setcpu. Look in the market. It is a paid app.
    Download cwr flashable zip.
    Power off decice.
    Hold volume down and power until unit starts.
    It reboots into cwr screen.
    Select restore/backup.
    Press yes.
    When done, go to instal zip.
    Choose zip from file.
    Instal and say yes.
    Reboot.
    Open setcpu.
    Go to profiles and select smartass, also select set on boot.
    Enjoy.

    If anything goes wrong, power down device.
    Press volume down and power until it begins to boot.
    Go to back up restore.
    Restore.
    Select the backup you just made.
    Say yes.
    Let it run.
    Go to advanced.
    Select clear dalvic cache.
    Say yup.
    Reboot and you are back to where u were before anything went wrong. If anything does.



    Hit the thanks button if I helped at all!

    Don't Panic
    1
    I'm going to test it right now, thanks for sharing though.
    1
    No luck my friend :(

    Code:
    dmesg | grep interactive
    [ 7468.721184] cpufreq_interactive: Unknown symbol __put_task_struct (
    [ 7468.725687] cpufreq_interactive: Unknown symbol sched_setscheduler_
    rr 0)
    [ 7468.726887] cpufreq_interactive: Unknown symbol nr_running (err 0)
    [ 7726.910534] cpufreq_interactive: Unknown symbol __put_task_struct (
    [ 7726.912113] cpufreq_interactive: Unknown symbol sched_setscheduler_
    rr 0)
    [ 7726.913255] cpufreq_interactive: Unknown symbol nr_running (err 0)

    Here's my terminal command
    Code:
    #su
    #insmod /system/lib/modules/cpufreq_interactive.ko
    1
    Does this mean proper frequency reving?!?!?!?!

    Can we get even 1mhz faster than 1.4???
    I know i might be beating a dead horse here. But im stubborn.
    I will test any gsm attempt. It is vital i get as much as possible to help port vendetta online to our beloved tab!
    I am so close i can taste it. More speed! :)

    On the same note. Can anyone help me create a barebones rom?-not the word im looking for-
    I need my tab to have the most free ram available for game testing. It needs 600 originally. I modded it to use available.
    Also, dalvikvm? In build.prop. - explain please. Virtual memory, right. Mine is at 64m. Would up or down help me specifically?

    I dont wanna discuss the game. Unless you have these specific dev skills. PM me (i have express company permission to do what I am doing. Nothin illegal goin on. Proof available if you end up helping) i need one dev for each version of the us tab.
    Enough about that.

    Any thoughts on above questions?
    I knkw this isnt the correct thread. I just saw who was floatting around this thread right now and figured it was best time to ask all this.

    I havnt touched the freq table yet i want to make sure i have a booter before i mess with too much lol

    So far i have Chainfires recovery in it working, its booting and ive up patched to mainline 2.6.35.13
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone