yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Original Android Development] okij:
Wifi driver / mmc0:0001:2 Wakelock

I now did some more tests and can confirm that the mmc0:0001:2 wakelock that is triggered by the Wifi driver actually has a big impact on battery consumption, also on my Z3c.

This seems only to happen when using the 5 GHz Wifi network (see attached screenshots, between about 22:00 and 0:00, battery went down about 3 %/h) and not when using the 2.4 GHz Wifi network (between about 0:00 and 7:00, battery only used 0,25 %/h).

The only reason that I don't experience this Wakelock more often seems to be that normally I have Wifi turned on only when I'm at home and then often only charge the device when near the 5 GHz network (in our living room), so I don't see the higher battery consumption, whereas our sleeping room is a bit further away from our Wifi router, so the device can only connect to the 2.4 GHz network.

[MENTION=3816568]Myself5[/MENTION], FYI: Some days ago I re-installed the normal CarbonROM 5.1 kernel again, but the mmc0:0001:2 wakelock issues were the same, with the same high battery drain when connected to the 5 GHz network.

[MENTION=6979267]nailyk[/MENTION] and [MENTION=4862290]devil188[/MENTION]: I'm thinking about giving [OREO][8.1]Unofficial OmniROM [OTA][D5803/5833] a try. Since I read that Screen Cast has been fixed on Oreo for the Z2/Z3/Z3c devices, I'm wondering if some other things have been changed on the Wifi driver, so that maybe also the mmc0:0001:2 wakelock issue has been fixed on Oreo? I'd be glad if you could give some feedback here to avoid confusion on your ROM thread. TIA :)
[Xperia Z3 Compact Original Android Development] okij:
mmc0:0001:2 Wakelock again

[MENTION=4275152]someone755[/MENTION]: I found a commit for the Nexus 5 (Hammerhead) which addresses wakelock issues due to mmc0:0001:2.

Maybe this could be useful for us too?

Can you figure out what has been changed in the blob files of this commit (like updated wifi drivers or so)?
[Xperia Z3 Compact Original Android Development] Kocane:
[MENTION=4916555]okij[/MENTION] the 10 minute wakelock over a peroid of 12 hours doesn't seem bad, but is the wakelock still causing the drain? I've been connected to my 5ghz network for 5 hours and got a 2 minute wakelock on mmc0:0001:2, with a count of 50135.

Regardless, I'll try just jumping on my 2.4ghz band, pretty easy when having seperate SSIDs. Afaik I can't choose which band to prefer on Android?
[Xperia Z3 Compact Original Android Development] okij:
No, afaik there's no way to choose between the 2.4 or 5 GHz band in Android 7 or 8. :( Because of this I also named them differently and only connect to the 2.4 GHz band for now.

[MENTION=6979267]nailyk[/MENTION]: Sorry for bothering you again with this, but I'd like to know if there probably is any progress on the development side for the 5 GHz wifi and wakelock issues? Could maybe my post from 22-02-2018 be of any help for you devs?:
[Xperia Z3 Compact Original Android Development] someone755:
I'm honestly surprised you found anything related to this at all. All I came up with were old forum posts with no head or tail.

The change you found is kinda old (KitKat-era), so I dug around and found the actual patch, and we do indeed already have it merged (I'd be surprised if any phone didn't tbh). It's just a kernel patch that fixes some bug that I couldn't find in any bug tracker. Could be related (in that something has changed

FWIW there are no 5GHz networks where I live. The only time I've seen one is on the few occasions when I run a WiFi hotspot on my phone, and I use 5GHz for that. I don't think this train of thought is leading us to a solution. If either one of you could be arsed, try grabbing a dmesg dump after experiencing the bug (before rebooting) and sending it to the Oreo devs. If they/I] can be arsed, that'll help them much more than us dinguses discussing BBS logs haha

The only "fix" I found was to turn off anything relating to WiFi. That means not using WiFi (obviously), no hotspots, no location services, no background scanning. This did, however, cause massive battery drain when I did need to connect to a network, because the LTE chip is pretty power hungry. At that point the only data transfers would have to be a few megabytes at most after which the modem would have to be shut off to see any improvement in battery life. So no video, no browsing feeds (i.e. Facebook), no instant internet service notifications (messages get delayed etc).
[Xperia Z3 Compact Original Android Development] Cirra92:
mmc0:0001:2 wakelock

