yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] mko000:
Hey _motley,

I saw that Harsh just added support for PGM/TouchControl to his kernel (here is the app https://play.google.com/store/apps/details?id=me.paranoid.touchcontrol).

If you're also interested (I am ;)), maybe you could check what he did? I'm sorry if it already works! It read it works on Franco's kernel.

Thanks in advance!

BTW: I've been using b22 for a while and I love it - no problems so far. Great performance and battery life. Your kernel is definitely my favorite.
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

I may be going crazy, but I think data speeds are lower on b22. I just moved to another state and with b22 I get good speeds, however, after about an hour or so, they drop to 3mbps. If I run another kernel, it seems to remain around 12 the whole day. Not sure if the network happened to do that, or kernel related?
[Nexus 4 Original Android Development] _motley:
Update on this: I have been working with bponury on the issue and we seem to be getting closer. His last email indicated that he thought he could fix it. Unfortunately I have already tried what harsh changed days ago and that doesn't fix it (MODVERSIONS=n). bponury thought it may be that I am using the Linaro toolchain, so I created a build with Google's 4.7 toolchain and we are getting further. Google's 4.7 toolchain seems to be pretty good and I see some pluses, but I also see some minuses (no graphite optimizations). It is very frustrating because I haven't changed anything with the input drivers from stock (less than other kernels actually), so it must be something else. It is unfortunate that he has to build separate modules to support every kernel, hopefully something can be done to change this requirement.

I see that Matrix released the 6.0 version and he now has MODVERSIONS=n. His previous was already working, so I am curious if this breaks supports or just allows it to fall back to using the stock module instead of the custom module bponury has built in for Matrix. If I compile with MODVERSIONS=y now that I am using the Google toolchain, it actually chooses to load the matrix module instead of stock. If I compile with MODVERSIONS=n, it loads the stock module. Unfortunately neither build works for me even after clearing app data, reinstalling PGM etc.

Thanks for the log:good:

I have had the non-responsive issue that thracemerin discusses. I also believe I have seen this on the stock kernel/OS early on. I have never had an SOD on stock or on my kernel where it actually requires a forced reboot. If you are experiencing an actual SOD (won't wake at all), I would check your voltages to make sure you don't have them too low at the bottom. It would also be good to know if you have any apps involved (faux123 app that persists colors on screen on etc.).

We'll have to keep an eye on this and see what others say. Networks speeds always ebb and flow where I am at, so it is hard to tell if it is the device playing a role or just the network. I see a patch that faux committed related to data drops that I might add in. It studied it and it can't hurt.
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Speeds fine ;)
[Nexus 4 Original Android Development] jazzboyrules:
I don't think that's a good speed. It should be ~5Mbps at least on HSPA+. Or wait.. does that show in kilo-BYTES/sec? Then that's a great speed :)
[Nexus 4 Original Android Development] popophobia:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Does anyone have horrible idle battery drain on 3G? I tried to leave the phone idle through the night on 3G and it drained 15 percent over 6 hours. I switched WiFi on and it didn't drain one percent over the next 2 hours. I attach the graphs here. Seem like pm8921_eoc drained battery on 3G . I have no idea what it is though. I'm on stock ROM and b22. Undervolt pretty aggressively without any reboots for almost a week (voltage info is on the spreadsheet shared in this thread).

Can someone verify this? Thank
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Yup, it's bytes, no dirty bits here!

That's the fastest test I have gotten so far, but generally I have noticed no issues with data speed or general stability
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Who is your carrier?
[Nexus 4 Original Android Development] samwebbo1990:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

What settings are people finding the smoothest on b22 without compromising on too much battery? :)
[Nexus 4 Original Android Development] Hrithan2020:
I wanted to request users who are going for great performance in terms of UI interaction without affecting battery to try capping the max_online_cpus to 2.

I feel that it doesn't have any affect on smoothness as the UI operations are rarely multithreaded [ 4 cores at that ]. Just wanted to test it out.
[Nexus 4 Original Android Development] samwebbo1990:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

