yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] :
It's not going to save any power compared to leaving it set to ondemand during suspend. When the CPU is idle, it is idle, but using a governor like conservative or powersave is likely to make it be idle for less time, thus causing increased power usage. :D

Here is an interesting article about power management: http://www.codon.org.uk/~mjg59/power/good_practices.html
[Desire Android Development] sfjuocekr:
That an article about C states...

Next to that with screen off your phone is not completely idle it will still do something from time to time.

But that's not the point, the point is there is something wrong with sleep...
[Desire Android Development] :
No, the article is about power management and various governors, as well as C states.

'The best power savings can be obtained by running the CPU as fast as possible until any outstanding work is completed and then allowing the CPU to go completely idle.'

'The conservative governor behaves like ondemand but takes longer to switch states. This will almost always result in it taking longer for the processor to become idle, thus increasing power consumption.'

Exactly, you said yourself it will do something from time to time, and you want it to do that something as quickly as possible so it can go back to sleep and reduce it's power consumption, hence why I am saying use ondemand.

There are no sleep issues with ondemand.
[Desire Android Development] The_limit:
yo mate, love your kernel, but after flashing your kernel over miui, apps like protector, app lock and such dont work anymore. the service is running but the lock doesnt work, i can just start protected apps without it asking a password. my guess is that you have a missing module.

miui is aosp btw
[Desire Android Development] Radikaal:
Could anyone be so nice to upload this kernel with some modified voltages, like 1225mv @ 998MHz? or write a simple guide to how to do it yourself ?

Donation worth from me atleast if anyone would take the time to do it.
[Desire Android Development] sibere:
What I did to build my own kernel:

1/ go to http://www.villainrom.co.uk/forum/archive/index.php/t-825.html and follow the guide to cross-compile a kernel.

2/ use git to clone the sources

3/ edit arch/arm/mach-msm/acpuclock-scorpion.c for an SVS kernel in the downloaded sources and build your kernel with SVS instead of HAVS (make menuconfig to change this setting)
[Desire Android Development] neilix:
Is there a way to see the voltages for each of the frequencies?
[Desire Android Development] :
The file which you need to modify in the vorkKernel is actually this one.

Thats a poor guide anyway, it's encouraging people to modify the .config with a text editor which you shouldn't be doing. You should be using make oldconfig after patching then make menuconfig if you wish to change something.
[Desire Android Development] :
I'll do it for you if you want, just PM me with what voltages you want at each frequency. I can't guarantee it'll be stable though, but I guess thats part of the fun. :p
[Desire Android Development] sibere:
Yes it's a poor guide. But it gave me all the basic info to compile my own kernel. Obviously one must adapt and take only the good stuff on it.

If someone plans to edit .config, then they don't know what building a kernel means. But that's why I wrote to use make menuconfig to change kernel options.
[Desire Android Development] itsfozzy:
Quick question, I want to give this kernel a try on the latest MIUI ROM, if I don't like it, do I simply re-flash the MIUI ROM to go back to stock MIUI?

I ask this, as I'm used to flashing different kernels on DeFrost, and if you don't like one, you simply flash one of the other options.

Cheers
[Desire Android Development] sfjuocekr:
Only true when states are switched, you do indeed want tasks to finish as fast as possible. But in our case here comparing ondemand vs conservative we safe a few micro seconds. And I'm 100% sure that 4ms spent at half power has no more or less power consumption.

You article holds not true for ARM CPU's, let's get back on topic shall we...
[Desire Android Development] :
The principles of the article hold true for any CPU which scales frequencies. I don't believe that it was off topic in the slightest.
[Desire Android Development] golf60:
is there a chance to implement the CK2 schedule from ziggy´s kernel in the vork? :-) ziggy is very fast...
[Desire Android Development] Benee:
The scheduler is the same. Don't know what ziggy did but ck2 is a bugfix for .36 kernels. There was a problem with the wifi (wifi worker patch). 35 Kernels don't need this.
[Desire Android Development] golf60:
ok. it's perfect that your Kernel is in the new oxygen ROM from Adam. it get a Quadrant with max oc from 1956. i'll get over 2000 but till now i don't know what i can do ... :-)
[Desire Android Development] vnvman:
Just fyi, i've beaten my record the other day, running the vork: sky is the limit :cool:
[Desire Android Development] nemolivier:
Realy great kernel but the long press for waking is boring.

For the moment, I must press the OJ for 1 or 2 second to wake the phone.

What can I do to avoid it ?