Well let me give you some more info from my device. I have been experiencing this wakelock as well and in the beginning it was PITA as I couldn't get rid of it. The workaround apparently (at least for me) is to power off the phone, remove the SD card for couple of seconds, return and boot again, as reboot only did not help in my case.

Anyway weirdly enough it did not appear because of WiFi, maybe because most of the connections around my city and at my home are 2.4Ghz, so it might be that.

Now, the the triggers were:

1. Transferring some big file to my SD card, let's say in excess of 1gb, but I think even smaller file sizes will cause it, any kind of transfer maybe.

2. A very odd one - alarm clock firing in the morning :D I am assuming this might have been because the alarm ringtone is stored on SD card, I'm not sure whether that one was set, I have new one set now from phone's internal storage, for the sake of testing. The clock app is the Google one from Play Store, as Carbon stock one is bugged.

So, again, in my case it hasn't been the WiFi, it was rather the SD card and read/write operations that caused it.
[Xperia Z3 Compact Original Android Development] Cirra92:
8.1

Should I ask about the possibility of building a 8.1 kernel sometime? Well at least if you had any plans to do it, there are still some issued to be fixed, though you are already aware of that :D
[Xperia Z3 Compact Original Android Development] someone755:
Yeah I saw, I saw. I'll get to it ... someday. I guess it's getting kinda old reading this, huh?

You would not believe the **** I've seen since November.

don't tell anyone but it turns out uni is hard
[Xperia Z3 Compact Original Android Development] okij:
So it's someone someday, somehow... ;)

Hang in there! :fingers-crossed:

Once you're through the ****, it'd be cool if you'd surprise us with an updated Kernel12! :cool:
[Xperia Z3 Compact Original Android Development] Cirra92:
Well, you're the only one who has been developing a Z3c kernel for a while now, so any kind of news is a good one actually, and we can have a big thank you for that.

As for the uni, I feel you, it has been a major PITA for me through the years, so let's hope you'll manage to "keep your **** together" not to let the uni swallow you :fingers-crossed:
[Xperia Z3 Compact Original Android Development] francesko94:
Which are average stable values for undervolting? I am running -70mv offset and seems stable
[Xperia Z3 Compact Original Android Development] someone755:
Depends on your chip bin, the voltages used, and your usage pattern. Many times you'll be able to achieve significant undervolt at the expense of stability at 100% loads.

The rule of thumb procedure is to look for stable voltages, load test until a reboot occurs, and never apply the testing values on boot. Then when you have found the last stable voltage, take that and reduce the undervolt by ~5 mV to ensure stability. Or you could just punch in a random number and see how it works for you, that's what I usually do. If you opt for this method it's better to be conservative.

In any case you should be aware playing with voltages is dangerous stuff and could significantly shorten the life of your device, even if you follow every tutorial on the internet.

Cheers!
[Xperia Z3 Compact Original Android Development] Murtie:
Please can someone tell me which option must selected, enforcing ore permissive , im noob and cannot good speak english sorry.
[Xperia Z3 Compact Original Android Development] francesko94:
I know how it works, I just wanted to know moreorless where I have to start to save time, for example I just realised that -70mv on all frequencies make the phone unresponsive (probably until it jumps to an other frequency that support that undervolt). now I went to -50mv and seems responsive, so I can fine tune the most used frequencies. Only problem : I forgot the initial voltages, so now I'm going blind, if someone have them and want to help me please let me know

---------- Post added at 10:09 AM ---------- Previous post was at 10:07 AM ----------

If I'm not wrong you have to choose permissive only if you want xposed
[Xperia Z3 Compact Original Android Development] someone755:
If you have to ask, choose enforcing, which is also default for this exact reason. There is nothing to gain by choosing permissive.

