yashsingh1/xdaforums huggingface dataset:
[XPERIA X8 Original Android Development] AnDyX:
I don't listen music using my phone - but for test I just use XGin player and I turn screen off. So looks like on my phone 122880 is enough :)

You can enable some debug informations from 'smartass' governor using following command:

echo "3" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/debug_mask

it shows in dmesg current CPU load and freq and what governor want to do.
[XPERIA X8 Original Android Development] biscoitu:
Well, I´ve just made the tests, and it becomes laggy. Here are the logs.

I´m using kuyaDROID :)

Edit: I´ve just forgot the ps :p, sry, if needed just ask for it if logcat and dmesg isn´t enough :)

Edit: attached ps output :D
[XPERIA X8 Original Android Development] AnDyX:
Do you both use DSP Manager(Equalizer)? After turning it on - my phone almost die :)
[XPERIA X8 Original Android Development] Flasher8:
any changelog for smartass 2 ? :)
[XPERIA X8 Original Android Development] Paschalis:
Noobie questions..

Smartass can be combined with oc right?

And the smartass will save battery when phone is idle?

And the max freq will be more than 600, eg 710..
[XPERIA X8 Original Android Development] biscoitu:
I gonna make some test here. Post the result here after that on this post:)

Edit: LoL, Solved the problem, now I´ve a question, what that DSP is doing to kill the phone??? :p

Thx AnDyX, now It´s running properly :D
[XPERIA X8 Original Android Development] AnDyX:
I just added :).

I didn't try but hopefully should works.
[XPERIA X8 Original Android Development] Flasher8:
hi andy,

if i using smartass v1,i just need to push smartass v2 to lib/modules only ?

should i put any insmod ?
[XPERIA X8 Original Android Development] AnDyX:
No - just replace old one.
[XPERIA X8 Original Android Development] Flasher8:
thanks for the quick answer.:D
[XPERIA X8 Original Android Development] Paschalis:
SmartassV2 works fine works 710 hertz, in setCPU, with overclock module also loaded..

with higher frequencys isn't stable(random reboots)
[XPERIA X8 Original Android Development] ASHLEY117:
correct set up

just need a little guidance, im using froyobread v020, oc module and smartass v2 set with setcpu, main profile using on demand governor and screen off profile using smartass governor. is this ok or need tweaking?:confused:

ps i didnt insert echo command line in hw-config.
[XPERIA X8 Original Android Development] biscoitu:
I´m using manual changes on hw_config.sh and don´t using SettingCPU, I think it´s better manually then using such app :D

I changed a lot of configurations on my smartass and got a lot of safe battery life :D

PS: smartass is my default governor instead of ondemand one :D
[XPERIA X8 Original Android Development] AnDyX:
There is no sense to use 'smartass' governor only for 'ScreenOff' profile.

'smartass' governor is replacement for SetCPU when is used only for 'ScreenOff' profile.

You can disable profiles in SetCPU, set 'smartass' as default governor, set it in CM settings and after that check if you are happy while using only 'smartass' governor.

I don't use SetCPU now and if I remember correctly in CM settings there is settings for max CPU freq too.
[XPERIA X8 Original Android Development] ASHLEY117:
i tried the manual way and got the music lag bug deedii suffered aswell so just seeing if there is an equillibrium using on demand and smartass together?

theres no cpu settings in froyobread as there is in cm7 roms, i have to use setcpu to set governor.
[XPERIA X8 Original Android Development] AnDyX:
You probably use equaliser/ DSP Manager - that's the problem.

When screen is off - CPU is set to lowest possible value. DSP Manager does not work well in FroyoBread too..
[XPERIA X8 Original Android Development] biscoitu:
Yeap.;...AnDyX, told me today about this lag, what was causing it :D, solved my problem, Just turned of DSP manager :)

I didn´t understand why it lags but its ok, not much difference on sound :p
[XPERIA X8 Original Android Development] ASHLEY117:
going manual now:D:D:D
[XPERIA X8 Original Android Development] deedii:
so biz it has somethng 2 do with dsp, just turn it off and that fix our prob? Can you please pm me again ur settings ill use it now? Thanks much andyx and biscoitu. Lablab.mwuah.