Regards.
[Desire Android Development] Murd0ck:
i get the same behavior with mine... would be nice if it where instant like the normal kernel.

else i can only say good things about this.. running nice and stable, haven´t had any problems after i went to ondemand mode. :D
[Desire Android Development] golf60:
use ondemant Gouverneur and the problem is away...
[Desire Android Development] nemolivier:
I believe that we use this kernel for the «*smartass*» too…

but thank’s indeed, cause I solve the problem by using a high priority rule in SetCPU*:

when the screen is off, it put the governor on «*powersave*». Et voilà.
[Desire Android Development] chareos12:
hi,

I flashed this (AWESOME) kernel on my OpenDesire 4.0.37

performance, as in perceivable smoothness has improved noticeably to me.

I'm having just a few issues, I'd like to know if they're known/solvable:

- Rom manager doesn't open up anymore. It stays on an unresponsive black screen. This happened to SetCPU once, too.

- screen off power usage climbed from 4-7mA / minute to 9-11mA under the exact same circumstances and the very same screen off SetCPU profile (384-49x MHz Conservative)

Also a question:

does this kernel include the always-on-when-screen-off WiFi module, good for downloading and streaming ?

Thanks
[Desire Android Development] :
Your issues with ROM manager and SetCPU could be down to Superuser playing up.

No, it doesn't include the hacked wifi module.
[Desire Android Development] chareos12:
You mean Superuser got freeze/dead ?

A phone reboot solved for both, I noticed now.

About WiFi module, I surely hope it'll be included soon, it's great and - mA drain wise - with no impact on battery, I deeply observed.

Meanwhile, I'll try the usual module from the specific topic and see if it plays nice.
[Desire Android Development] :
Yeah, Superuser probably hung and stopped responding to requests from apps, it does that now and again.

Well, I wouldn't want it included because it interferes with the way the wifi chip goes into suspend mode, so it is bound to use more battery. People who need it can compile it though.
[Desire Android Development] cigga33:
Sorry but, where are download link? vork_droid's Twitter page? it's right?
[Desire Android Development] StuMcBill:
I have just installed this kernel and was wondering how to enable UV via SetCPU?

Or is it only OC that is enabled by SetCPU?
[Desire Android Development] Benee:
It's for OC. Voltages are in acpuclock
[Desire Android Development] StuMcBill:
Thanks Benee!

Do I need a setcpu.txt on my SD card to overclock?
[Desire Android Development] Benee:
Just Autodetect and then pull the bar higher
[Desire Android Development] mad-murdock:
About HAVS vs SVS

the documentation provided in post one is down, but I read about it before.

Havs dynamically changes voltages where svs stays the same voltage. So in screen off, svs doesn't save battery as havs does...

At least, that is what I read. But if I am right there, why do the latest kernel builds only offer svs? Is havs bad for performance, or is my understanding of the havs svs matter wrong?
[Desire Android Development] :
SVS adjusts the voltage depending on the CPU frequency between 975mV and 1300mV in the current release, it has a static table of frequencies and voltages. So when the CPU is idle @ 245MHz, the voltage will be at the lowest level (975mV) and when the CPU is at full load @ 1152MHz the voltage will be at the highest level (1300mV).

HAVS adjusts the voltage in a similar way to SVS, by using a static frequency table, but it has a voltage range at each frequency instead of a fixed value and it uses hardware sensors to provide only as much voltage as the hardware needs so you can save more power.

It's also likely to be more unstable and is certainly more unstable in my experience.

SVS FTW. :)

Hope that explains it. :)
[Desire Android Development] mad-murdock:
Yes, it explains the matter very well. Two things left...

Can you explain, how htc stock kernel works? Since nearly every custom rom and kernel seam to save battery compare to stock.

Also, consider linking that insightful answer to post one for replacing the broken github link.

And last not least... The sleep mode is different from 245mhz, I guess?

Swyped with my S-OFF'd brain using teh internetz
[Desire Android Development] mad-murdock:
I discovered an interesting issue about this kernel.

After I read so much good stuff,i wanted to give it a try.

It worked pretty well in normal daily usage, but now, it didn't.

I watch hdtv avi videos via cifs. I used rock player, but since the free arcmedia player used the same libs, the behaviour should be the same.

Playing videos lags. It is not smooth like it should be, but you got random video freezes during playback. I tried stock frequency and also maximum overclocking.i tried smartass, on demand and performance. Nothing changed.

When flashing my cyanogen kernel again, it was smooth again.

Maybe there is something wrong with cifs in this kernel? I used the latest 7.1 release.