If you knew how it works you wouldn't have asked the question, and you wouldn't have expected a concrete answer. How many people do you think still hang onto a 4 year old phone, running a custom ROM based on an outdated version of Android, running this kernel, *and* know their CPU bin and have undervolted their device? You'd be foolish to expect all of those to fall into place. But you didn't think about that, did you, because you didn't even write down your own chip bin.

No need to give snark to a guy trying to help out just because you know more than the average Android user, but not enough to put that knowledge into practice.
[Xperia Z3 Compact Original Android Development] someone755:
No sane man would go building stuff from scratch -- I mean why would you if it's all already there? :P
[Xperia Z3 Compact Original Android Development] smorgar:
I know but i had to ask since i missed the info XD

I dont know much about kernels and how they are built and from what but my guess is like you say; No sane person would build from scratch. Maybe you are insane?

Have a splendid weekend!
[Xperia Z3 Compact Original Android Development] someone755:
Hey naw I might be bat**** crazy but that doesn't mean I have the time or knowledge to go do that lol.

Anyways, I've implemented color and sound control, though the latter doesn't seem to be working fully (I've checked our device's other custom kernel and it has the same issues, despite having different cherry-picks for sound control). ZRAM is nearly working, F2FS is broken enough for me not to care for it. I have kexec almost ready for when MultiROM strikes though so that's a plus.

I'll upload a new Z build when I finish a few more cherry-picks.

Also I've done some testing and realized that if you set the max clock to ~1.7GHz and disable two cores, your CPU basically has the raw perforance of a 2012 Tegra 3. So yeah if anyone wants to save battery but still have it all silky smooth, go do that.

EDIT: It would appear that the slang word for "feces" is being actively censored. Who knew?

EDIT2: Uploaded, enjoy! I suspect no issues other than those I've pointed out.

Sadly though, DevDB uploads are busted again so y'all will sadly have to wait a bit. Unless, of course, if you go to Drive.

EDIT3: Oh, and also this: if anyone finds the min brightness to be too bright, get Gravitybox. It used to be the brightness could be set from within the kernel so until (if) I find that, I recommend that Xposed module.
[Xperia Z3 Compact Original Android Development] smorgar:
Maybe another stupid question but what is sound control? And what does not work? I listen to alot of music and i just cant live without it so im afraid to thest this kernel right now :)
[Xperia Z3 Compact Original Android Development] someone755:
You're not in any way obligated to install it :P

Sound control is basically setting the loudness for various audio outputs (speakers, headphones etc.). Sound works perfectly though, at least it did with my headphones.
[Xperia Z3 Compact Original Android Development] smorgar:
So the sound control is optional? Or by "You're not in any way obligated to install it :P" you mean the kernel?
[Xperia Z3 Compact Original Android Development] someone755:
I meant the kernel. The sound control thingy can't be disabled unless you re-build the kernel without it.

"Beta" builds are there for the purpose of testing new software -- the more people testing, the higher the chances of somebody finding a bug. No guarantees though that beta features will end up in stable builds.
[Xperia Z3 Compact Original Android Development] smorgar:
mpdecision

Just flashed your kernel. Lovley! But do you know how to turn off mpdecision? It should be turned off when using intelliplug...
[Xperia Z3 Compact Original Android Development] someone755:
Yeah, you can turn it off with an app of your choice.

By default, MPDecision is enabled, but you can (and actually should) change that. Of course enabling intelli_plug while doing so.
[Xperia Z3 Compact Original Android Development] BeautyRazor:
Antutu 52328. Screenshot in benchmark thread

Thank you for your kernel) I wait CPU Oc for better results)
[Xperia Z3 Compact Original Android Development] someone755:
That number tells me absolutely nothing. I don't know how the score is composed and what all was tested, and frankly, I don't care.

You're welcome. I'm waiting for a MiG-15bis and my pilot license for it to appear at my front door. Does that mean I'll ever get it?

[rant] If you know what the scores mean, and you have a score for each individual test you've ran, they are useful -- you get to test the raw hardware performance in the given situation, though that situation might never occur in real life, perhaps using the data to improve on the situations that DO appear in real life, maybe even by optimizing the kernel for them. [/rant]
[Xperia Z3 Compact Original Android Development] asl0501:
Failing to install kernel??

