yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab  Android Development] af974:
Ok, good news, interactive works without error, i can see it in Setcpu menu.

Smartass gave me the usual error.

Sorry i'm on tab and it isnt easy to post the dmesg error, i will try to post it from browser.

Brb

edit:

od: can't insert '/system/lib/modules/cpufreq_smartass.ko': unknown symbol in mor
/ # dmesg | grep smartass
<4>[21522.851573] cpufreq_smartass: Unknown symbol __create_workqueue_key (err 0)
<4>[21522.852053] cpufreq_smartass: Unknown symbol destroy_workqueue (err 0)
<4>[21522.852473] cpufreq_smartass: Unknown symbol sysfs_create_group (err 0)
<4>[21522.852892] cpufreq_smartass: Unknown symbol cpufreq_unregister_governor (err )
<4>[21522.853263] cpufreq_smartass: Unknown symbol nr_running (err 0)
<4>[21522.853702] cpufreq_smartass: Unknown symbol sysfs_remove_group (err 0)
<4>[21522.854120] cpufreq_smartass: Unknown symbol __cpufreq_driver_target (err 0)
<4>[21522.857116] cpufreq_smartass: Unknown symbol get_cpu_idle_time_us (err 0)
<4>[21522.857690] cpufreq_smartass: Unknown symbol queue_work (err 0)
<4>[21522.858031] cpufreq_smartass: Unknown symbol cpufreq_register_governor (err 0)
<4>[21595.039272] cpufreq_smartass: Unknown symbol __create_workqueue_key (err 0)
<4>[21595.039818] cpufreq_smartass: Unknown symbol destroy_workqueue (err 0)
<4>[21595.040321] cpufreq_smartass: Unknown symbol sysfs_create_group (err 0)
<4>[21595.040806] cpufreq_smartass: Unknown symbol cpufreq_unregister_governor (err )
<4>[21595.041326] cpufreq_smartass: Unknown symbol nr_running (err 0)
<4>[21595.041754] cpufreq_smartass: Unknown symbol sysfs_remove_group (err 0)
<4>[21595.048263] cpufreq_smartass: Unknown symbol __cpufreq_driver_target (err 0)
<4>[21595.048748] cpufreq_smartass: Unknown symbol get_cpu_idle_time_us (err 0)
<4>[21595.049370] cpufreq_smartass: Unknown symbol queue_work (err 0)
<4>[21595.049786] cpufreq_smartass: Unknown symbol cpufreq_register_governor (err 0)
<4>[21800.327317] cpufreq_smartass: Unknown symbol __create_workqueue_key (err 0)
<4>[21800.327782] cpufreq_smartass: Unknown symbol destroy_workqueue (err 0)
<4>[21800.328440] cpufreq_smartass: Unknown symbol sysfs_create_group (err 0)
<4>[21800.328955] cpufreq_smartass: Unknown symbol cpufreq_unregister_governor (err )
<4>[21800.329485] cpufreq_smartass: Unknown symbol nr_running (err 0)
<4>[21800.330030] cpufreq_smartass: Unknown symbol sysfs_remove_group (err 0)
<4>[21800.330455] cpufreq_smartass: Unknown symbol __cpufreq_driver_target (err 0)
<4>[21800.330965] cpufreq_smartass: Unknown symbol get_cpu_idle_time_us (err 0)
<4>[21800.331572] cpufreq_smartass: Unknown symbol queue_work (err 0)
<4>[21800.332025] cpufreq_smartass: Unknown symbol cpufreq_register_governor (err 0)
/ #
[Galaxy Tab  Android Development] -Mr. X-:
Alright, I will work on smartass now then.

Thanks for the help!
[Galaxy Tab  Android Development] af974:
Wonderfull :-D

Just onething, with insmod you will lost everything after a sofreset, can you make (or post istructions) for an init.d script?

