yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] jassycliq:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

I'd say the biggest reason for the insignificant battery difference would be due to the fact that harsh uses mpdecision. For me thats a huge drainer compared to kernels that implement a different hotplug mech. I know a way we could find out the differences in battery. Just compile harsh kernel with and w/o those patches. Then let's see the differences.
[Nexus 4 Original Android Development] thracemerin:
Possibly, but if we're talking screen off but awake, mpdecision should be using the lowest possible frequency since there is extremely minimal CPU load, of course should and does are two different things.

This is why I'm only basing my testing on stock vs stock+patches for hsic and not on two different kernels, if you read my thread you'll see my attempt to explain to the guy why you can't take a test that should have 1 variable (patches in and patches out) and compare it with 2 different kernels that handle everything from GPU clock speed to CPU undervolt differently, there are too many variables introduced to make any really valid conclusions, not to say his testing doesn't bring up some interesting points, it just has to be taken as one data point in a larger set of data points.

That's why I'm interested in how this works out on motley's kernel.
[Nexus 4 Original Android Development] dwang:
Here are my results when comparing b21 and b22a:

At least with my tests, 5 hours deep idle on 3g, no appreciable increase in battery life. Both kernels drained to 93% battery after 5 hours.

However, that's not to say there won't be an increase in battery life if the 3g modem is exercised more. The hsic wakelocks are definitely reduced (30min vs 10min) and the phone is idling at 90% vs 86%.

I'm also glad to report I didn't have any 3g data drops, so I think its safe to patch in these changes into the mainline branch.

Configuration: 3g only, all google sync enabled, automatic location reporting disabled, exchange sync every hour, twitter sync every hour, facebook sync disabled.

Only difference between the 2 tests is b21 and b22 kernel, everything else is the same, same sw, same location of the phone, same kernel settings, etc.

B21 3g:

http://flic.kr/p/dN2fkB

http://flic.kr/p/dN7Pvu

http://flic.kr/p/dN2fha

B22 3g:

http://flic.kr/p/dN7NC7

http://flic.kr/p/dN7Nzj

http://flic.kr/p/dN2esv

B22 WiFi

https://www.dropbox.com/sc/ezfwh2s770hmjju/2vB0g6Swkd

EDIT: I also tested harsh's jan 18 build which has the same hsic patches and noticed NO increase in battery life on that kernel vs motley b21 and b22. Battery drain was at 93% as well.

Edit2: added b22 WiFi tests
[Nexus 4 Original Android Development] _motley:
Thanks for the testing and feedback. Its great to have us all working together on this.
[Nexus 4 Original Android Development] karanrajpal14:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

The battery backup is just amazing! Almost 6 hours screen on. Had Wi-Fi on the whole time and was using Facebook messenger and whatsapp! Wow! Thanks for an amazing kernel motley!
[Nexus 4 Original Android Development] superleeds27:
Wha version?
[Nexus 4 Original Android Development] karanrajpal14:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

22a
[Nexus 4 Original Android Development] dwang:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Thanks. Just updated the op with b22 WiFi test.

After 5 hours idle on WiFi, 98% battery. Zero hsic wake locks.
[Nexus 4 Original Android Development] tooeasyforkevin:
Only 1 minute of the hsic wake lock overnight :)
[Nexus 4 Original Android Development] popophobia:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

