yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] Cebees:
I don't know if it is said before. Just may be it can be used to create new governor :)

Too low frequency in idle state doesn't mean that it would save more power.

Considering this cases.

1) Phone syncs something using 1000mhz (50% load) using 5 sec and go back to deep sleep.

2) Phone syncs something using 500mhz (100% load) using 5 sec and go back to deep sleep

3) Phone syncs something using 100mhz (100% load) using 25 sec and go back to deep sleep

Obviously the third case will drain more juice even with lower voltage. So weighting between deep sleep and time needed to do something while idle is needed to be optimized. And you can guess, the second one could be the best.

Too high idle frequency = waste in CPU resource.

Too low idle frequency = waste in deep sleep time.

The concept is basicly, finish the job fast! and go back to sleep.Therefore, best case when idle = archiving the frequency at (let's say in easy word) 99.99% load (100% means it's not enough).

This happened to me last month when I had a lot of background apps running. with interactive governor at 128/1128 min/max. I found that the juice was drained much faster than 384/1128 min/max which is quite weird.:rolleyes:

Hope it helps something.
[XPERIA X10 Android Development] kivi90:
hey doom first off al i want to thank you for the (in my eyes) best kernel out there for our x10. i m currently runnign wolfbreak 4.0.3 with your v2 x-series.But had problems installing like some others that dont know why they get stuck at bootscreen. i had same problems i wiped sometimes and it doesnt work. then i just try todo nothing with freshinstall still no luck.I get it working by copying the boot.img into the kernel folder with rootexplorer. i gave that advice to others that have the probs and they were successful too. i am a noob to such things, but can there be a porblem with one of the other files with some roms such as chargemon for example?
[XPERIA X10 Android Development] DooMLoRD:
thanks...

can u post the original /system/bin/chargemon file from WB's ROM BEFORE U used my kernel files?
[XPERIA X10 Android Development] aZuZu:
@All: Here soundtrack for kernel: Power to The People

Great work as usual DooMLoRD.

P.S.

DooMLoRD don't be angry!
[XPERIA X10 Android Development] scotths:
To clarify for rough estimated power comparisons... Does power vary as a function of clock speed and voltage (presumably squared) or only as a function of voltage? For instance, if you lower the clock speed but keep the voltage the same do you see significant savings in power drawn (ie is the current drawn reduced by the decrease in clock cycles)? If both are a factor is there a rule of thumb that can explain how clock cycle and voltage roughly relate to power drawn for the purposes of comparisons such as the one below?
[XPERIA X10 Android Development] Haldi4803:
AJust install wb4.0.3cust! And Doomkernel over preinsstalled Freekernel.

Btt! I'm also on Wolfbreaks 4.0.3 and using Scary governor. But for some reason it automatically changes back to interactive every now and then.

I'm using CPUMaster. And some times I open cpumaster its interactive. When its still Scary and I press [apply] button it changes to interactive even though it was Scary before and Scary was selected in dropdown menue! WTF?
[XPERIA X10 Android Development] DooMLoRD:
sorry mate i dont have much idea abt this...

sorry mate check up with ur ROM dev... i dont have such problems on the ROMs i tested...
[XPERIA X10 Android Development] kivi90:
here is the kernel and bin folder he uses in his update.zips.
[XPERIA X10 Android Development] scotths:
Believe this is due to a tweak in wolfbreak's rom that he plans to modify in future versions.
[XPERIA X10 Android Development] scoobysnacks:
P=cfv^2

C is capacitance

f is frequency

v is voltage

p is power

Other guy tht first commented is totally incorrect on how CPU power usage works
[XPERIA X10 Android Development] DooMLoRD:
Big update

Different series kernels will no longer be maintained!

..

..

.

.

.

.

.

.

.

.

.

BECAUSE WE NOW HAVE CPU VOLTAGE CONTROL! (VDD CONTROL)!

.

.

..

.

.

.

PORTING THIS BUGGER WAS A BIG PAIN IN THE A**!!!

BUT NOW WE HAVE IT!

it means that u can define whtever voltage u want (within allowed limits) for any frequency!

basically u can now FULLY control ur cpu freq-voltage table!

FOR MORE INFO ON CPU VDD CONTROL CHECK THIS:

http://xdaforums.com/showthread.php?p=8857861#post8857861

FULL kernel will be released 2moro...
[XPERIA X10 Android Development] Lion3494:
So what will this include

Sent from my x10 on gingerbread
[XPERIA X10 Android Development] SK_007:
Yeah same question from my side as well,@Doom can you pls be more specific what does this mean?
[XPERIA X10 Android Development] DooMLoRD:
it means that u can define whtever voltage u want (within allowed limits) for any frequency!

basically u can now FULLY control ur cpu freq-voltage table!
[XPERIA X10 Android Development] aZuZu:
that means that this kernel is B.I.T.C.H --- Babe In Total Control Of Herself.

voltage control on specific frequency, fs suppot, kernel tweaks and let's not forget stable & fast "PttP" kernel brand by DooMLoRD.
[XPERIA X10 Android Development] The Gingerbread Man:
It means instead of doomlord maintaining essentially 3 different kernals he can now focus on just developing one because we can set our own voltage levels for cpu speeds.
[XPERIA X10 Android Development] xachiel:
this is now the true "power to the people" kernel.. nice doomlord!
[XPERIA X10 Android Development] scotths:
So... Taking a look at the example:

Modifying slightly to use frequencies close to the ones for our device (and using Doomlord's frequencies) we can find the power in proportion to C:

1) 1.280 gHz , 1.375 v = 2.42 C gigawatts

2) 0.640 gHz, 1.075 v = 0.74 C gigawatts

3) 0.128 gHz, 0.875 v = 0.098 C gigawatts

(ignore the funny units, it is the ratio which matters)

If we consider case 1 and 2 for 5 seconds and case 3 for 25 seconds we can compute the energy used in each case:

1) 12.1 C gigawatts*seconds (running for 5 seconds at 50%)

2) 3.7 C gigawatts*seconds (running for 5 seconds at 100%)

3) 2.54 C gigawatts*seconds (running for 25 seconds at 100%)

So, the lowest frequency appears to use the least amount of energy, despite the 5 fold increase in running time.

If one assumes that no processor cycles are wasted, the amount of energy used to complete a task consisting of a fixed number of cycles varies as the square of the voltage and frequency is not a factor. The difference in energy used in cases 2 and 3 is due entirely to the voltage difference and if the voltages were the same 5 seconds at 650 MHz would use the same energy as 25 seconds at 128MHz.

In reality as tasks require interactive with slower devices (ie radio, sd card reader etc.) there would likely be a significant number of wasted cycles. I suspect the lower frequency would decrease the impact of those significantly further reinforcing its advantage.

Perhaps what happened here is that in the first case the processor was forced to spend a larger portion of the its time in 1128 mode (rather than assuming that 128 simply replaces 384 and takes more energy to do the same task)? I think here you are showing why the min/max governor is not optimal.
[XPERIA X10 Android Development] maddes1402:
So does CPU voltage control means that everybody should have the possibility to use nearly all frequencies ina stable way?

For example, when someone have problems that the device is able to run with 128Mhz, when he/she increase the voltage on 128Mhz this could solve the issue on that frequency?
[XPERIA X10 Android Development] Asadroid:
if what doom says means taht we are going to get our heads into ADB i dont like, i will lose my lappy for a time, so no developing for me.

but if we get an APK that does the job would be nice. TBH im idk what im talking now :P

my only problem is that the kernel starts in so low voltage that i need to discharge the whole phone (removing the battery for 30s~1min) so it can boot
[XPERIA X10 Android Development] kindred7:
Your logic is a little flawed in that you are assuming the cpu is perfectly efficient and linear by design. If that is the case then you are correct but since heat dissipation increases with frequency in order to do the same work the higher frequency would consume more energy. Not only that but the circuitry has to be energized faster and driven harder; that energy is also pulled from the power source.
[XPERIA X10 Android Development] Asadroid:
making an article about this would be great you know?

and yes we should not forget we are powering a system not just the CPU, a system as a whole its what consume the power

taking that in account then every phone energy consumption will vary a bit
[XPERIA X10 Android Development] DooMLoRD:
DooMKernel (v03) Released!

DooMKernel v03 released

new feature:

user level CPU voltage control using sysfs interface!

since the user now is given control of CPU voltages i will be merging all 3 series kernels into one... in case some users still have problems i will restart FS series...