I've already capped to 2 cores and was going to try this out :)
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

3UK, they have their iffy moments, but they are fast and unlimited data with no hidden caps (I do 3GB to 11GB per month heh, no throttling etc)
[Nexus 4 Original Android Development] Richieboy67:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

You guys are taking a quad core and cutting its balls off by making it into a dual core just for a little more battery? Are you guys out in the woods with no charger available for days? haha

Anyhow. I am sure there will be occasions when your phone will show the lesser cores..I mean when running certain apps or maybe when multi tasking at times..
[Nexus 4 Original Android Development] jhericurls:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

+1

There isn't a noticeable saving using the 2 cores. The main drain is 3G and screen. I noticed that even when I spending most of the time in the lower frequencies battery still took a hit.
[Nexus 4 Original Android Development] poolemit:
i was wondering if there's a point in disabling mobile data when connected to wifi -- i.e. leaving voice only. would that result in battery savings?
[Nexus 4 Original Android Development] Hrithan2020:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

I'll compare and let you know the difference. Because of the scaling, the battery improvement ought not to be more than 10-15%, (for optimus g, that was the approximation I found) but I am also interested in looking at games like nfs mw without throttling.

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

I have to completely disagree with you, as I turned off two and my phone does not heat up anywhere as fast and I get 1.5 more battery life out of it as such
[Nexus 4 Original Android Development] mattb3:
Re: [KERNEL][Jan-19][Linaro]Exp:b22/Main:b57 _motley kernel for the N4

Just wanted to say how fantastic b22 has been. The kernel feels stock but with literally double the battery life. I normally avoid the "OMG my batteryz" posts. I have 25% left with 2 hours screen on time after 37 hours. This is easily the best battery life I've ever seen. No doubt the hsic wakelocks patches have helped some. Great work, and thanks.
[Nexus 4 Original Android Development] paratox:
this kernel fits best my needs, speed & battery, all in one!