PS: It is better to have DSP, the sound is so good, but more importantly saving battery is great. So when i what sounds that pumps my heart fast ill switch to ondemand then switch back to smartass on daily use. I know you will figure this out so we can use dsp again with smartass. :)

Edit: ops i read ur pm after posting here. Again thank u tow much..

Sent with love!
[XPERIA X8 Original Android Development] AnDyX:
DSP eats your battery faster :) If you really want to use 'smartass' and DSP try to set higher value for:

echo "320000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_max_freq

or

echo "480000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_max_freq

Better solution is to use any player with EQ buildin, I just quickly look and found following:

- PowerAMP - not free but power full : PowerAMP

- MixZing - there is free version on market too: MixZing.

I check trial of PowerAMP and MixZing from market and works fine with EQ set to ON. Both contains EQ better then DSP.
[XPERIA X8 Original Android Development] deedii:
Yup im using poweramp now, i figured that out a while ago that there is eq in poweramp, got it pro.hehe..im fine with biscoitu setting saves a lot batt, i will try your default with v2, ill see which is better, were on manual now.. :) x0x0

BTW did you delete dsp in your phone?
[XPERIA X8 Original Android Development] AnDyX:
Yep - I just removed it :).

So now I can start thinking about more 'smart' low memory killer ;)
[XPERIA X8 Original Android Development] biscoitu:
Just a little report, I got 7% of drainage with a bit of 3G and calls, and 0% for more than 6 hours of idle phone. Loving using this module. Thx for supporting us AnDyX!!!!!

:D
[XPERIA X8 Original Android Development] ASHLEY117:
switching to power amp now, thanx
[XPERIA X8 Original Android Development] DeFcOn:
This module is for use in the main profile in setcpu profile or only screenoff??
[XPERIA X8 Original Android Development] AnDyX:
The module is intended to use instead of SetCPU and set in CM settings (or in main and without any profile).
[XPERIA X8 Original Android Development] ahmedz_1991:
when i was using froyobread or eclair, this governor sucked. But in FXP011, this governor does it all great balance and better battery life while overclocked plus great gaming experience. this is the perfect governor to work with FXP011.
[XPERIA X8 Original Android Development] kuyagaol:
come on.. you blame the governor when the rom is the problem.

instead of sucked, it will be nice if u say it works better in gb than fb.

somebody might hurt.
[XPERIA X8 Original Android Development] ahmedz_1991:
sorry if i went hard on somebody. but the main goal for this governor is bett performance/battery balance and that never happened except in rewritten 2.3 FXP. so the reason it works now is the rom not the other way around
[XPERIA X8 Original Android Development] biscoitu:
Well, after 2 days with this settings:

echo "50000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_rate_us
echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/down_rate_us
echo "9999999" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_min_freq
echo "60000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_max_freq
echo "600000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_wakeup_freq
echo "122000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/awake_min_freq
echo "316000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_up_step
echo "122880" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_down_step
echo "75" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
echo "20" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load
echo "450000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_rate_us

I got almost 40% drained without hard use of my phone as screenshot attached :)

But I will modify those settings since I feel the phone lags a bit, because I´m using too low freq while sleeping :p

@AnDyX, is this normal that the CPU never reach 122MHz while the screen is on? I´m just asking because when using ondemand it shows 122MHz many times :p
[XPERIA X8 Original Android Development] deedii:
bis should we increase sleep_max_freq? Im playing with much setting i also got great combi but with phone lags so i switch back to your setting more stable for me.
[XPERIA X8 Original Android Development] AnDyX:
With default settings - OS Monitor shows that CPU sits on 122MHz a lot of time.
[XPERIA X8 Original Android Development] biscoitu:
I´m doing some more experiments, with the new settings it doesn´t lagging while scrolling menus like the older one :D