How did you manage to get such result? Whenever I use WhatsApp, it would be the top battery drain in my system (monitor with GSam battery monitor). Usually it consumes 20 percent easily. Do you keep the media sent by whatsapp? It seems that my media server is running wild most of the time :( can't really figure out how to fix that.
[Nexus 4 Original Android Development] jhericurls:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Motley any chance you can take a look at the gamma settings here

http://xdaforums.com/showthread.php?p=36956045

[KERNEL][PATCH][Semi-working] Gamma Controls (compatible with FauxClock)
[Nexus 4 Original Android Development] karanrajpal14:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Whatsapp just takes up 5-7% for me. Once it went to 12% but that was because I had sent and received about 25 wallpapers from a friend. Yes I do keep most of the media for a week at least depending on my requirement. Looks like you're facing that media server bug, have to tried the fix available in the forum?
[Nexus 4 Original Android Development] ptesmoke:
i dont know if its just me, but for some reason Trickster mod is not reapplying my settings after a boot, keeps reverting to the kernel stock settings.

any idea motley? before i email the trickster guys :)
[Nexus 4 Original Android Development] keda:
you have set on boot option selected from the top right menu?
[Nexus 4 Original Android Development] azrash:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Feedback on b22a

I am on wifi, but I did see an improvement in hsic kernel wakelocks, it used to be around 5 minutes for the same setup. Now it is down to 50 seconds.

Thanks again devs!

Sent from my Nexus 4
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Of course lol

Gonna try removing and reinstalling trickster. Since I'm a tester and may not be on then market version

Triple edit: reinstall of trickster fixed it.

Crisis averted.

Motley you using a qi charger yet?
[Nexus 4 Original Android Development] rlaw:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Getting wifi hangups with b22a.
[Nexus 4 Original Android Development] thracemerin:
What do you mean WiFi hang ups? Like data stops while you're actively using it? or you have delayed notifications while the screen is off and the signal icons are grey when the phone wakes up?
[Nexus 4 Original Android Development] IAmAN00bie:
If anyone wants some good settings for the Interactive governor, try using what Franco suggested for his next update:

go_hispeed_load = 99

above_hispeed_delay = 0

boostpulse_duration = 100000

hispeed_freq = 1026000
[Nexus 4 Original Android Development] whittikins:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Going to try these tomorrow. Why is above hispeed set to 0? Wouldn't it go straight from 1026 to 15xx?
[Nexus 4 Original Android Development] mundixx:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

As promised, i am going to give feedback on 22a..

- hsic wakelock went down from 2.3% in b21 to only 1.2% :eek:

- no data lockups with this version

I ended up with 3 hours and 32 minutes screen time. The patches implemented seems to be rock solid. So b22a sure is a candidate for your stable release :D

Sent from my AOSPA Nexus 4
[Nexus 4 Original Android Development] IAmAN00bie:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

I found that strange myself, but so far it has been running fine. I checked my CPU states using trickster mod and the scaling is pretty normal.
[Nexus 4 Original Android Development] bamsbamx:
I realized that trickster mod isn't getting cpu states correctly... I mean , i have been using the phone for 3 hours when i open trickstermod it says that cpu have been only at 300mhz for the rest of the frequencies it says <5 seconds
[Nexus 4 Original Android Development] _motley:
Sure, I'll take a look. Been wanting to create my own sysfs intrerface for gamma control when I had a chance, but never got past the study phase. It is great to have his work as a base and faux's input as well.

No don't have one yet. Wasn't sure what to buy when it first came out and then I haven't went back to look. Any suggestions?

I haven't seen any problems thus far. Can you explain what happens and what you need to do afterwards? Also, grab the dmesg output when it happens and we can study it.

Thanks feedback. This sounds like the typical response for b22 that most have reported. I think it is an improvement over b21. I have noticed that my overnight battery curve is nice and flat, so this is a good thing. I am on WiFi with radio on for calls only.

This may be due to the very low throttle temp you were using and the constant throttling. My next version will help prevent this and give you some better options. It will also disable all the unnecessary throttle logging unless you are debugging the throttle.

Yes, this setting will allow it to ramp up to the max instead of waiting for a very short period of time before it ramps (by default 20000). If you want better performance, you can decrease target_loads to 75 or so. On the flip side, for better battery raise it to 90. There are a lot of tuning options, which is great.
[Nexus 4 Original Android Development] superleeds27:
So if we use the latest exp 22a, and we use the Ondemand Governor. Is it worth flashing the Inert PowerHAL library?
[Nexus 4 Original Android Development] rlaw:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Yes to the second question.

