yashsingh1/xdaforums huggingface dataset:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Kostyan_nsk:
Vice versa, this is what gpu for. In any way surfaceflinger renders frames using EGL. In hwcomposer you can implement only some "post processing", i.e. blending, flip / rotation. But it could be reasonable if board has additional vpu, for instance. Put this job on cpu has no sense and any benefits, imo.

Tearing is not because of vsync or cpu / gpu rendering. Framebuffer's code of my Kirin 910 is a total mess (bad legacy of K3V2), but as I guessed, the main goal is that it puts frame directly into dispay's controller memory, so you get image instantly on your display. And surfaceflinger provides sync fences which also helps to reduce delays - sf can call set() in hwcomposer when frame is not ready yet, framebuffer will be signalled straight from EGL driver when frame is finished and could be put into display. Right after putting frame into display, fb also signals EGL that buffer is no longer needed and could be used for rendering of next frame.

So to get rid of tearing, you have to use framebuffer for composition, I was writing about it here already before.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi , myself i alway use the dev' option to force GPU for 2D draw. i alway get a bigger CPU perf like this.

for the Meticulus option : debug.sf.no_hw_vsync , i've set it to 0 inside port , now i will try some day with 1 value...

for now, i will not change coz' of app crash.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
I'm testing this fantastic ROM and I came across some bugs (I followed the guide to install it and I did a clean install):

1) Battery drain;

2) Many apps will crash but not the newly installed ROM, only after using it for two days (ex. Amazon shopping; Flipboard ...);

3) Messages app does not work;

4) Each time you restart the phone I have to go into the settings and change the developer root access because otherwise it does not give me access to the management of root access.

Moreover, this ROM is fantastic, I had some huge improvements in fluid level so I'm hoping there in an almost final release. Thanks for the hard work and sorry for my english.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
1) That is due to open source HWC (?)

2) Do a clean install if you didn't, or check if the images are corrupted or not

3) Same as point 2

4) Set root access to "apps only", otherwise you'll have to set it everytime you reboot
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
I understand the reason of the crash of the app: Greenify, do not know why but it goes well :crying:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] shangzhang:
Hi nexolight,

Thank you so much for this wonderful ROM. it brings some meaning to this phone. P8 hardware is good for me. Yet the stock ROM is an amateur. One issue of the stock ROM is that when I use Moon+ Reader to listen to my epub books, the middle button on my headphone doesn't work. Now this CM ROM totally solved it.

Another issue I had with P8 stock ROM is the very low mic gain. When I make a call, the other side can barely hear me. I have to use my headphone or put it on speaker. Unfortunately, this CM ROM doesn't solve this issue. I thought about FAUXSOUND. Is it possible that you can insert this FAUXSOUND into your kernel? I hope that will fix the low mic volume issue.

Thanks a lot.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] a. felon:
Hello and thanks for the huge effort you guys put in this work. I've been following this thread since the early days of the project but hadn't tried it yet. The P8 is currently my daily driver so I didn't wanna risk having it bricked. Now that the rom has come a long way I have to ask, can I use this as a daily driver?

Thanks again and hope we have a final release soon ?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
yes, without any doubt you can use it as a daily driver. I have rolled back to arrow rom because of the battery drain... I don´t know why.. but the battery consumption was excessive. i am waiting for an update or a fix because the performance is awesome moreover how it looks i love it
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wfonz:
I haven't noticed any battery draining.

Moreover, it looks like with cm it last longer than stock/arrow rom
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] klikar097:
It drains more for me too. Even when I'm doing nothing. It's like evry time I check phone I have less percent.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
The app crashes are definitely not because of the opensource hwc.

It allowed me to take the vanilla cm libraries which has resolved all (?) of them.

I'm running the latest image even a few weeks more but hadn't had a single crash after the hwc switch.

I'm also using the amazon app without any issue so it's probably something else. Logs would help a lot.

btw. The root for "apps and adb" is persistent on my device. I don't need to apply it again each reboot.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I do so and I'm not a casual nor an extreme user.

The base functionality is given. Some minor issues may still occur.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
What do you mean by excessive?

For me it lasts for about 1 1/2 days.

Heavy usage is about 2-4h out of these 36h

I could not really notice any difference to be honest. Does anyone else have this problem compared to before?