@AnDyX, strange, in my case I hardly see it ae 122Mhz even i don´t change anything, just load the module.Could it be something different between your actually ROM an mine one? I´m running KuyaDROID 2.7.136 :)
[XPERIA X8 Original Android Development] AnDyX:
The question is - where you check CPU freq ?
[XPERIA X8 Original Android Development] biscoitu:
I use that system panel app, and you?
[XPERIA X8 Original Android Development] brapicoco:
im running on kuyadroid 2.7 and from what i have understood in smartass it improves the battery life. kuyadroid has a built in smartass governor (ondemand default governor) so basically no need to install the smartass because kuyadroid has it already?

cpu freq always remains at 122mhz after changing governor to smartass.
[XPERIA X8 Original Android Development] deedii:
Hmm ondemand is a way different governor than smartass in terms in battery saving :)
[XPERIA X8 Original Android Development] brapicoco:
so basically the built in smartass in kuyadroid improves my battery life? rebooting the system returns it to ondemand.
[XPERIA X8 Original Android Development] AnDyX:
I heard that it always shows 600MHz with 'smartass'. I use free app from Market: OS Monitor.
[XPERIA X8 Original Android Development] dzadzev:
No, It's not showing 600Mhz always ... that was reported only by one user ...

It is working as it should work, It's showing different freq depending on load ... also monitoring with same app is OK, when screen is off it's 122
[XPERIA X8 Original Android Development] brapicoco:
correct me if I'm wrong but when i set my governor to smartass my x8 did not run as smooth as when it was ondemand. i tried changing it alternately and saw that. I tested it when booting on screen going to settings then flinging down.

in smartass: it shows small lags, ondemand: runs down smoothly.
[XPERIA X8 Original Android Development] biscoitu:
I don´t have any of these issues. I don´t user overclock and undervolt modules, just a bit modified settings of smartass since I´m testing to fit my needs :)

But the defaults won´t lag anything. Are you using OC or UV modules?
[XPERIA X8 Original Android Development] biscoitu:
I had that issue but it was my fault :p, I´ve changed hw_config so it stops showing always 600Mhz :)

I will take a look at Os Monitor :)
[XPERIA X8 Original Android Development] brapicoco:
i dont use kuyadroid's OC because it crashes my phone and reboots it neither do i use undervolt. i use the standard smartass. so what should i do with mine? i want to prolong my phone's battery life without sacrificing its smoothness.. any suggestions?
[XPERIA X8 Original Android Development] biscoitu:
So, you use kuyaDroid. If you want to try, you may use my modified hw_config to see if you get better than you have now :)

Here it goes
[XPERIA X8 Original Android Development] brapicoco:
what is hw config? umm the lag happens when i open settings then fling down. lag is very evident with smartass.
[XPERIA X8 Original Android Development] biscoitu:
hw_config.sh is the script that the phone loads while booting and set some parameters, for example, the smartass module settings :)
[XPERIA X8 Original Android Development] brapicoco:
so this will directly affect kuyadroid's built in smartass right? so what i should do is flash the zip file in xR right?

question (out topic) if i did a full wipe on a rom will that mean it will remove the dual touch module and the other modules that i have flashed in that rom? thanks :)
[XPERIA X8 Original Android Development] biscoitu:
No...it´s pushed by hand using ADB
[XPERIA X8 Original Android Development] brapicoco:
i dont know what is adb... :( all i know is flashing through xR.. sorry man..
[XPERIA X8 Original Android Development] biscoitu:
You may copy and past the hw_config.sh with root explorer or ES File Explorer that is free :)
[XPERIA X8 Original Android Development] brapicoco:
thanks man :) where should i copy it? from what i have observed when i set my phone to smartass battery consumption is still the same as ondemand.
[XPERIA X8 Original Android Development] ahmedz_1991:
to /system/etc

and yes no big difference between the two governors (say 10%)
[XPERIA X8 Original Android Development] AnDyX:
I depends on how frequently you use the phone, it's designed to save battery when screen is off and react faster when screen is on.
[XPERIA X8 Original Android Development] kakho55:
hi, any ppl got hw.cong set for froyobread? can upload.. thanks...
[XPERIA X8 Original Android Development] fifo171:
you don't have to edit hwconfig if you're using FB, just copy the module to /system/lib/modules and reboot. and after that read first post in froyobread thread
[XPERIA X8 Original Android Development] york824:
I don't see the point using this module.