If you give detailed instructions,i can do further tests.

Swyped with my S-OFF'd brain using teh internetz
[Desire Android Development] Sarsippius:
@ mad-murdock, a few pages back I reported the same issue with r7.1. For me it's also playing standard hdtv rips (ie. 175MB avi for ~20min tv show) in Rockplayer but from the sd card so I don't think it's cifs related.

I use MIUI but tried flashing Oxygen the other day to test this issue as it includes vorkKernel and I get exactly the same thing so it doesn't appear to be rom related either.

It seems that most using this kernel don't have the problem but hopefully benee gets to the bottom of it.
[Desire Android Development] :
i just had a look at the source and it uses SVS, and the table ranges from 1050mV @ 245MHz to 1300mV @ 998Mhz.

Not sure if you mean a HAVS kernel or stock there...

HAVS, no, it's still 245Mhz minimum frequency.

Stock, when I used it I don't recall seeing the frequency drop below the 500MHz mark, so I guess the sleep frequency may be higher.
[Desire Android Development] mad-murdock:
Hmm, this explains, why stock uses more battery.. Higher minimum voltage and higher stand by frequency. Thanks for explaining.

About the playback issue... Interesting it also happens playing from sdcard...

Swyped with my S-OFF'd brain using teh internetz
[Desire Android Development] :
For an 80 minute avi @ 700Mb, I get perfect playback via cifs. However, for an 80 minute avi @ 800Mb, there is a bit of jerking and crackles in the sound.

~100% during playback though with the 800Mb file, which explains the dropped frames.
[Desire Android Development] Sarsippius:
I've tested the exact same files on r5 & r7.1 so it's not a matter of bitrate & checking the cpu usage just now it only gets up to about 800MHz on r5, I might check cpu usage on r7.1 later to compare.

I searched a bit in the Oxygen rom thread and found a few people with the same issue, one mentioning he has the same problem on other kernels with the BFS scheduler so it could one factor.
[Desire Android Development] chareos12:
Compile it... uhm...

This would require to stup an android compiling environment, on linux (probably two layers of difficulty).

@ Benee,

For future release, would you ever consider to make available also the streaming-while-screen-off-wifi module, please ?

Those who want it, they flash it.
[Desire Android Development] :
Just rebuilding the kernel with CFS and I will let you know my results.

Edit: Exactly the same. 100% CPU usage, slight lags, slight audio crackles. I don't believe that it is down to BFS. The UI definitely isn't as responsive with CFS either.

Must be something else causing it.
[Desire Android Development] :
It's not really that complex, you just need the Android NDK and the kernel source. It's good for learning. :)
[Desire Android Development] mad-murdock:
I for sure had much more than slight lags.it was a real showstopper making me reflash cyanogen kernel in the middle of the night to continue my series.

Take any hdtv filefrom tvunderground.org.ru - that is what I usually watch.. Not 720p of course

Swyped with my S-OFF'd brain using teh internetz
[Desire Android Development] :
350Mb for ~45 mins? They play absolutely perfectly for me, nice and smoothly with no crackles. I'm overclocked to 1152MHz and using the interactive governor.

The one which I was having issues with was 799Mb for ~90 mins.

I think it's a CPU capacity issue more than anything because the CPU was totally maxed out with that one.

I'm using a slightly newer version of vork-Kernel though, which has had mods since the 7.1 release. If you want me to send it to you so you can test it and see if the issue is fixed, then PM me.
[Desire Android Development] Benee:
Little beta update r8:

Changelog:

V(R) I/O Scheduler - experimental

oom rewrite (thx zenkernel)

slqb slab allocator

tiny preempt rcu

smartass back

changed voltage table (more uv) - experimental

updated yaffs

lzma compression

changed some compiler optimizations

ck patchset

Download

Please test performance (smoothness, lags), battery, stability and smartass wakeup issues. Thanks
[Desire Android Development] mad-murdock:
yes, ~350mb for ~45mins. thats very strange they play smoothly for you. i used rock player, which uses libffmpeg internally, same as arcmedia player. i use cyanogenmod nightly (flashing latest each day). i tried various cpu speeds - on cyanogen 988mhz is enough. videos even stay smooth, when my <30% battery profile appiles, which get the max cpu power to ~700mhz.

so, why do we both have different results?
[Desire Android Development] goz5000:
Any plans ona cmda version? Running CM6.1