When i try to install trough cyanogen recovery it says something like "signature verification failed".. What do i do wrong? :)

Thanks in advance!
[Xperia Z3 Compact Original Android Development] smorgar:
I think you need to install custom recovery like CWM or TWRP.
[Xperia Z3 Compact Original Android Development] someone755:
You tried to install through the cyanogen recovery.

That is, with a recovery that isn't TWRP.

^This is what you did wrong.

Yes and no. You need a recovery that works. And at this point, only TWRP does that. The only version of CWM I can find for our device is the Doomlord one, but that one is embedded into the boot.img (with a kernel for some old stock release), so it's no help. (And it doesn't even work well -- not that CWM ever does though lol.)

I'll think of something to replace the cyanogen recovery with TWRP, just not very soon, probably.
[Xperia Z3 Compact Original Android Development] asl0501:
Thanks

Cool. Thank you. Where do i find a TWRP recovery that works with cm12 and our device ? :)
[Xperia Z3 Compact Original Android Development] someone755:
Every TWRP build for our device works with CM12.

I found one in the Freexperia CM12 thread, and another (newer) one in the CM12 thread in the General section.

Fastboot flash recovery and you'll be all set. Or flash the Androplus kernel temporarily if you don't have access to a computer, then boot TWRP from that and flash this kernel.
[Xperia Z3 Compact Original Android Development] asl0501:
!!

Thank you for such a quick reply! :)

---------- Post added at 07:30 PM ---------- Previous post was at 06:32 PM ----------

Installed TWRP and installed the kernel trough TWRP.. But when i look system info it still tells me that i have the original cm12 kernel.. And trickstermod (cpu tuner) tells me the same :(

Where did i go wrong this time? :D
[Xperia Z3 Compact Original Android Development] Amr Nasser:
Important

Is There A Flashable Zip For Your Latest Version ??
[Xperia Z3 Compact Original Android Development] someone755:
With the data you've given me, it's like asking a fish what a Higgs boson is.

Input, lad. It's what you need to give if you want to get some output. Maybe you flashed a CM zip over my kernel, maybe you didn't flash my kernel at all, or perhaps a Martian changed the updater script to not do jack. I need to know what happened and what you did if you want help.

If you'd like you can also extract the kernel from the zip and fastboot flash it. Or download Z2/Z2X and flash it (since no functionality is taken away in it).

EDIT:

FAQ point no. 1 and no. 8. And also the download link.

^This is all the things you should check.

It's right there in big damn red colors, man, did you just miss the FAQ that lies on almost half a page?
[Xperia Z3 Compact Original Android Development] Amr Nasser:
Important

I'm Confused Now Which One To Download :D

I Got One Called " O1X " , Is This The Right One ??

I Will Fastboot TWRP First To Be Able To Flash It
[Xperia Z3 Compact Original Android Development] asl0501:
here's what i did..
[Xperia Z3 Compact Original Android Development] someone755:
The right one is whichever one you choose to get, I don't judge. You have the descriptions and the changelog/feature list on the first page, pick your poison.

Then I'm afraid you're doing something wrong.

Flash CM12, then flash this kernel and boot into Android -- you're either doing something wrong or something extra.
[Xperia Z3 Compact Original Android Development] Amr Nasser:
Important

Thanks

Managed To Flash It :)

Now My Device Got 54K In Antutu :D

Hope To See Frequent Updates

Just Want To Know Something About A Bug I Faced

In Any Messenger Like Viber , Hangouts Or Skype >> I Don't Hear The Person Nor Him When Calling Until I Open Loud Speaker

Anyone Else ??

I Just Want To Know If It's Kernel Or Rom Bug

Thanks
[Xperia Z3 Compact Original Android Development] someone755:
Last nightly build was 4/3, but one is said to come out in a day or two. I've already cherry-picked the new commits and the new kernel builds are now uploading (marked as O1b and O1Xb). They work as expected on the 4/3 nightly. Anyways, the changelog is on the first page.