I'm afraid that there won't be a fix soon as long as it's not something obvious and I won't invest that much time in future.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I used some of the sound libraries from huawei without much checking If I could get it to work with the cm sources. I however noticed that the key part which enabled audio was an opensource one. Basically it should be at least possible to fix that. YOu most likely have the same problem as on stock because I used some of their libraries.

I never heard about FAUXSOUND. But the next time I do something on the project I will check if the patches mentioned in the playstore are present within the kernel. I should be able to patch in when it is not.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I had some issues with low volumes too, Viper4Android fixed them all.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
Hi Nexolight two hours display and only from 8am to 11pm more or less... I think that i am doing something wrongly because it is not everybody who has the problem there are some isolated cases similar to mine.. but i have installed the rom twice and both of them clean installations... but i must forget something.

I will try again thanks
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] shangzhang:
Thank you so much nexolight. You make this P8 more usable and less boring.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] shangzhang:
Hi how did you fix it with Viper4Android? I have it installed and I thought it was only a driver for speakers or headpset and works only on output side. Maybe I missed something. Can you show me how did you set so that the mic gain is not too bad. Do you get the other side of the phone call hear you clearly?

Thanks a lot.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] jeffreyvh:
Headphones

Whenever I connect anything on the 3,5mm jack. It still plays from the speaker!

Any suggestions?

I am a musician so I need audio to be fully working.

Other then this problem, I didn't have anything else. Great job mate!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Well I've been testing the ROM again and congratulate you, the applications do not close, the battery goes perfect, the system goes fluid and fast at least for me, xposed framework v87 works without problems, as for root access you have to activate it in Every reboot
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
if you get problem's with root access , locate line "persist.sys.root_access=0" in build.prop , then change to "persist.sys.root_access=1"

reboot and test again.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Running perfect thank you very much, mac WiFi solution?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
look at this :

https://github.com/CM-Huawei-P8-Development/device_gra_l09/issues/13

tell me if you don't understand some thing
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
I added macwifi and my mac address but after restarting the problem persists, when I enter again the lines that I added with macwifi no longer appear, am I doing something wrong?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Did you give 0644 permission to your macwifi file ?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
for me it is impossible to use as a daily driver because of the battery consumption... it´s like leak of baterry i have to charge the phone twice a day and with stock rom everything works ok. :(
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
permission rw r r
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
OK, so check address syntax , with or without spaces ... I can't help more coz this address is not a problem to me.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Something strange happens to me, I grant permissions and everything is correct but when I restart the permissions they have not changed and there is no change

---------- Post added at 06:49 PM ---------- Previous post was at 06:42 PM ----------

Thank you very much for your help, the problem is already solved with mixplorer
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
OK rude boy
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
You have to use mac_addr_normalizations in bin folder, then you will dont need use this crutch..
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] a. felon:
How do I check if my bootloader is unlocked? Rooting and flashing isn't new to me but never did a Huawei before.

Also, I used to flash my Nexus 5 with minimal adb. Can anyone confirm if it works here or should I get the full sdk and adb?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Reboot in bootloader mode.

---------- Post added at 06:02 AM ---------- Previous post was at 06:00 AM ----------

Is it from stock rom? If yes, I'll add it in the build process
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] vinfrix:
does it work in GRA-UL10?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Dolby atmos working perfect
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I had this issue as well but that was very long ago. It might have something to do with the installed stock rom before this one was installed.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
For anyone who has some weird problems even after a clean install which I can't confirm.

Back then it was impossible to use the old (officially only available) kernel with any P8 which had the official stock 6.0 ROM installed. It only worked when the 5.0 ROM was previously installed.

That states that they have changed other partitions and stuff I absolutely can't determine..

They might have done that again and again within each release. That's the only thing I could make responsible for those weird errors (The ones I can't confirm on my device) apart from "human failure".

So to make it clear. You have to preinstall the stock 6.0 ROM. Most of you might have done it as mentioned in the step by step.

However to have the exact same version as I do, you need this one:

Huawei P8 Firmware (GRA-L09, Android 6.0, EMUI4.0, C432B321, Nordic European)

Vendor libraries come from this version. They might interact with other partitions which huawei might have changed from release to release. I don't think so but it is possible.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Connect the device to any pc and open the shell with

"adb shell" then enter "htop"

You will get some kind of console based task manager.

This does work from any terminal emulator as well.

You might want to look for any process which has constant heavy cpu usage.