Thank you so much.
[Galaxy Tab  Android Development] -Mr. X-:
can you do cat /proc/kallsyms and give me the whole list. it will be long but its easier if i just have all the symbols and locations.
[Galaxy Tab  Android Development] -Mr. X-:
once we get it working ill make an init.d script as well for you guys.
[Galaxy Tab  Android Development] af974:
Gimme 5 minutse.
[Galaxy Tab  Android Development] -Mr. X-:
alright, thanks.
[Galaxy Tab  Android Development] af974:
Lol i guess it will be a bit more then 5minutse :D

i hope it will stop at some point lol
[Galaxy Tab  Android Development] -Mr. X-:
Please attach it in a text file lol

If you think it will be too long.

these are the important ones i need.

EDIT: made the command faster for you

cat proc/kallsyms | grep -E "__create_workqueue_key|destroy_workqueue|sysfs_create_group|cpufreq_unregister_governor|sysfs_remove_group|__cpufreq_driver_target|get_cpu_idle_time_us|queue_work|cpufreq_register_governor"
[Galaxy Tab  Android Development] af974:
I have already it full but i cannot find a way to upload it.

I'm going to make the fast cat way otherwise pm me your mail so i will send you the full cat.
[Galaxy Tab  Android Development] af974:
Ok, done

export PATH=/data/local/bin:$PATH
$ export PATH=/data/local/bin:$PATH
$
$ req_unregister_governor|sysfs_remove_group|__cpufreq_driver_target|get_cpu_idle_time_us|queue_work|cpufreq_register_governor"
c03bd8a0 T destroy_workqueue
c03bdc40 T __create_workqueue_key
c03bdd64 t __queue_work
c03bddc8 T queue_work_on
c03bde50 T queue_work
c03cf2ec T get_cpu_idle_time_us
c042d744 t bdi_queue_work
c045d378 T sysfs_remove_group
c045d670 T sysfs_create_group
c052c168 T scsi_queue_work
c05ef554 T __cpufreq_driver_target
c05efbe0 T cpufreq_unregister_governor
c05efc34 T cpufreq_register_governor
c08cd13c r __ksymtab_destroy_workqueue
c08cd144 r __ksymtab___create_workqueue_key
c08cd17c r __ksymtab_queue_work_on
c08cd184 r __ksymtab_queue_work
c08cd42c r __ksymtab_get_cpu_idle_time_us
c08cda54 r __ksymtab_sysfs_remove_group
c08cda64 r __ksymtab_sysfs_create_group
c08ce8a4 r __ksymtab_scsi_queue_work
c08cec94 r __ksymtab_cpufreq_unregister_governor
c08cec9c r __ksymtab_cpufreq_register_governor
c08cecb4 r __ksymtab___cpufreq_driver_target
c08d1637 r __kstrtab_destroy_workqueue
c08d1649 r __kstrtab___create_workqueue_key
c08d175f r __kstrtab_queue_work_on
c08d176d r __kstrtab_queue_work
c08d25da r __kstrtab_get_cpu_idle_time_us
c08d6069 r __kstrtab_sysfs_remove_group
c08d608f r __kstrtab_sysfs_create_group
c08daa9b r __kstrtab_scsi_queue_work
c08dc8b4 r __kstrtab_cpufreq_unregister_governor
c08dc8d0 r __kstrtab_cpufreq_register_governor
c08dc918 r __kstrtab___cpufreq_driver_target
$
[Galaxy Tab  Android Development] -Mr. X-:
I should have something shortly, its a fair bit of work on the smartass code to fix all of that.

Take 8 is up in the first post.

Im going home to get a beer now. w00t done work.
[Galaxy Tab  Android Development] af974:
Cool! Now i'm at home, test is on the go :p
[Galaxy Tab  Android Development] af974:
A different error from before with smartass:

insmod: init_module '/system/lib/modules/cpufreq_smartass.ko' failed (No such fi
le or directory)

Interactive is fine.
[Galaxy Tab  Android Development] -Mr. X-:
it should load, i think i see an error(s) in some of my init code tho lol im asking a friend who knows c better