I used it for quite a while, but noticed no difference in terms of battery consumption or performance. In stead, it seems to be not working with background music playing. That being said, if I play some AAC files and then turn off the screen, the playback would be sluggish and broken. MP3 playback seems to be fine. So I switched back to ondemand.
[XPERIA X8 Original Android Development] DeFcOn:
AnDyX please tell me how to set smartass like Ondemand.:)
[XPERIA X8 Original Android Development] ahmedz_1991:
what do u mean by "set"?? make active ?? u do that in CM7 settings>performane>CPU>governor or using setCPU app or writing this line in terminal or hw_config then reboot:

echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

or do u mean governors assets?? scripts are on first post, write them in terminal or in hw_config for permanent set
[XPERIA X8 Original Android Development] DeFcOn:
i mean set parameters ramp_down_step, etc like in ondemand!:)
[XPERIA X8 Original Android Development] biscoitu:
All you need is to read carefully the first post
[XPERIA X8 Original Android Development] AnDyX:
I'm not in good mood today - I click 'Thanks' instead of Quote .....

Do you use equaliser/DSP Manager ??
[XPERIA X8 Original Android Development] OmegaRED^:
On the x10i/a pages they implemented a interactive Governor.

I was hoping that developers can implement this as it gives really good control over the cpu and helps battery life a lot.

I use this setting on my x10i

I was hoping we could get this for the mini as it really makes a big difference.

http://android.doshaska.net/interactive
[XPERIA X8 Original Android Development] AnDyX:
As standing in 1st post

If you want behavior of interactive governor set:

echo "999999" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_up_step
[XPERIA X8 Original Android Development] biscoitu:
WTF??? I´ve changed this ramp_up_step to 999999 and my phone stopped draining my battery. Danmit, I didn´t understand anything now :p
[XPERIA X8 Original Android Development] AnDyX:
This settings just means that when load is higher that set value - CPU freq will be set to max.
[XPERIA X8 Original Android Development] biscoitu:
but O changed it and my battery stopped draining :p

anyway, let me observe it from now.
[XPERIA X8 Original Android Development] Flasher8:
can i just add this 2 line in sh_config ?

echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo "999999" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_up_step

have any other echo to make it smoother ? :)

thanks
[XPERIA X8 Original Android Development] biscoitu:
This is my last settings for testing :D

#SmartAss personal Config!
echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_rate_us
echo "40000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/down_rate_us
echo "250000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_min_freq
echo "122880" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_max_freq
echo "600000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_wakeup_freq
echo "123000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/awake_min_freq
echo "999999" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_up_step
echo "210000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_down_step
echo "75" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
echo "25" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load
echo "500000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_rate_us
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

I´m not using OC module, and have UV loaded by ramdisk on GingerDX.
[XPERIA X8 Original Android Development] AnDyX:
already added in 1st post
[XPERIA X8 Original Android Development] Carpe-Dimi:
does this function as a replacement for the x8ov.ko module?

as in do i delete the lines about x8ov from hw_config and place the smartass ones in there?
[XPERIA X8 Original Android Development] biscoitu:
What is x8ov??Do you mean x8uv??? if so, it´s not the same thing and you should not want to delete it :)
[XPERIA X8 Original Android Development] Carpe-Dimi:
x8ov is another module that enables the setting and changing of cpu speeds in our x10 mini roms.

but I meant that in my hw_config there's some lines regarding the working of the ondemand governor, and wether that should still remain now.

but i just added new lines and left the old and working great, so never mind me :rolleyes:
[XPERIA X8 Original Android Development] norbi_nw:
ok i will ask thi once, because i don't know the answer yet... I guess after a reboot you loose this and have to insmod again.

So how do i add it to hw_config?

I already added the dualtouch thingy and the sleep1 to the beginning of hw_config. What do i add (only insmod and the link to file or something else too) here and WHERE (before my dualtouch+sleep1 or under that?)