I feel the need to announce some not-so-slight delays in the development of this piece of software, just so you know why things seem to have stopped in this thread. As I am a student, the majority of my time is spent doing schoolwork, and tweaking around kernels is something I can only afford when a rare day off comes around. I will try my best to keep the kernel updated with what CM pushes in their nightlies, as this will be of the utmost importance, but other features will sadly have to wait until I get a break. Pull requests on GitHub are also welcome if you have the time and knowledge to make a contribution. I'll still keep my subscription to the thread and try to answer to any post as soon as I can. I will not change the status of the thread since I will still be maintaining it, but again, that might seldom happen, perhaps not even for a full month or two.

I apologize for the inconvenience this has probably caused for some of you, and I wish you a happy school-free March.

EDIT: 10/3/2015

I've updated the kernel in the Drive download folder, but it still bears the O1b name. This is not the same kernel as the O1b from 7/3/2015! And I advise you all to update!

Also to note: I'll stop supporting testing builds with Enforcing SELinux, as it'll save me time and storage. In hindsight, Enforcing Z builds didn't make sense. The change is already reflected in the FAQ and the readme in the download Drive folder, and the latter one has been reorganized to make sense (Yes, you have to click two more times to get to stable enforcing builds but that's the price I'm willing to pay since it looks much more neat and tidy.)

EDIT: 12/3/2015

Z3 uploaded (11/3/2015), memory performance improved a bit, WiFi performance worsened by a few million % (read: i broke wifi). Trying to find the commit that broke it :T The ramdisk recovery has been removed to decrease size -- we have a recovery partition anyways, ramdisk recoveries are obsolete, don't know why CM insists on doing this.

EDIT: WiFi is fixed. Also uploaded a recovery zip that flashes TWRP 2.8.5.0 to the fota partition for future use, just in case people are still using the CM default recovery.

EDIT: No replies to thread -- don't know whether that's a good or a bad thing lol. Anyways, for your enjoyment: O2.
[Xperia Z3 Compact Original Android Development] LaManchaDK:
Hi, I cannot flash either kernel or recovery. The kernel says error in recovery and the recovery installs like a peach but still stuck with cm recovery [emoji15]
[Xperia Z3 Compact Original Android Development] someone755:
What error did you get, what kernel and ROM are you running, what kernel version did you flash etc. I said this a couple posts back: no input = no output -- I can't know what happened without a description or a log.
[Xperia Z3 Compact Original Android Development] LaManchaDK:
Hi again.

Running latest CM12 nightly

I guess stock kernel

Flashing O2X

Error is as follows on the kernel flash:

E: Cannot load volume /misc!

Finding update package

Opening update package

Verifying update package

E:failed to verify whole-file signature

E:siganture verification failed

Installation aborted

E:Cannot load volume /misc!

For the recovery in fastboot there were no errors, it flashed like it should but i still get the ****ty cm recovery, although ROM manager says that TWRP is installed...
[Xperia Z3 Compact Original Android Development] someone755:
Oh so you're using the CM recovery, excellent! More proof that thing sucks. Try mounting just every partition you can in the CM recovery, then see if that helps.

Try flashing AndroPlus kernel and then flash Kernel12, or fastboot flash recovery the recovery image inside the recovery zip and then flash the Kernel12 zip.

I see no reason why your recovery wouldn't just switch to TWRP after flashing the recovery zip. I've wiped my phone completely and flashed a stock FTF to see if I was missing something, then I flashed the kernel and recovery zips and it all worked normally. I checked the flash scripts and it all looks good too.

EDIT: I've noticed a huge mess I've made in O2 (maybe the Z build too); the hotplugging is messed up so it either turns the cores all the way up or all the way down (effectively disabling them, which leads to a reboot). To me, the reboots don't occur often, but the heat and battery drain are noticeable. I recommend y'all to flash O1/O1X and stay on that until I get some time to see what's causing this and push a fix.
[Xperia Z3 Compact Original Android Development] C2fifield:
Hey I was wondering if maybe you could look into this. I don't know much but I thought it was cool ?

http://xdaforums.com/showthread.php?p=59639748
[Xperia Z3 Compact Original Android Development] tocirah1:
Hi, could you please add this notification LED mod:

http://xdaforums.com/xperia-z2/orig-development/sexy-kernel-patch-notification-light-t2808983

Much appreciated!