the only thing i`m missing is touch control. i hope you get this sorted soon.

Thanks for your work! :)
[Nexus 4 Original Android Development] Globespy:
Careful what you wish for!

I've seen many reports that the touch control (whilst cool) is a battery hog.

YMMV
[Nexus 4 Original Android Development] El Niche:
Motley, thank you for your work,

Im running V57 of the Mainline Kernel. So far it has been very good, no problems. If I go to b22, do I need to flash the stock component zip to go back to v57?

Again very satisfied with your kernel so far. Unfortunately, the itching to flash the experimental build makes me want to try what else you have worked on.
[Nexus 4 Original Android Development] jazzboyrules:
[correction done] You don't have to flash the stock component zip, but it doesn't hurt. But you do have to flash b17 before b22.
[Nexus 4 Original Android Development] Luigi_2:
dont worry mate, i've been using touch control since the galaxy nexus days and I can confirm it's one of the best apps out there, of course no battery drain.
[Nexus 4 Original Android Development] poolemit:
if he flashes stock, wouldn't he lack whatever is in b17, which is a prerequisite for b22? it may not even be in his current kernel. i'd flash b17 directly and then b22.
[Nexus 4 Original Android Development] jazzboyrules:
Agree. I stand corrected.
[Nexus 4 Original Android Development] UZ7:
From AnyKernel to AnyKernel you should be fine but if you want to make sure you could update to b17 then b22.
[Nexus 4 Original Android Development] keda:
I tried out Touchcontrol free couple days ago on Harsh's kernel. With that touch module enabled, it dropped 6-8% overnight (~8hrs) with 3G and WIFI disabled,(only phone service). Where as if I don't have the module enabled, it's usually 1-2%.

Not sure if it's because I'm using the free version, but I've seen battery consumption on showp's original s2w implementation in his Bricked kernel.

I would love to have this nice feature, but not at this cost.
[Nexus 4 Original Android Development] _motley:
Experiment build 28 posted (alpha3)

Hi everyone, been busy this week, but finally got a chance to release a new build - b28 (alpha3). See the OP for details. I almost called it beta, but we need to see how it works for the masses to see if we are heading in the right direction. We have some new features and changes to test and decide upon.

If you are not on b17 or higher, please flash b17 first and then b28 (applies to any other kernel, even my mainline and exp). We'll get back doing the regular zip here soon after we get through the flurry of changes. After that, you can easily go back and forth between b22 and b28 if you like.

b22 is a great build IMO, hopefully we have kept the best of it and added on.

Let me know how it goes. Thanks for the feedback as usual!
[Nexus 4 Original Android Development] _motley:
P.S. After you give b28 for a spin, here is b29. It is the exact same kernel built with Linaro toolchain as before (only compiler flags changed in the Makefiles back what was working best with Linaro). I think this will be an interesting test to see if we can tell the difference.

View attachment motley_anykernel_nexus_4_EXP_build_29.zip

See the branch on github here: https://github.com/motley-git/kernel-Nexus4/tree/linaro_b28 (=b29)

b28 is likely to get touch control support soon since the dev has just told me he has it working now. He is a busy dude like me, so please don't pester him about a release date;)
[Nexus 4 Original Android Development] keda:
Just curious on what xda devs do for living?

If you don't mind me asking, do you do system engineering, embedded system, mobile development at work?
[Nexus 4 Original Android Development] karanrajpal14:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Won't b29 support touch control? I want to directly flash b29. Latest is always best :P

---------- Post added at 08:28 AM ---------- Previous post was at 08:26 AM ----------

This even I would love to know!
[Nexus 4 Original Android Development] popophobia:
I have been getting these weird crashes mid way doing some tasks.

Sometimes it happened when I was listening to music. The screen go black. Other times it happened while I was typing in Whatsapp. I'm on either Swiftkey or Swiftkey Flow at the time. Everything just hang. The key I was tapping on is zoomed in, but the phone stop responding. I had to hard restart 3 times already. The last time around, I plugged the phone into the computer trying to access the terminal. No luck.

Then the power button respond, the restart menu popped up. The keyboard and whatsapp still froze. I was able to do a clean restart and get last_kmsg posted here.

I'm on Stock, running b22.

Thanks.

https://dl.dropbox.com/u/10917179/weirdcrash.txt
[Nexus 4 Original Android Development] _motley:
Haha, close guesses. I am the lead software developer and architect at my company. We do mostly .NET stuff involving systems integration, business process management, and content management. We have our own suite of products.

Gotta get my Linux, Android, and open source kicks at home LOL. I started getting into this stuff about two years ago. Before that, my main hobby was working on cars and tuning ECU's for better performance (Cobb Tuning and some others).

Not sure yet, but my Linaro built kernel seems to cause him issues. We'll see what he can do, but b28 will likely be supported before any Linaro build. b28 and b29 have the exact same code base. b28 is compiled with Googles 4.7 toolchain and b29 with the Linaro toolchain that I have been using. I have my own preference, but this is a good test to see what others think and to see if my liking of Linaro is subjective. Google's toolchain used to suck, but now it is a lot better and is catching up.

Hi, I don't see anything in the log as it is is from a clean boot and the last_kmsg was not available. Are you undervolted? If yes, I would try without lowering any voltages and see if you still have issues. If you do try to UV, make sure you lower too much. Not sure if you followed it all a few pages back, but when I added better touchboost control, people found out their mid-range freqs were UV'ed way too much. It never figured in because these frequencies weren't used enough to expose the weakness.

If you still have issues, report which ROM you are on as well. Also, if it is an app causing the issue, you can flash the stock kernel back and give that a try to see if the problem follows or not. If it happens again (locks up), you can also try to pull the dmesg output from adb.
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

So what your saying is not only can you pimp my N4 but you could pimp my dodge ram as well?

Do you need root on my Ram? Hehe :)
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

I tried b29, but had bad issues with data. I was looking through chive, and it'd take ages to load images. Decided to run speed test and it literally would time out data during the test, then pick it up, then time out. Rebooted, fine for s minute, then same issue. Figured it may be the network, reverted, and it was fine. Odd.
[Nexus 4 Original Android Development] thunderger:
@_motley:

Nice to see some OC love for CPU part. What about GPU part - including UV? ;) I'll test OC values with different voltages and report you what's stable?

What about creating a motley kernel app?
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

At first blush 28 and 29 feel the same, benchmarks agree (for what that's worth)

I have been getting 4h 30min+ screen on time on 3G with a good amount of idle, which makes be pretty happy :)
[Nexus 4 Original Android Development] jazzboyrules:
I tried b28 with the same undervolting (by 50mV) and governor settings as I had on b22 (I don't think anyone uses the Motley Undervolting spreadsheet any more but I keep stuff updated there for my own record: http://goo.gl/jhxVd ). But the phone rebooted when I tried to play a YouTube video. I also noticed higher current usage on b28 than on b22. I will switch again to b22 for a day and then try out b29.
[Nexus 4 Original Android Development] dark_ente:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Here is my voltage table if anybody interested

Perfectly stable so far, I have run stability test for over an hour without problem.

Since 1026mhz only use 600mv, I leave mpdecision on as well as governor ondemand.

No point in UV the speed in the middle as they are rarely used

I have a fast chip btw

Sent from my Nexus 4
[Nexus 4 Original Android Development] meangreenie:
Is there anything special i need to do to get init.d scripts working?

mainlineb57
[Nexus 4 Original Android Development] efan3719:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Ran a few tests. And I know benchmarks are not the best. But. 22 with no tweaks out scored 29 with 29 at stock and over clocked to the max. Over clocking 29 saw no score increase.

Still lightning fast and smooth so I don't really care. Just thought I'd share.
[Nexus 4 Original Android Development] lazer155:
If you want you can put your table into the spreadsheet http://goo.gl/jhxVd
[Nexus 4 Original Android Development] guapinoy:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

What are you running as your max? Is camera working with those settings?
[Nexus 4 Original Android Development] greg17477:
i was testing half a day :) for me its the opposite. 29 scores better for me. 22 and 29 with the some tweaks from post 2.

22 scrores ~18K

29 scores(OCed) ~ 19K

Rom AOKP
[Nexus 4 Original Android Development] efan3719:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

That's cool. Maybe I got to let it settle more. Or perhaps it's my ROM. Running Slimbean. Mind sharing your tweaks?
[Nexus 4 Original Android Development] dark_ente:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

I'm running at max 1,5, camera working fine because 987,5 is fairly normal. The saving come from 1ghz as it's mpdecision's frequency

Sent from my Nexus 4

---------- Post added at 09:30 PM ---------- Previous post was at 09:23 PM ----------

I've already put it there 2 weeks ago ;)

BTW, motley, is there any side effect if I'm running at such low voltage?

Sent from my Nexus 4
[Nexus 4 Original Android Development] UZ7:
Had a hiccup this morning after deep sleep, couldnt unlock the phone (touch unresponsive) while on the security screen but after reunlocking it became responsive again. Nothing biggie but first time I've had any noticeable glitch in a while, that was on 28a. Everything else throughout the day worked fine. :good:
[Nexus 4 Original Android Development] _motley:
Haha! Well, I mostly worked on turbo 4's and the final gen 300zx, but I did do some work on a Dodge Charger HEMI. No rooting was required, just plug in, backup, and flash!

Anybody else having data issues? Seems to be fine here, but I haven't done any data speed tests yet. I will also go back and look at the commits, but I don't' recall anything added after b22 that should directly affect data. Wondering how b22 was working for you in this regard? Thanks

I OC'ed the GPU recently, but I honestly don't see much benefit on this device. If there was a game that couldn't be played or something like that, then I might be willing to look into it further. I may change my mind in the future.

I' have thought about an app, but I barely have the time as it is:( I would love to work with another dev on an open source project if someone had the time and was interested.

Thanks. This is the kind of feedback I was looking for on b28 vs b29. My benchmarks have been a bit higher on these builds @1.67GHz, however the kernel isn't really tuned for bench-marking. You can increase the throttle temp, tune auto-plug to be more aggressive/put more cores online, make some governor tweaks, and set min cpu freq = max cpu freq to get the highest scores. However, for me, that is not really what I am after for a kernel. However, if I can run 1.67GHz daily and still get killer battery life, then that is great (I only have two hours of screen on time per day so the OC doesn't hurt me much).

Sorry, but I don't believe I ever put init.d into mainline for stock...my guess is that it will only work in experimental since the init script in the ramdisk needs to be modified . You might want to try the experimental build, you can always go back to mainline if you like. Battery life will be much better, I promise! If you really want it in mainline, I can add it later for you.

I am not sure exactly what this option does in his app when you toggle mpdecision, but my guess is that it is starting and stopping the stock mpdecison daemon. You definitely want to leave that off in this kernel since we don't have two hotplug mechanisms working at the same time. He probably allows it in his app to turn on the stock hotplug mechanism if you aren't using his hotplug governor.
[Nexus 4 Original Android Development] _motley:
Thanks, we have seen that before on other builds too. Some of us think we may have even seen it on stock. Not sure what is going on, but it always does wake up. It's weird, I will see it and then go for over a week without seeing it. Not sure what causes it.
[Nexus 4 Original Android Development] JmPTaz09:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Everything nice and smooth for me on b29; no data drops that I've noticed. Stock kernel settings with some extra UV. Battery is doing great and seems really fast and smooth; nothing to complain about with this release so far. Only been testing all day today basically.

I'm at 9hr 22min with 1hr 18min screen on and 67% left; brightness at about 15% or so.
[Nexus 4 Original Android Development] jhericurls:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

29 running great. But suffers a bit from the same problem I had with the faux beta 05r2 kernel where there's a slight popping sound from the speaker. Doesn't happen often and only when interacting with the phone.
[Nexus 4 Original Android Development] barome:
B29 works good for me. I test OC on Quadrant and Antutu, seems boost graphic perfs. But we have powerful device. We can play without OC :) battery seems good too. No data drop.
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

B22 was amazing overall, let me flash that and try it. I downloaded it back when I was at the airport and it was funky, but it could have been just the airport. I'll try it :).
[Nexus 4 Original Android Development] mgear356:
This happens when under volted too aggressively..
[Nexus 4 Original Android Development] greg17477:
sure

Interactive Governor:

go_highspeed_load 90

targets_loads 80

and these i put in a init.d script:

# msm_thermal

#

# Throttle temp in C. Default is 70, valid range is 40 to 74:

echo "72" > /sys/module/msm_thermal/parameters/throttle_temp

# Minimum freq used in throttle down before returning to max, default is 7 = 1.13GHz. Range is 4 to 8 (810Mhz to 1.24GHz)

# This is the index in the frequency table as seen in Trickster MOD, System Tuner etc. It is zero based (i.e. 304MHz is zero).

echo "8" > /sys/module/msm_thermal/parameters/min_freq_index

# auto_hotplug

#

# Load at which a CPU is taken offline, 40-125, default 80:

echo "65" > /sys/module/auto_hotplug/parameters/disable_load_threshold

# Load at which an extra CPU is put online, 130-250, default 200:

echo "175" > /sys/module/auto_hotplug/parameters/enable_load_threshold

# Load at which all CPU's are enabled, 270-550, default is 125 x number of cores:

echo "420" > /sys/module/auto_hotplug/parameters/enable_all_load_threshold
[Nexus 4 Original Android Development] rlaw:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

An open standard alternative to the project specific kernel apps would be a welcome and useful addition to the Android community.

Have you thought about allowing the GPU to be undervolted?