EDIT: no we're good. I did something right lol
[Galaxy Tab  Android Development] -Mr. X-:
awesome, i have to research that lol

dmesg | grep smartass

in the mean time rmmod cufreq_smartass.ko and try to repush and reinstall
[Galaxy Tab  Android Development] af974:
Look here:

dmesg | grep smartass
<4>[ 917.273408] cpufreq_smartass: Unknown symbol __create_workqueue_key (err 0
)
<4>[ 938.862906] cpufreq_smartass: Unknown symbol __create_workqueue_key (err 0
)
<4>[ 1001.659159] cpufreq_smartass: Unknown symbol __create_workqueue_key (err 0

# rmmod cufreq_smartass.ko
rmmod cufreq_smartass.ko
rmmod: delete_module 'cufreq_smartass' failed (errno 2)
[Galaxy Tab  Android Development] -Mr. X-:
alright lets see if i can fix this straggler
[Galaxy Tab  Android Development] -Mr. X-:
Ok, i think its because the kernel exports that symbol under the gpl license.

My smartass has no license tag.

I put it in now and have recompiled and uploaded.

Take9 is up
[Galaxy Tab  Android Development] af974:
Unfortunately.........no, lol i'm joking :D it works fine now !!

Great job my friend, i can set both smartass and interactive from setcpu.

lol you did it, and without a tab......i'm impressed!

Edit, is this command needed? :

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governorssmartass int
eractive userspace ondemand performance
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governorssmartass: No suc
h file or directory
interactive: No such file or directory
userspace: No such file or directory
ondemand: No such file or directory
performance: No such file or directory
[Galaxy Tab  Android Development] -Mr. X-:
If you can see the Gov already then its not needed! w00t is it throttling up and down from max to min properly??
[Galaxy Tab  Android Development] af974:
Uhm...something strange here.

With smartass it stay on 800 Mhz without throttling, but the strange thing is that after some seconds the scaling return to conservative.

Same with interactive but it throttle from min to max.
[Galaxy Tab  Android Development] af974:
Ahhh...i feel lioke a noob lol.

nevermind my last post, i had profiles on lol.

Anyway smartass throttle from 800 to 1000

interactive from 100 to 1000
[Galaxy Tab  Android Development] -Mr. X-:
800-1000 that sounds wrong it should throttle from min-max and inbetween
[Galaxy Tab  Android Development] af974:
Yup, it never goes under 800.........well, for me it's time to bed, i'm a bit far away from canada :D.

See ya soon Mr. x and thanks again for your work, i will read tomorrow if any news :)
[Galaxy Tab  Android Development] -Mr. X-:
Ok i hope some one else will test and confirm this is not a unique issue to you then i will have to look into it. I think most of the redefining i did today was all useless and could have been solved from a simple license setting.

So i may compile a smartass test module with just the license set make sure its not a symbol causing the wrong down ramp.
[Galaxy Tab  Android Development] crisvillani:
Will test now :D
[Galaxy Tab  Android Development] crisvillani:
tested get same results as above interactive scales to 100-1000 and smartass to 800-1000 . but is definitely working :D
[Galaxy Tab  Android Development] -Mr. X-:
Can you please remove the smartass module you surrent have installed and try the test_smartass.ko i have attached.
[Galaxy Tab  Android Development] crisvillani:
Result when insmod:

insmod: can't insert '/system/lib/modules/test_smartass.ko': unknown symbol in m
odule or invalid parameter
#
[Galaxy Tab  Android Development] -Mr. X-:
Ok then i know that the redefining i did today and everything wasn't for nothing. no i have to figure out the ramp issue.

THANKS!
[Galaxy Tab  Android Development] crisvillani:
My Pleasure :)
[Galaxy Tab  Android Development] -Mr. X-:
If your willing try take10's smartass module attached to first post
[Galaxy Tab  Android Development] af974:
Hello,

smartass take10 module has the same problem with scaling 800-1000.
[Galaxy Tab  Android Development] -Mr. X-:
hmm ok lets check its setting since this is the easiest thing to do first