Any more positive feedbacks? :) do games run a bit faster? 2.1.1.C.0.0 thati am running now claims to have +10-15% more battery life, with this (if it's true) maybe i will get another +10% :)

EDIT: BTW is this to complete setCPU or to fully replace it? (i don't use setCPU, i only dragged min to 122 and max is still 600, thats it, no profiles - with ondemand governor).
[XPERIA X8 Original Android Development] biscoitu:
Well, I´m using this governor with some modifications on config, and my phone is turned on for 2d and 7hours, and I still have 55% of battery remaining. The main goal of this module in my opinion is not to have better performance on games, just a bit of improvement on return of sleep mode and battery life. I don´t know this information about 2.1.1.C.0.0, so I can´t tell you anything about. I don´t use setCPU, I´ve just pasted information of governor on hw_config and set governor there.

If you have problems with lags with this governor you may try another confs values and see what you get on responses of your device.I´m very satisfied with mine :), and you may try changing the defaults :D.

Ps: the module isn´t to replace SetCPU, it only add another option on governors you may choose.

Edit: My personal conf is this:

#SmartAss personal Config!
echo "28000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_rate_us
echo "45000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/down_rate_us
echo "135000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_min_freq
echo "122880" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_max_freq
echo "600000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_wakeup_freq
echo "135000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/awake_min_freq
echo "999999" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_up_step
echo "205000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_down_step
echo "75" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/max_cpu_load
echo "25" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/min_cpu_load
echo "500000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_rate_us
echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Performance depends on ROM you are running, the amount of RAM you have free, OverClock (I personally don´t use it) and the amount of apps you have installed (which eats your RAM while running, even on background).
[XPERIA X8 Original Android Development] norbi_nw:
ok i pasted to hw_config (what was written in first post... insmod and the echo "smartass").

Where do i paste your settings?

will my hw_config be like this:

insmod /system/lib/.... bla bla (to the smartass.ko)

#SmartAss personal Config!

echo "28000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_rate_us

echo "45000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/down_rate_us

echo "135000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/up_min_freq

echo "122880" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_max_freq

echo "600000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_wakeup_freq

echo "135000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/awake_min_freq

echo "999999" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_up_step

echo "205000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/ramp_down_step

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

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

echo "500000" > /sys/devices/system/cpu/cpu0/cpufreq/smartass/sleep_rate_us

echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Is this correct? (red lines are the only lines i have so far from smartass in my hw_config)
[XPERIA X8 Original Android Development] biscoitu:
@norbi, yeap it is right, it will activate for default after boot the smartass with these configurations :)
[XPERIA X8 Original Android Development] deedii:
Bis our setting dont work with gdx 10. It only works when phone is idle but when in use, drains your battery fast..
[XPERIA X8 Original Android Development] biscoitu:
Hmmmm, I have the same drain as always :p, I got almost 3 days and had about 33% of battery remaining. In this case I didn´t reboot my phone and didn´t use 3G connections. When I use 3G my battery drains a lot, almost 5% in less than 10min :D.

Edit: I´m trying another conf for now, let´s see what will happen to my phone :p. But I don´t think smartass will make it drain battery on use, since it works more when sleeping I think :D
[XPERIA X8 Original Android Development] deedii:
I agree but using xgin before with smartass even tho im 30mins using wifi i only got 12% drain but now 30 mins wifi oh its almost 40% drain..
[XPERIA X8 Original Android Development] swechrill:
Very nice module, but there is a problem. When trying to watch a divx movie with Rockplayer the framerate get very low when using smartass as scaling in setcpu. When changing to ondemand the problem disapear. I´m using GingerDX v.6. The DSP manager is uninstalled.
[XPERIA X8 Original Android Development] zhuhang:
smartass not really works for gingerbread.

It slows down the phone but doesn't save battery. Gingerbread OS is about performance, use smartass and see ur battery drains more.

Besides DSP, other equalizer apps not working too. Only inbuilt EQ(useless)
[XPERIA X8 Original Android Development] shaggoth:
can it be flashed via recovery or something? it seems like i have a huge troubles with adb (cable broken or something in my pc, i don't know yet). i have x10mini and miniCM6 on it.
[XPERIA X8 Original Android Development] shaggoth:
also, if i put it manually (via root explorer) in the place, what permissions should i set?