You might also watch for errors with "adb logcat -C" or just "logcat -C"
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Theres a workaround mentioned in github. It's not fixed yet but that should do it.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Eww my bad I excluded it from the init.rc scripts as far as I remember. I inculde it in the next build.

Edit: [MENTION=6233909]AD2076[/MENTION] it is, and it's even included in the rom. Just disabled within the init scripts.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
No one confirmed (nor tried it?) so far.

There's only one option to find it out.

In case it does at least dualsim won't work out of the box.

I'm quite sure it will at least boot up. But I can't promise it at all.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
It is commented in proprietary-files.txt

---------- Post added at 12:58 PM ---------- Previous post was at 12:51 PM ----------

I had confirmation the lineage-13.0 build works, have a look here. Lineage build is totally based on this one, so I assume it will work. Dual sim not confirmed due to the lte signal bug.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] daniel02j:
The rom is good and I consider that there is a great work done by nexolight I hope you correct the heating problem when you put to charge the cell for its overheating is the only reason I stop using it otherwise excellent
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Guys browsing and browsing I found this fix for youtube, I do not know if it will work but we can try
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] amikoQ:
Hi,I want to tell you a question about this ROM. When I want to listen to the music, insert the headset but still work with the built-in speaker.I like CyanogenMod very much. Thank you very much for your effort.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Try a different headset. I have the same issues with some headsets while others work flawlessly
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] maikeru-chan:
I have a video of it running on my UL10 uploaded on my Google Drive: https://drive.google.com/open?id=0B4TWbRlEJyMGZVZtT1NGcWVEQTQ

Someone confirmed it runs on the UL00, right? And the UL10 and UL00 are pretty much the same except for the NAND capacity.

Also reporting for a bug in which video playback looks faded and has like a gray tint to it (see video linked in which I open my video in Instagram) and it's not just in Instagram but even stock gallery and MX Player has it. Skipping videos also has problems sometimes that the video will just freeze.

This ROM is almost perfect! Only thing missing now is having the ability to record. Do you guys think that porting EMUI's camera to AOSP will work because the guys at the Honor 5X forum has the EMUI camera ported to AOSP. And can we get manual control too?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ITzAndry:
You can record using app like Snapchat, footej camera etc. and you can record screen too using the recorder app.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
I have installed the package... something better but also worsens other things... the video you can see in 1080p60 but not on the application, only on the site of YouTube, also do not know why but I can not play any video from application of YouTube... so... do not install it !!!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] maikeru-chan:
Doesn't have manual control though. :/
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Manual camera
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I won't as for me it doesn't overheat.

I need to reproduce something to be able to fix it.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
I have a problem with screen mirroring, when active send screen does not appear any device or screen wireless, someone knows how to fix?.thanks
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] xilin zheng:
Don not work in Wechat！
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lidaka:
Great rom

Well done! It's running smooth but the battery drain is that terrible that I have to charge the phone twice a day under moderate usage.

Can someone figure out how to fix that issue?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
what ?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Try to wipe data and system and flash again
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
In my case it was the same and i had to give up using it as a daily driver... i am waiting for some updates.. but it´s a fantastic work and there has been much effort.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
[MENTION=6233909]AD2076[/MENTION] is quite active at the lineage 13 branch. The next build will include this stuff. I'm however afraid that this won't help with any complains about battery life. I'm not even sure if this is a real issue. Numbers are missing from most of the complains.

For me a full charge still lasts for one day with average usage. In pure standby up to 2 1/2 days.

I had a B321 stock rom previously. The vendor files also come from this version. It could help to flash this one via UPDATE.APP and then flash this rom.

It would however surprise me a little.

Assuming that this issue is present across the whole user base and only then I'd need to know at which time the issue came up.

The complains started at the hwc fix. However this is probably just because before everyone complained about app crashes. This might not be the problem at all.

What I could also do is changing the core usage a bit.

Currently the last 4 cores are used for foreground-boost and all 8 cores for foreground.

I could probably reduce those 8 cores to just 4 and make the last 4 foreground-boost exclusive. The last 4 cores are a bit modified by huawei they are not from the same type. They drain more power but also deliver more performance.

This is the current config:

#Note 0-3 less performant, more economic; 4-7 more performant, less economic.