ls /sys/devices/system/cpu/cpu0/cpufreq/smartass

then cat everything in there and tell me what the values are.
[Galaxy Tab  Android Development] af974:
ls give me this result:

ls /sys/devices/system/cpu/cpu0/cpufreq/smartass
/sys/devices/system/cpu/cpu0/cpufreq/smartass: No such file or directory
[Galaxy Tab  Android Development] af974:
Ok, after have set up Smartass on Setcpu, i have an output:

ls /sys/devices/system/cpu/cpu0/cpufreq/smartass
down_rate_us
up_min_freq
sleep_max_freq
sleep_wakeup_freq
sample_rate_jiffies
ramp_up_step
max_ramp_down
max_cpu_load
min_cpu_load

Edit: attached also the folder.
[Galaxy Tab  Android Development] -Mr. X-:
Alright, all of those contain the correct settings in the sysfs.

i think i may have found the reason but thanks for this anyhow.

New test is up.
[Galaxy Tab  Android Development] af974:
Tested it but unfortunately it doesn't work, always scaling from 800 to 1000.
[Galaxy Tab  Android Development] -Mr. X-:
Hmmmm this is starting to get hard to test with out a device :S

I'm asking my friend to look over my code see if there is anything i have done wrong or missed.
[Galaxy Tab  Android Development] -Mr. X-:
Did you happen to grab the test smartass? if so can you try to install it, it will fail but then do a dmesg | grep snartass

I want to see whats still complaining after i have put the correct license settings on it.
[Galaxy Tab  Android Development] af974:
i dunno if this could be of any help but when you go to setcpu to chose the governor, interactive is wrote "InteractiveX"
[Galaxy Tab  Android Development] -Mr. X-:
That shouldn't be an issue. I will change that though next build

can i get a

cat /sys/devices/system/cpu/cpu0/cpufreqcpufreq_avialable_frequencies

and can you install test_smartass.ko

and give me a

dmesg | grep smartass
[Galaxy Tab  Android Development] af974:
i don't have this cpufreq_available_frequencies in my cpufreq directory, infact cat return me the error on no such file or directory.

Testing test_smartass
[Galaxy Tab  Android Development] af974:
Do i have to insmod test_smartass.ko?

insmod /system/lib/modules/test_smartass.ko
insmod: init_module '/system/lib/modules/test_smartass.ko' failed (No such file
or directory)

if i didn't insmod:

# dmesg | grep smartass
dmesg | grep smartass
<4>[ 146.675967] cpufreq_smartass: Unknown symbol nr_running (err 0)
[Galaxy Tab  Android Development] -Mr. X-:
ok this is a good thing actually

give me 5 to compile a module that i ****ed with much less lol
[Galaxy Tab  Android Development] -Mr. X-:
New Take uploaded to first post

also in set cpu info what are the available freq's that smartass and interactive can scale to that it lists?
[Galaxy Tab  Android Development] af974:
The interactive in zip has wrong extension, it is .o instead .ko, tryied to rename it but i cannot see it as governor in setcpu.Anyway smartass in setcpu as the same error and i can set frequencies from 100 to 1000 step by 100.hope you meant that before.
[Galaxy Tab  Android Development] -Mr. X-:
yah i saw i included the wrong one ill inclue it now in the first post. Interactive has been renamed so it has no X in its name.

that smartass one has not had any redefining. so if its not scailing properly with the new interactive im uploading now. then there is something changed in the 2.3.X kernel that is breaking smartass for the SGT and i have to investigate.
[Galaxy Tab  Android Development] -Mr. X-:
try this

echo "55" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load

and

echo "25" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load

and see if its starts to ramp properly

also

cat /sys/devices/system/cpu/cpu0/cpufreq/stats/trans_table
[Galaxy Tab  Android Development] -Mr. X-:
OK after some reading i found there is a limitation with the way it steps down.

IF down step is greater then 250MHz it will fail and stall.

The SGT's freq table is like this