Thanks
[Desire Android Development] navalynt:
+1 on CDMA Kernel
[Desire Android Development] str355:
The video freezing is solved by using a kernel without bfs according to someone in the oxygen thread.
[Desire Android Development] Sarsippius:
@mad-murdock, it seems that only a few people like you and I have this issue and most people either don't have it or don't watch video on their phones.

I'm just about to test Benee's new update, will report back soon.
[Desire Android Development] goz5000:
Glad I'm not the only one lol
[Desire Android Development] Sarsippius:
Hi Benee, r8 has fixed the laggy video playback for me and the phone also wakes up correctly with the smartass governor. However the latest uv seems a bit too aggressive for my device as I'm getting quite frequent reboots. It seems mostly at lower frequencies as I could play Angry Birds for about 5 minutes but then once the phone went into standby it rebooted within about 30s.

I've had to go back to r5 for now but can test more if needed.
[Desire Android Development] mad-murdock:
Lol, they don't know what they are missing.this high resolution display is just perfect...

Any way I can get my hands on v8 for testing? I love to experiment and flash at least one rom a day ... I love nightly and bleeding edge

Swyped with my S-OFF'd brain using teh internetz
[Desire Android Development] :
Made no difference to me when I recompiled the kernel with CFS instead of BFS, as I stated in my post before.

As regards the current kernel, I find the smartass governor has a high latency to scale up as opposed to the interactive and ondemand governors, so I have removed it on my build.

Don't know if it fixes the wake issues, it didn't last that long. :p

As regards the voltages, this commit shows the voltages I am using, and they are perfectly stable. I found I could go 25mV lower on the higher frequencies but I would receive spurious reboots and hangs occasionally.
[Desire Android Development] ourfear:
i have no problems with r7.1 and 720x404 1200kbps h264 mp4 movie too, stock player
[Desire Android Development] sibere:
These are mine with HAVS enabled. The CPU Is sometimes accepting even lower voltages than the top ones!

{ 245000, VOLTAGE_MIN, 950 },
/* { 256000, VOLTAGE_MIN, 950 }, */
{ 384000, VOLTAGE_MIN, 975 },
{ 422400, VOLTAGE_MIN, 975 },
{ 460800, VOLTAGE_MIN, 975 },
{ 499200, VOLTAGE_MIN, 1000 },
{ 537600, VOLTAGE_MIN, 1025 },
{ 576000, VOLTAGE_MIN, 1025 },
{ 614400, VOLTAGE_MIN, 1050 },
{ 652800, VOLTAGE_MIN, 1075 },
{ 691200, VOLTAGE_MIN, 1100 },
{ 729600, VOLTAGE_MIN, 1125 },
{ 768000, VOLTAGE_MIN, 1150 },
{ 806400, 1075, 1150 },
{ 844800, 1100, 1175 },
{ 883200, 1125, 1200 },
{ 921600, 1150, 1200 },
{ 960000, 1150, 1200 },
{ 998400, 1175, 1200 },
{ 1036800, 1175, 1250 },
{ 1075200, 1200, 1275 },
{ 1113600, 1250, 1300 },
{ 1152000, 1275, 1300 },
[Desire Android Development] :
https://github.com/thalamus/vork-Kernel/commit/c5b5131b8c6603b110ff5cba518cc95f77804a1c

Another adjustment I made. Still stable.

I have never used a stable HAVS kernel yet lol.
[Desire Android Development] Last Second:
Sorry for questioning but why is your kernel-archive such a big file of >100Mb?

Downloading right now ans will try it on oxygen 0.2.
[Desire Android Development] :
Sounds like you are downloading the source.
[Desire Android Development] Murd0ck:
seems you have to if you go on githubs homepage to get it and not using github for linux/cygwin to get it.

i also download the 112Mb source to get the current zip

EDIT: just figured it out.. click the zip and hit view raw and it askes where to save the zip
[Desire Android Development] ziggy1001:
So if you click on raw and get kernel-DevNull_HEAD.zip that's not it?

Although having said that, that link just D/L's a corrupt zip file
[Desire Android Development] sibere:
Mine is stable ATM ;) Been using it for a few days now without any reboot at all.

I have check the voltage freq by freq (with "cat /sys/class/regulator/regulator.0/microvolts") and adjusted my values to the next 25mV above to get an extra margin.
[Desire Android Development] Murd0ck:
that is it.. and it´s around 3Mb only.
[Desire Android Development] Sarsippius:
Benee posted it about 5 posts above yours

http://xdaforums.com/showpost.php?p=9181451&postcount=332