write /dev/cpuset/foreground/cpus 0-7 [I][COLOR="Red"]-> 0-3[/COLOR][/I]
write /dev/cpuset/foreground/mems 0
write /dev/cpuset/foreground/boost/cpus 4-7
write /dev/cpuset/foreground/boost/mems 0
write /dev/cpuset/background/cpus 0-3
write /dev/cpuset/background/mems 0

write /dev/cpuset/system-background/cpus 0-3
write /dev/cpuset/system-background/mems 0

This would most likely save some power without any huge noticeable performance difference during active usage (but only in this scenario).

I could also provide a second boot.img with some cores disabled if anyone wants that.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I modified a custom power hal from frd's one by [MENTION=2335078]surdu_petru[/MENTION] to manage the interactive governor on cpus, this could help.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Oh I didn't tough about the governor.... yup that could help.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ASMstudent:
Hi there

I'm from speedo version of this ROM and yes battery life with greenify and powersave governor is very reliable but the problem is when the device is put into sleep which causes a >15% over night drain.

And sometimes I feel like the battery paradoxically charges faster when I'm using the device than just leaving it.

I don't know if there is an app that schedule frequent wakeups because I think it's worth trying.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lidaka:
So it's 2:50 PM right now and my phone is on 57% of battery. The phone is unplugged from night charging at 8:30 AM

I've been using LTE but I am switching it off when I don't need it. I've played CarX for about 5-6 minutes.

Screen orientation turned off, GPS is off, brightness is no more than 50%

Possible drainers: facebook, messenger (facebook), viber

Today's usage is medium to low.

Is it me or is it for real going down quick? If I can help somehow I can provide any information
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ilovecheats:
He maybe is a Chinese. The app he was talking is WeChat, an IM app somehow similar to WhatsApp. Wechat is a popular app in China, and since Huawei is a Chinese brand the largest user base is of course China. Maybe just some incompatibility issues about this particular app. Or maybe some problems with his machine, since when you guys worldwide got GRA-L09 for the "Standard" version for P8, Chinese users get GRA-UL00 for that version. Not sure what's the difference, but there may be something that worth the change in model number(or not). BTW the "Premium" version is all the same around the world, GRA-UL10. Also thanks for your hard work. EMUI has never been my cup of tea, the feeling of AOSP ROMs and stock is. Huawei is also abandoning this, since they are NOT going to release the EMUI 5 for P8, future official system updates may just be security updates and bugfixes, or even no further updates. Your hard work saved my phone from some trash-like state, and made my day a better day. Thank you.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
That's at least quicker than mine.

The information which would help is what the battery drain caused. If there's no specific app consuming obviously too much it might be just a too aggressive cpu settings.

In this case we can probably fix that.

However what we can't fix are apps which just drain too much.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lidaka:
There is no specific app that drains too much under Settings>Battery

Gonna charge until 100% right now and I will see how it's going after that, I'll give feedback.

Might be the CPU settings... dunno

Also, I have a question about the stock Huawei camera app. Is it possible to be ported because of the great features it has, or at least please suggest me a reliable alternative?

If there is some app for monitoring the battery drain you suggest, I'll download it and give feedback. I am going to help you with what I can on the testing side.:)

Thanks

P.S Soft buttons are not hiding in Snapchat, which is annoying because it does not allow me to use snapchat's buttons
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
You can fix soft buttons by flashing speedo.thc's flas_cameras.zip and choosing P9 framework instead of P8. It's also fixed in Lineage build.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lespaul79:
Chromecast, ezcast, smart tv, does not screencast work?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] viroxnet:
in last rev of lineageOS is working, but not showing headset icon
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Wrong thread:P
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] viroxnet:
lineage rom is based on this, so it's weird that it works in lineage and not in cyanogen
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Gfhoihoi72:
I installed this ROM yesterday and it's working perfectly except for one thing.

Today I tried to pay with NFC (I live in the Netherlands, some banks allow you to pay with your phone, kinda like Android Pay) but it didn't work. NFC is turned on and works perfectly.

Everything is configured just like I had on the stock rom but it just didn't recognize the payment terminal. Is this something I can fix myself or can it be added to the bugs list?

I don't know if other people also have problems with Android Pay or similar services?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Not sure about that. I get different results while playing with the vendor files. I guess that's the best result so far

... Have to read more about the architecture and some sourcecode.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Got it!!! Have the welcome screen! screenshots follow... well ok if the touchscreen would work :'D

Edit: dammit was just once. But once is better than never.