1000

800

400

200

100

Its steps down by a division of 2 of the previous freq.

To bypass this i have set the downstep of 800 to be ignored.

Give take 13 a try in the first post.
[Galaxy Tab  Android Development] af974:
Nope, no luck also i do not have trans_table, i have cat total_trans and i got 758 as result.

Later i wanna give a try to flash the stock froyo rom and see if it work there.
[Galaxy Tab  Android Development] -Mr. X-:
Try my new uploaded package on the first post. Dont go back to froyo its not going to help us and its too dangerous to flash boot and sbl back and forth. thats how i bricked my ****.
[Galaxy Tab  Android Development] af974:
There is no reason to flash it back, you got it, now it works fine (also the init.d script).

I can say that you did a big change for our tab kernel...woot i'm happy :-D

Thank very much my friend, very nice work :-)
[Galaxy Tab  Android Development] -Mr. X-:
Well i honestly couldn't have done this with out you testing things for me, so thanks to you and Ziggy471 as well since he has been helping me and watching over my shoulder for my mistakes :D
[Galaxy Tab  Android Development] af974:
I like to test new things and honestly i've learn a lot of things thanks to you in this thread :-)

The strange thingh is that i didn't see many interest from other people but maybe they don't know what is the smartass governor ;-)
[Galaxy Tab  Android Development] -Mr. X-:
yah usually in the desire section a smartass module for a kernel with out source i a hornets nest, i wonder since no one has got smartass to behave properly on the Galaxy Tab if users have forgotten that it will greatly benefit us.
[Galaxy Tab  Android Development] maxtcee:
i was just about to post that

can you give a breif rundown on what smartass does

im always looking to mess with new ****

thanks
[Galaxy Tab  Android Development] -Mr. X-:
This is an excerpt from erasmux, he developed this for the Hero, Ziggy471 modified it further fixing a few flaws, and i have adapted it for the Galaxy Tab.

"smartass governor – is based on the concept of the interactive governor.

I have always agreed that in theory the way interactive works – by taking over the idle loop – is very attractive. I have never managed to tweak it so it would behave decently in real life. Smartass is a complete rewrite of the code plus more. I think its a success. Performance is on par with the “old” minmax and I think smartass is a bit more responsive. Battery life is hard to quantify precisely but it does spend much more time at the lower frequencies.

Smartass will also cap the max frequency when sleeping to 352Mhz (or if your min frequency is higher than 352 – why?! – it will cap it to your min frequency). Lets take for example the 528/176 kernel, it will sleep at 352/176. No need for sleep profiles any more!"

Of course our frequencies are better then the listed above as we have a better processor.

I have it set to a min screen off freq of 100MHz so no need to set a profile for screen off any more!

it ramps up and down much more precisely via your current load and spends much more time in the lower frequencies with out a performance hit.

It is the ultimate scheduler for battery preservation IMO and i only use this scheduler on all my devices.

It does and will make a noticeable difference in your battery, especially combines with OC/UV (will come when source is out i will make a patch and post for the kernel devs, now that we have this working implementation of it will be seamless, especially when we can edit our freq table to be a little more smartass friendly :D)

Hope that helps explain things.
[Galaxy Tab  Android Development] ssserpentine:
Is this fully working? Thread tittle says yes, but comments say no.

Which is it?

Hope it does, because i am sick of the video lag and poor quality.
[Galaxy Tab  Android Development] -Mr. X-:
It's 100% working. The comments were all test before it was as my tab is bricked on off for repair so i had to recruit some helpful users for tests.

I even have a flahsable zip to install hem but i cant test it lol so i just decided not to post.
[Galaxy Tab  Android Development] maxtcee:
yes great explanation

a few ?s

will this eliminate set cpu

and can i use this on any rom?
[Galaxy Tab  Android Development] -Mr. X-:
No it wont eliminate set cpu as its a module so you will need some way of selecting it as the default at boot. unless you want to write a script to do this. set cpu is the best way.