download links at first post!

enjoy!
[XPERIA X10 Android Development] DooMLoRD:
[ some info on VDD control ]

for v04 following are the voltages:

for v03 following are the voltages: (old)

FOR SUPPORTED COMMANDS PLEASE CHECK THE ORIGINAL AUTHORS POST: http://xdaforums.com/showthread.php?p=8857861#post8857861

there are multiple ways to monitor/control CPU voltages...

u can use following ways to execute the commands:

(manual way) adb shell OR terminal emulator

init.d scripts (autorunning at start)

GScript scripts

app (IncrediControl)

some more info:

the setting will only be active for that bootup session! u will need a script file in init.d to keep the settings constant during next bootup (this is only required if u dont use "set on boot" option/or if u dont use the app mentioned above)

min voltage (mV) allowed is: 750 (v04)..... 850 (v03)

max voltage (mV) allowed is: 1500 (v04)..... 1425 (v03)

voltage (mV) increments/decrements allowed only in steps of +25/-25

u can also directly set the voltage for a particular frequency

u can decrease/increase the voltage for ALL frequencies at a go

[IMP] i recommend that u DO NOT TAMPER the voltages of the following frequency:

19200 (19Mhz)

for further details please refer to: http://xdaforums.com/showthread.php?p=8857861#post8857861

preconfigured init.d startup scripts for setting cpu voltages to S/X series values (for v04 & for v03)

APP FOR CONTROLLING VDD: IncrediControl

i will keep adding stuff to this later
[XPERIA X10 Android Development] The Gingerbread Man:
Had E failure at line 1 installation aborted.

Edit

Settings about phone shows kernal as v3.
[XPERIA X10 Android Development] dualbore:
guess what happened with v03?

My phone got stuck at boot animation yet again. :(

EDIT:

v02 FS boots up and runs fine. Great battery life with scary governor, btw. :)
[XPERIA X10 Android Development] colossus:
Doom did post this bro...;)
[XPERIA X10 Android Development] G-FACE:
@DooM, will it be a problem (and give me good batt life) if i don't control the voltages by myself and leave them as you implemented them in K v03?

Also, if i don't touch the voltages they will be as stock voltages or some lower levels?

I'm not so into these things and don't want to mess things up.
[XPERIA X10 Android Development] DooMLoRD:
currently for sake of maximum compatibility i have kept the voltages at stock settings (like older S-series).... u can check the voltage table.... i have updated 2nd post with that info...

P.S.: when i get time i will post a shell script with which u can change the voltages to (old) X-series voltages...

hi, so it gets stuck at BOOTLOGO or BOOTANIMATION? also please mention which ROM u using this on
[XPERIA X10 Android Development] G-FACE:
Understand! So, if I use IncrediControl to set the voltages (worked well for me as in v01/v02 x series) i don't have to set them every time the phone is rebooted, right?
[XPERIA X10 Android Development] DooMLoRD:
YES!