I tested the router with some other devices and at first it seemed that this was occurring with only my device but this morning it became apparent it was a network issue, not one specifically with my phone.

False alarm! :rolleyes:
[Nexus 4 Original Android Development] thracemerin:
There is also an issue with Android 4.2.1 that causes this occasionally, it's not specific to any kernel or device. This thread may be able to help you: http://xdaforums.com/showthread.php?t=2072930 assuming your router fix doesn't completely solve it.
[Nexus 4 Original Android Development] _motley:
If you want the best performance for OnDemand and want to stay with OnDemand most of the time (set on boot etc.), then yes I would recommend flashing the "inert"PowerHAL. This will stop any requests from Android to the interactive governor which will no longer be in sysfs after OnDemand is active. If you want to go back, just flash the kernel zip again to get the original PowerHAL.
[Nexus 4 Original Android Development] Hrithan2020:
Hi motley,

Just a request. Please consider if possible.

Would it be possible to implement an option for enabling eco mode, that is at max, only two cores online ala LG Optimus G for those of us who are more interested in battery life. [ two cores will be disabled]

I have a feeling that plus UV would be more than enough to run most of the games without any throttling [ Galaxy S3 - US version has dual core version of our processor, and reportedly runs all games fine despite the much slower GPU, so our CPU with 2 cores disabled should theoretically perform better] , plus provide good battery. [Of course, so many people have been able to resolve the throttling via extreme uv as well].
[Nexus 4 Original Android Development] _motley:
This can already be done;) See post #2 (set max_online_cpus = 2). There is not an app for this, you have to use a script or a file manager to edit sysfs (the later won't persist after a boot). bamsbamx posted a script a few pages back with an example. Use init.d if you want it to persist on reboot.
[Nexus 4 Original Android Development] yurilebbie:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

He already implemented a way of doing this. If you set /sys/module/auto_hotplug/parameters/max_online_cpus to 2 then it will only use two cores. However this solution only apparently lasts until you reboot.

To have this last through a reboot, make a init script that just says:

echo 2 > /sys/module/auto_hotplug/parameters/max_online_cpus , and it will do it automatically every reboot(well unless you reflash the kernel).
[Nexus 4 Original Android Development] lazer155:
So to flash b22, I first need to flash b17 again even if I am currently on b21?
[Nexus 4 Original Android Development] _motley:
If on b17 or b21 already, you can just flash b22. The flash b17 first instruction is really just for people coming from other kernels.
[Nexus 4 Original Android Development] Hrithan2020:
Thanks a ton. I am really sorry. Not sure how I missed it. Kept hearing about min_online_cpus, but never about this.

Yes. That's exactly what I'm going to do. Been a long time since I had to tinker with init.d ;)

Thanks :)
[Nexus 4 Original Android Development] JmPTaz09:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Just flashed b22; first removed all kernel control apps. I'm running it at whatever your default settings are and it seems really nice and smooth so far. Also, whatever color presets you have on this version, if any, look really nice on my screen. :beer:
[Nexus 4 Original Android Development] whittikins:
Motley, is there a built-in max frequency when screen is off? By checking CPU Spy, I am noticing that 1512mhz is being used while my screen is off. I have apps that run in the background (email, social networking, etc. Nothing unusual), but I thought CPU should be capped unless the screen was on.
[Nexus 4 Original Android Development] G1ForFun:
You just described a wake lock my friend.

Use an app like "better battery stats" to determine the cause.
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

I haven't pulled the trigger yet. The energizer seems to be a well reviewed one. Also the lg as well but hard to find. Might just wait a month or so as the market should see some new devices shortly. Was just curious if you had one :)

Oh on a side note...if I dirty flash a cm 10.1 nightly update....do I need to flash b17 then b22? Do I need to reboot between them or just flash away?
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Rom update will replace the kernel/ramdisk on CM, so you will need to flash b17 then b22/a.