you can use it on any gingerbread rom. if you want it for any other froyo rom just let me know what one and i will see what source they are using and compile them for you as long as you can give me a few small details from the device.
[Galaxy Tab  Android Development] nobleskill:
Ill test the flashable.zip.for.ya if.u like.

Running latest overcome on Au GSM tab. Usually ok with stuff like this, only time i wish i hadnt gotten involved was back in the great xbox 360 disaster of '07.

Long story but i learned not to solder drunk on that one, whats the worst that could happen with a simple flashable zip?

Haha let me know.

Sent from my GT-P1000
[Galaxy Tab  Android Development] -Mr. X-:
HAHAHA im a hardware guy by trade so soldering drunk..... 0.o :p

Here is the zip to test
[Galaxy Tab  Android Development] ssserpentine:
everywhich way i try this, it says not found upon entering first line in terminal emulater

i pushed smartass and interactive to correct location. didnt push txt files tho, can someone help?
[Galaxy Tab  Android Development] crisvillani:
works :)

10char
[Galaxy Tab  Android Development] ssserpentine:
thank you so much for the cwm flashable!

installed no problem on my stock gingerbread with cf root.

now its time to play!
[Galaxy Tab  Android Development] ssserpentine:
So i have had a chance to play.

When i flashed this i had 45% battery. I have benn streaming video, surfin the web and playin games. After two hours of this or more, battery stats are only down 11 or 12% I have been watching my cpu through all this. It has deffinetly stayed at lower frequencies for longer periods and when it used to sit maxed out at 1000 with browser and flash going. It only hit it a couple times, briefly and chilled in the general 800 range.

Great job! Not only will this help battery consumption, but it will help preserve the life and health of our processor.

Definetly +1

Don't Panic
[Galaxy Tab  Android Development] awitee:
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!
[Galaxy Tab  Android Development] ssserpentine:
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
[Galaxy Tab  Android Development] awitee:
thanks for the thorough response! :D ill try this later, hopefully it will add to the already great battery life of the overcome rom :D
[Galaxy Tab  Android Development] af974:
You can also find SetCpu free version here http://xdaforums.com/showthread.php?t=505419 (always thanks the devs!)

While i was sleeping (standby) my tab only loose 2% battery in 10 hours! :D
[Galaxy Tab  Android Development] nobleskill:
Yup works a treat mate... there may be more to that story hey just not tonnage tell it cause there may be minors reading! Lol... still got the MB (and rest) if that 360.... complete with (well)>15 traces parted company... funny thing was I slipped did the damage but thought "I don't look it didn't happen, back together she goes... it'll be fine I'm sure..." famous last words!!

Excellent work here mate... it makes a difference to the performance and overall smoothness.

Now we just need/want OC + UV + Voodoo for overcome. Lol. Not demanding at all!!

Sent from my GT-P1000
[Galaxy Tab  Android Development] nobleskill:
Just to qualify that;

during the initial boot it seems to move very quick. Loads default home screen, apps (various super user notifications) and starts the media scan. It will seem to freeze, or atleast it does when Open Home 6 is the fault home, but if you wait it will come back. It also seems a faction slow on wake up but it very quickly regains its composure.

Fantastic work again mate. Even if smartass proves unstable on my CPU I atleast now have interactive which in the past has worked a treat on my Tab. I will monitor and report back.

Sent.... nuff said really...
[Galaxy Tab  Android Development] maxtcee:
I installed this but can't see smartsss in setcpu

BTW I'm using the free version of setcpu not sire if it makes a difference
[Galaxy Tab  Android Development] ssserpentine:
its not available under scaling?
[Galaxy Tab  Android Development] maxtcee:
Nope also forgot to note I'm on cm7
[Galaxy Tab  Android Development] -Mr. X-:
try this

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors smartass interactive userspace ondemand performance

in a shell
[Galaxy Tab  Android Development] ssserpentine:
Also try this. Update to a working gingerbread. Ours. Why cm7? Its so broken. Did it get fixed?