also another thing:
[XPERIA X10 Android Development] G-FACE:
That would be perfect for me :D Thanks!
[XPERIA X10 Android Development] realfelix:
no x , s and fs series anymore? :(
[XPERIA X10 Android Development] 9Lukas5:
Hey doom, why can I see in incredicontrol 19Mhz frequency but lowest one in setcpu is 128Mhz?
[XPERIA X10 Android Development] G-FACE:
I noticed that too, but I can also see in Incredi other medium freq that are not present in the kernel. Maybe the app shows some standart freq and after that it is kernel related wich will be activated.

I guess so :p
[XPERIA X10 Android Development] 9Lukas5:
hmm, maybe

@doom, is it possible to integrate cwm in you're own ramdisk instead of using the one from cm7?
[XPERIA X10 Android Development] DooMLoRD:
there is no longer any need for X & S series....

BUT if many users face issue i will bring back FS series with just stock frequencies..

its not app related...

yes the VDD control interface is currently showing the FULL cpu freq table... i will add some code to the kernel sources which might fix this... its not really a major issue since those frequencies are disabled...

hu? i didnt follow...
[XPERIA X10 Android Development] Crocodile1973:
my phone just doesn't like x or s series or the new version 3. stock rom, just freezes on boot screen till pull battey.
[XPERIA X10 Android Development] Berik84:
@Doom

does your kernel load init.d at startup?
[XPERIA X10 Android Development] DooMLoRD:
yes...

/system/bin/sysinit is available on some ROMs... if ur ROM doesnt have it then ask ur ROM dev to include it!

if i get time i will post a custom sysinit file which should work on most roms and will execute init.d scripts..

did the FS series work for u?
[XPERIA X10 Android Development] dualbore:
Sorry, I mean bootlogo (the xperia one).

I'm still on ZMOD 003.
[XPERIA X10 Android Development] chiefy009:
I had this, use v2 S Series worked for me and now i have overclock to 1152 for the first time and stable underclock
[XPERIA X10 Android Development] diimaan:
hey doom!

I'm setting the frequencies to match the X-kernel,

it starts with 875mV for 128 mhz!

so should I leave the 19mhz at 1000mV?
[XPERIA X10 Android Development] silveraero:
So, need to flash version 2 before version 3? Cause I see there just one version 3 file :|
[XPERIA X10 Android Development] 9Lukas5:
If I remember right, you have said the cwm recovery is in the ramdisk. And if I use your kernel for cm7, I see the freexperia logo instead of your bootlogo. The problem is this, that with the cm7 compatible kernel, my whole rom freezes if I activate wifi. If the wifi module isn't there, my whole rom is crazy and makes everything, but not that what it should. And then I thought if you could integrate the cwm recovery in the ramdisk you use in your xrecovery compatible kernel packs, it's maybe possible for me/others to use cwm on other roms than j's cm7....
[XPERIA X10 Android Development] Crocodile1973:
yes the FS Series works, not the others.
[XPERIA X10 Android Development] Cebees:
I must say WOW, I rarely expect users to discuss about those stuffs. But yeah it reminds what I missed a lot. V square, that explains everything.

Ur post cleaned most of my curiosity, but I still don't clear about quote above, since most of the time it is in idling rather than my fiddling with it.

What I remember, 384 took something like 5% and 95% deep sleep, but it was like 20% 128, 80% deep sleep. The reason I jumped from 128 to 384 (skipping 245) was just to test it.

Your argument is obviously correct about the power consumption. But I guess there's something else with (only) mine. I'll made extra observation next time I try it.

Just hope this (false) discussion is a worthwhile for the others.
[XPERIA X10 Android Development] pheel:
changelog for v3 ? and also, why isn't there X,S,FS ?

and dude, why so fast releases? I dont even have enough time to look at the source and see that there's a new one already out :O

thanks anyways DooM.
[XPERIA X10 Android Development] DooMLoRD:
hey chiefy did v03 work for u?

yes dont touch the voltage settings for that freq...

no need.... just flash v03 file...

yes CWM recovery is in ramdisk... i have not changed bootlogo for FreeXperia CM7 kernel ;)

why are u using CM7 kernel then... try the normal kernels for stock rom...

also which rom are u using it on?

abt integrating CWM into other ramdisks... its possible but probably i wont be working on it..

X & S series are no longer needed as we now have CPU voltage control (VDD control)

it was a weekend and i had free time ;)

i will be pushing source to GIT tonight ;)
[XPERIA X10 Android Development] Zocker Tko:
hi, thanks flashed modFXP-DooMKernel-v03 on rom see in my sig

system boots fine with your kernel and wifi works, but xrecovery is gone (i know that before)

so my question is, what is better to keep the older xrecovery(sytem/bin), or update to xrecovery gb ready (system/xbin), because after update i have two busyboxes one in system/bin and one in system/xbin, or doesnt matter?
[XPERIA X10 Android Development] DooMLoRD:
better use new GBready-recovery...

BTW i have not included busybox in my kernel package
[XPERIA X10 Android Development] pheel:
Hmm, what what about noobs [or people not bothered like me] that only purely 133ch? [fine, i'll get round to changing them, but again, I'm limited on time :C ]

hahaha I wish I had free time... I had so much time to mod symbian ...