As afaik mortly needs his own and not cm's ramdisk. I may be mistaken on that point though ;) I have been doing both, vis cyandeltas zip q function.
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

yea I figured. so I've been flashing b17 then b22 back to back. seems to be doing the trick..
[Nexus 4 Original Android Development] tx3kgtman:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

First time running this kernel and I must say b22 is running quite nice. Not sure if battery life is any better yet but performance is spot on.
[Nexus 4 Original Android Development] chrisnk204:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Idk if it's been covered but why is there a double of everything in the reset kernel zip?
[Nexus 4 Original Android Development] _motley:
I just merged in faux's gamma code for the next release:good:

Let me know if you find an app causing an issue and also let me know how you are running your tests. Standby frequency 304 should be used, unless there is an app keeping the device awake.

Welcome aboard, please do report back and let us know what you think. Battery life is better on b22 than b21 for me thus far. I notice it the most during standby and when listening to streaming media, podcasts etc.

One other person did report this before and it was the application they were using to look at the file on their phone. On my Linux desktop, it looks fine.
[Nexus 4 Original Android Development] mundixx:
Sounds great! :good:

How do we change between LG Presets and Google Presets? Do we need to use FauxClock as well, or would Trickster be able to change this?
[Nexus 4 Original Android Development] thunderger:
@motley_

B22 in short: well done!!! No more significant wakelock bei hsic and great battery duration. :)

Can you enable clock and voltage control for GPU part? Second wish - support for setcpu voltage control. It's my preferred tool because it uses profiles, e.g. for screen off, playing games, watching videos. But at the moment it can't control voltages. :( So, I've to use another tool. And for screen settings a third tool. :( Perhaps someone can write a motley_ kernel tool with all these options.
[Nexus 4 Original Android Development] Try4Ce:
That's one hell of an announcement. Every kernel should use faux's fantastic gamma control code, makes my display much more enjoyable :)

Cant wait for the next release with this feature included! :good::good:
[Nexus 4 Original Android Development] tx3kgtman:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

First day of using this kernel. Does this seem pretty good to yall?
[Nexus 4 Original Android Development] azrash:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

That is pretty good for normal usage. Use BBS to fine tune your adjustment more. You'll squeeze more life with it.

Sent from my Nexus 4
[Nexus 4 Original Android Development] tx3kgtman:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Thanks I'll check into BBS. I'll see what I get today and if I have any extra drainage.

I did notice something different with this kernel. When charging on my qi wireless charger on previous kernels it would hit 100% and stop charging. Then 30 secs to a minute later it would light back up charging again like it was draining and recharging. On this kernel it hits 100% and stops charging for a good 10-15 minutes before it starts back up which leads me to believe its getting better deep sleep drainage.
[Nexus 4 Original Android Development] jazzboyrules:
I am on b22 and I faced the first sleep of death. I admit that I had undervolted all freq by 3 steps. Strange thing is that I was playing a podcast using BeyondPod and everything was working fine. Just that while the podcast was playing I was unable to wake up the screen. So the audio stream was running fine but screen wasn't waking up.

When I force rebooted, all the kernel settings switched to default. Now I am trying with just 2 steps of undervolting. Unfortunately when I did last_kmesg after reboot, it came up with an empty file so I haven't nothing to help debug this.

All info I can give right now is:

- b22, undervolted by 3 steps, stock interactive gov, vibration intensity 100, fast charge ON

- Beyondpod was playing, screen off, audio playing without any issue

- Charger NOT connected, listening via aux cable, bluetooth off, mobile data on, while driving

- While playing, tried to wake up the screen using power button, connecting/disconnecting car charger -> did not work

- had to force reboot the phone, also when I force rebooted, the led blinked red once and then the reboot proceeded in regular fashion