I couldn't test for long as I got a lot of reboots, most likely related to the new uv settings I'd say but video played smooth :D
[Desire Android Development] Benee:
New beta version:

r8.1 - Download

Changed voltage table and few other changes. Smartass stays optional (select via adb or setcpu if you like it)
[Desire Android Development] :
I fixed it, github doesn't like it when you put binaries on top of binaries.
[Desire Android Development] vnvman:
Hi Benee :)

Thanks, i'm gonna test it now.
[Desire Android Development] sfjuocekr:
Will test this now, in the previous r8 with smartass governor phone still has wake up problem, long press power wakes it up.
[Desire Android Development] goz5000:
Benee, is their a chance of a cmda version after you get the bugs worked out of the gsm version?

If not I understand as I know you do this on your own time, I mod video drivers for pc and I know how it is.
[Desire Android Development] Benee:
Sorry. Because I don't own a cdma device there won't be a "official" version. But maybe I will provide a script which produce a custom build. You will only need a linux with git core and the script does everything.
[Desire Android Development] goz5000:
Sweet, that will probably help out my skills with the android os
[Desire Android Development] sfjuocekr:
Sleep issue still there in r8.1.
[Desire Android Development] sjgore:
Been following this thread for a while, finally took the plunge today with 8.1. Loving it so far, but I get the wake-up issue too with smartass governor. Using interactive governor now, and all is fine. My ROM is CyanogenMod nightly build 175 (last night's).
[Desire Android Development] :
I wrote myself a build script to automate builds, was sick of doing the same crap over and over again. :)
[Desire Android Development] Benee:
yeah have that too. But working on some more... kitchen style.
[Desire Android Development] navalynt:
That would be fantastic! I already have an environment setup and I've build CM6.1 from source a few times but I'm out of my element with kernel dev work.
[Desire Android Development] Benee:
released r8 (first post)
[Desire Android Development] morcus:
Thanks you ! Installing right now
[Desire Android Development] chareos12:
Strange question maybe :

Is r8 solving/improving the battery drain ppl is experiencing after a recharge, in particular with Cyanogen 6.1rc1?
[Desire Android Development] mad-murdock:
*cough* I was so reading the changes and features I obviously didn't notice the download link. All tapatalks fault (:

Swyped with my S-OFF'd brain using teh internetz
[Desire Android Development] mad-murdock:
Hail the vork, with v8 no more lagging while watching series with rock player via cifs.

Swyped with my S-OFF'd brain using teh internetz
[Desire Android Development] Sarsippius:
Hi Benee, unfortunately some change between the r8 beta and the final r8 has reintroduced the lagging in video playback for me. It is still much improved over r7.1, a little less frequent and smaller skips but not smooth like r5 or the r8 beta.
[Desire Android Development] rover.prince:
Benee Plz update the post title and it's last update date plz. Sometimes people don't look it if title is not updated. Thanks for your great work.
[Desire Android Development] ourfear:
i tested r8, launcher pro is slower than r7.1
[Desire Android Development] rover.prince:
Well I disagree launcher pro is all right with my 176 Nightly of CM. Which Rom u r using. If it's CM then set the VM heap size to 24M and set Home Screen Cache to Compressed.
[Desire Android Development] vnvman:
Same here: all smooth with it on Oxygen, thx Benee ;)
[Desire Android Development] ourfear:
I use 32M VM heap size

and this setting for launcher pro: http://xdaforums.com/showpost.php?p=7826716&postcount=827

or maybe you can share your launcher pro setting?
[Desire Android Development] Benee:
the r8 release is the r8.1 beta. The difference between r8.1 beta and r8 beta is only a different voltage table (r8 one causes bootloop on many devices). So there's no difference between r8 beta and release
[Desire Android Development] mon@diac:
Thx for the great Kernel, Benee..It great works on MIUI 11.12...So speedy and stabile
[Desire Android Development] Sarsippius:
Hmm well that's got me beat then, I can't explain it. :confused:

Thanks for all your efforts mate!
[Desire Android Development] sfjuocekr:
When using smartass governor for some reason it influences with the governor that is set for screen off.

I like the concept of smartass, but I hate the added sleep issue and so I figured using another governor during screen off would fix it but it doesn't.

Previously I used interactive/conservative, this combination gives no problems.

Now I use smartass/conservative and having the same sleep issue as smartass only.

Also despite people telling me and others I should not use conservative because it would shorten battery life... That's total bull****. I had switched off profile switching during screen off and my battery dies around midnight and when I switch back my phone still wakes me up in the morning. My cat likes to play with the charger cord.