Yes please, must look at sauce [source] :L
[XPERIA X10 Android Development] 9Lukas5:
I'm using normal kernels right now, but I want to have cwm, that's why I have tried to use the kernel for cm7 from you, but with those sympthomes, I can't use the cm7 kernel, that's why I asked if you maybe can get the cwm recovery working on your normal kernel, too, cause the normal kernel is working and the only thing I miss there now is cwm.
[XPERIA X10 Android Development] InternationalPlayer71:
Has anyone tried 1400 mV yet??Any report?? Is it safe?
[XPERIA X10 Android Development] DooMLoRD:
mate u will have to help ur self... i am not imposing any restriction on users...

on the contrary i am giving u guys the power to select wht works best for u...

if some users want spoon feeding i am sorry i cant & wont do that....

if u found this offensive, i apologies...
[XPERIA X10 Android Development] kinglargo:
Ver03 is working like a charm on z's cm7 003.3.

Thanks Doomlord

Sent from my x10 Z's CM7
[XPERIA X10 Android Development] chiefy009:
@DoomLord

Just flashed V3, booted up no problems, flashed no problems

( i have no idea about this voltage stuff so is it safe to just put the voltage table as on 2nd post ? )

EDIT : just looked voltage set same as table by default all working nice
[XPERIA X10 Android Development] 9Lukas5:
I have made it that way and haven't any problems yet. Only thing I have changed is that I haven't used the mV value from the x-series for 128Mhz, cause that was a bit too low for me on the earlier kernels, so I increased the voltage there a lil bit compared to x-series voltage table that I can use that frequency too.
[XPERIA X10 Android Development] chiefy009:
Everything is ok, might try messing with Voltage later not sure though ? might change gentlely and see what happens

phone still doesnt like 1228, highest I can go is 1152

edit -- dropped 128 voltage to 975 all seems stable
[XPERIA X10 Android Development] kivi90:
i wonder how far a x10 with 1400 mV can be pushed without killing it =)
[XPERIA X10 Android Development] 9Lukas5:
I'm using 128Mhz with 900mV and also haven't any problems yet. I get problem(device doesn't wake up anymore from screen off) if I set the voltage lower as 900 at 128Mhz.

I'm using the voltages of the old x-series. You can find the voltage-table on the second post. Only 128Mhz isn't the same, cause instead I would get the problem said above. Maybe that's a orientaition for you too?
[XPERIA X10 Android Development] chiefy009:
I have set a thread in general to stick findings of voltages and governors that work well I will pm it to you

dropped 128 to 950

192 to 975

still all working
[XPERIA X10 Android Development] pheel:
noo , not offensive at all! i hate those noobs that ... yerh . but i mean , some of us dont have the time and etc.

however will download your source from github when I got the time. so, the presetted is what the stock one is yerh?

- hmm -

i dont like the thing much. will make a simple gui when time arises C: ill do this before looking at your kernel source... but fark, i got pretty much nil spare time .
[XPERIA X10 Android Development] Zocker Tko:
thanks again, wow so much settings we can do, i become a headache:D

it seems all works fine

with "no frills cpu control" 1075mhz/128mhz scary deadline

with "incredcontrol" i use the voltage settings from your first post in the cmd window, only the 128mhz i have changed to 850mv
[XPERIA X10 Android Development] kivi90:
kernel flashed and everything is working just perfect.=)

only thing is that my x10 still hates 1228800 frequency even with 1425mv it instant wlods =) but who cares i use my x10 with max 500mhz to save battery and its still fast enough toeven play without lags =)
[XPERIA X10 Android Development] Karlson2k:
Suggestion from Z is again partial workaround.

The problem is deeply than just governor. With 2.1 ROM frequencies was used more wisely.

May be you can try to mix something from 2.1 & 2.3 ROM?
[XPERIA X10 Android Development] bharadwaj1991:
What's the point for having 19mhz didn't you or zdzihu say that if its using the same voltage or in this case more than 128mhz which is UV to 850 and 19mhz like you said has to be at 1000. Seems as if it would use more battery if/when it was used. If I am wrong then nvm you can ignore this comment.
[XPERIA X10 Android Development] InternationalPlayer71:
So..high voltages (1400-1425) can be tried,right?? I'm a bit scared..i don't want to use my x10 like a paperweight!! :P
[XPERIA X10 Android Development] kivi90:
yeah stock voltage for that freq is 1375 and i get instant wlod. i just wanted to try if my x10 could handle the speed for a short time but no chance but like i said i never use such high freqs =)