- last_kmesg not available
[Nexus 4 Original Android Development] thracemerin:
I had this happen on stock almost exactly as you describe, and there are a few reports around the forums of similar things happening to various people so I'm not sure if its kernel or OS related.
[Nexus 4 Original Android Development] kaiser_tytnii:
I have also had a couple of SoD on AOKP with your (thracemerin) kernel as well, never happened when I was on franco... no last_kmsg as well... weird...
[Nexus 4 Original Android Development] thracemerin:
The interesting thing is, I don't think it's actually dead, like I think the OS continues to go in the background, the screen just doesn't come on, some of the reports I read said that if you just let the phone lock itself again and then waited 10-15 seconds and tried again the screen came on properly and everything was normal, so I'm wondering if it's a video or LCD panel driver problem where when the OS wakes up it doesn't draw the screen. It certainly requires more study but without kmsg it's gonna be tough.

If this happens again and you have the ability to, try this: When you get a SOD, reboot immediately to recovery instead of OS, connect phone via adb and try pulling the kmsg there.
[Nexus 4 Original Android Development] dwang:
I've gotten this too, but i'm not sure if the OS is still running, because when I got the SOD, I tried to connect to the phone via adb to get the logs and I couldn't connect and had to reboot via holding the power button.

I even tried via adb wireless and that didn't work, so something in the kernel/OS has hung.

This was using harsh kernel by the way, but he seems to have fixed it with his most recent build. Never gotten a SOD with motley.
[Nexus 4 Original Android Development] IAmAN00bie:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Touch Control's recent update doesn't work on this kernel still, for those wondering.
[Nexus 4 Original Android Development] thracemerin:
It being completely dead and the LCD panel not coming on properly but the background OS still being working are probably different issues, but people refer to both as SoDs so it's difficult to say if they are related or not.
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

I've sort of had this happen, hit the power button...nothing...I know the device is on because I had a text and the led was flashing. I pressed the power button a second time...waited prolly 5-10 seconds and pressed power a third time....screen comes on and everything is normal.

I didn't think anything of it but next time I'll pull a kmsg and see if that leads us anywhere.
[Nexus 4 Original Android Development] NoLunchBox_:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Second day with b22 and its damn good, undervolted all by -75 I believe and its running smooth.

hs_piece_of_crap wake lock is down to 1.3%! It used to be around 10%+ when I ran it on all WiFi.

So far so good. :good:
[Nexus 4 Original Android Development] kaiser_tytnii:
no i think it rebooted itself... but i will keep an eye on it... so far i have not got any with motley's, thanks for the heads up though!
[Nexus 4 Original Android Development] kaiser_tytnii:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Just had one reboot... http://db.tt/zI7MHof6

Attached is the last_kmsg (b22)
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Had the screen issue again. Kmsg attached.

http://db.tt/DfDxeyMo
[Nexus 4 Original Android Development] PoisonWolf:
Hi guys...I'm giving this kernel a try (mainline) and I must say it is really smooth. I, however, must ask if anyone could guide me on all this talk about "making an init.d" script. I'd like to enable fsync by default because I prefer the data integrity assurance even if it is at the cost of performance. I tested the echo line in terminal but it doesn't appear to persist through a reboot.

Is there a way to sudo nano a script file within the init.d folder or something? As how you would go about doing it in Lubuntu/Ubuntu, etc?

Thank you folks!
[Nexus 4 Original Android Development] direwolf1:
No, the echo won't persist. I'm not an expert on this, so I don't want to advise you on anything that might break your setup--hopefully someone else can give you a good walkthrough on init.d stuff. I will say that if you grab Trickster Mod from the Play Store you can use the UI to set fsync on boot. Lots of other great options there too.
[Nexus 4 Original Android Development] mundixx:
using solid explorer (or any file manager with root access),

Go to etc/init.d

Create a new file, name it to something like 99PoisonWolf

paste the script for fsync inside this file

save the file

permissions are 755

owner should be root

profit :D