yashsingh1/xdaforums huggingface dataset:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I'm not yet back from holiday but got some time to try the opensource HWC from meticulus and xepeleato again. I got them working this time (No idea what I did wrong last time).

[MENTION=5300098]Speedo.thc[/MENTION] motivated me to do so by beeing successful with copying some of the p9 files from meticulus to this rom.

This allowed me to use the cm/aosp surfaceflinger and libgui while the sleep of death issue didn't came back.

The point of this is

- no more crashes.

- Video recording trough Footej app

However the opensource hwc only has a fake vsync and the tearing within the UI is noticeable. [MENTION=7354786]XePeleato[/MENTION] is that expected? Why wouldn't that fake vsync work in theory? I see the log messages it does use that part of the code from here https://github.com/XePeleato/Hisi_HwComposer/blob/master/HwComposer_vsync.cpp

edit:

This path doesn't exist but I have vsync_event.

sys/class/graphics/fb0/vsync_timestamp
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
[MENTION=5532236]nexolight[/MENTION] If you had heard me before, you would have saved time..:)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I have read your posts but I'm not sure about the reference now(?)

In case it's this - I don't agree that eighter trying to use the vendor libs or using the opensource implementations would be a time waste. In case I need to implement the missing things

by myself

the opensource way is just as complicated as working around the issues with the vendor files. At least in my situation.

Investigations should be helpful anyway.

Even when I get the fake vsync to work for me the vendor hwc would still be a viable option.

Edit: looks like the file /sys/class/graphics/fb0/vsync_event asnd vsync_timestamp have the same purpose. However after editing it it doesn't get updated anymore after sleep/wake and tearing is still there.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Hooraaayyyy!! Can't wait!!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Here ya go : https://github.com/CM-Huawei-P8-Development/device_gra_l09/pull/20
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi [MENTION=4400604]Meticulus[/MENTION] , many thx for your help :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] XePeleato:
Well, on my P8 Lite Vsync is disabled so it might be the same on the P8. Right now the Hwcomposer on github has gone through major changes, technically, the changes that I need to code to get it working are unrelated to the module itself so I could upload it but it wouldn't make much sense because it depends on other stuff, mainly the userspace copybit code, that isn't completed yet.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Kostyan_nsk:
Copybit? Do you think it's necessrally :confused:

IMO, to get rid of tearing you have to switch from HWC_FRAMEBUFFER composition type to HWC_FRAMEBUFFER_TARGET using HISIFB_OV_ONLINE_PLAY ioctl (ADE_OVERLAY_* ioctls for P8 lite).
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] XePeleato:
Well, I'd use overlay instead of copybit but I'd still have to fight against the cryptic dss_overlay_t structure.

Anyway I have setup this repo: https://github.com/XePeleato/HwComposer_Research

If anyone wants to help there are instructions inside.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ruskooo:
it is posible to port stock camera app?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
really doubt about it even that would be very good feature since this is the best camera i ever tried
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ssimmmo:
Any update on the SD Card fix?

Many THANKS

SSIMMMO :)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
it seems dead here, are the works on CM stopped? it passed quiet long time and still no new version... android 8 is comming and we dont even have beta of android 6
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Messages like this are all but motivating. nexolight has a private life too, don't forget it. She's working really hard for this project, so sit patiently and wait.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
i didnt meant to by demotivating by any means, i just hope that devs wont stop support this devices in meantime as the progress speed these days is pretty slow and devs could eventually rather buy new phones with easier porting possibilities, i wish i could participate the development
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
It's just a question of time.

I wish to buy a new phone, I could experiment on my P8 easier.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi , for those who want to test it ( Working for my CM port for Honor 7 ):

- HWC from Meticulus P9 build + SurfaceFlinger : fixed App crash and video record for some 3rd part apps.

- Framework.res Meticulus P9 : fixed brigtness control on my port (maybe you need it)

- Include 3rd Camera app to test video recording

Remember that i can't test it on P8 , i just suppose it work fine.

First : do a backup of your system.

- Flash the Aroma and choose what you need

- I've include files to reverse to CM P8 stock , but if it don't work restore your backup.

Tell if it works or not :confused:

Download :

http://www.mediafire.com/file/tlsod5ku2bn15wc/HWC_Test_P8.zip
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Shall we flash it over the unclean build or the previous one?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
the last one is better
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
If, by the bold text above, you mean that it fixed "automatic brightness" then this might be appropriate :

https://github.com/CM-Huawei-P8-Development/device_gra_l09/pull/21
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi Johnny , yes it's exactly that , *for my H7 device , Auto brightness from Nexolight build did'nt work fine and Brigtness values was very big , even at minimum possible , i've tried others frameworks to see if there is differences , some of them did'nt boot anymore , but this one comming from the P9 built "cm-13.0-20170111-METICULUS-hi6250" works fine , and i didn't see any framework bug after replacement...

Many thx for the new values provided.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
It is right?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Yep
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
Sorry, i don't have checked the MD5, the boot was corrupted.! FALSE ALARM!

I flashed boot.img, system.img and in recovery gapps and you fix in this order and now the P8 is stuck at this screen. Normal?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Mehh I wouldn't say I'm working hard on it lately.

I also have other interest, I invested a lot of time into this project in the past and for me the rom started to become absolutely fine for me even before gps. I don't have any benefit now from working on it anymore except a few thanks from the community. It's not that easy under these circumstances to get myself motivated. I hope that makes sense somehow. I feel somehow stressed by the excpectations from the community and would rather invest into other projects but with that it's more like a must and not really that fun anymore.

The build with the HWC is ready I just need to upload it. That fixes quite a few problems including any app crash, video recording trough some apps and probably video playback at 60fps.

I also wanted to make an sdcard fix before.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi, Not normal, you're suppose to flash boot, systèm, then boot your device ... When it's OK : do a backup. After this you can try my flash, maybe without the framework to test.

PS: you also can try to flash the originals P8 files to revert changes.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
The first devices start to get android 7 updates right now. Android 8 will take quite a while

unfortunately I don't think anyone will make a android 7 build unless huawei releases a android 7 rom.

The sources are not available. I need to rely on some vendor libraries. They will however most likely conflict a lot with the new android 7 sources.

Android 6 will be fine for the next few years. Probably the batteries will give up before android 8 hits the market.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Yeah it works fine, the boot.img file was corrupted haha
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
i just hope that this rom wont be finished too late
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
I believe I understand about motivations and the unrealistic expectations of users. If there is anything I can help with, just let me know ;)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
[MENTION=4400604]Meticulus[/MENTION] thx the pull request helped a bit with the tearing. It's not 100% gone but less noticeable.

Hm there's not much left to do and I wouldn't want to beg someone else to fix what's left after the next upload but as always I will merge anything what does improve it.

Without the crashes and the ability to record videos the functionality is complete.

Well FM radio is the only missing feature.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] papsi177:
:) Not only me have this feel?)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi, don't worry, nobody will ask for stupid FM radio ( or a very bad one), keep cool, do it as a funny game , for yourself first.

.... Specially for kirin 3635 device, there is only 2 devs (you and papsi) and less than 10 for all kirins ...

All in all , thx for your job, you helped me big, don't worry with noobs.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Imanaged to fix the format as internal storage option.

I looked at the commits from paul fasola and the one from surdu petru and noticed this difference within surdu petrus fstab

his

/devices/hi_mci.1/mmc_host/mmc1/* auto auto defaults voldmanaged=sdcard:auto,,noemulatedsd....

mine

/devices/hi_mci.1/mmc_host/mmc1/* auto auto defaults voldmanaged=sdcard:1,noemulatedsd

we were locking at the wrong places so far'^^

I will upload the next build today/tomorrow. Don't expect too much after that (for the left over minor bugs) unless it's really critical.

I'd consider it a beta / release candidate now.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
New build is up
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
I installed the new build, but I encountered some bugs:

- The tearing, which completely disappears after flashing Meticulus P9 HWC+Surfaceflinger from Speedo.thc zip file

- I couldn't use my SD Card as internal memory, it gets stuck at 20% and after some minutes it returns me a timeout error; after that, the phone doesn't recognize the external SD Card anymore, until I reboot
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I wiped my device and installed these images. Then preformated the sdcard and have formated it as internal storage afterwards without any issue. Can't tell what the problem is here. It was a sandisk 32gb one. The format took about 10-20 seconds

For me it worked this way.

0. Eject sdcard within the menu when already used as portable storage and shut down. Also disconnect the usb cable.

1. Preformat sdcard (twrp?)

2. Take it out.

3. boot device up.

4. Insert sdcard.

5. format as internal storage. It takes a few minutes.

(A few steps are obsolete but just to make it fool proof.)

Edit:

It would be nice to know from where exactly those files (surfaceflinger, libsurfaceflinger*, libgui* and hwc) are.

P8 CM, P8 vendor, P9 CM/AOSP, P9 vendor)

I visited meticulus repository. His hwc looks a bit different compared to the one from XePeleato. but apart from that the files are the same. I will try it with this one

Edit2: Still tearing it's not the diffferent hwc. Are those partially vendor files in the zip?

Edit3: My bad the pull request from meticulus would absolutely help but the compiler has not recompiled libsurfaceflinger. That's why there is tearing. I will fix that and upload it again. A clean build this time.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
New build is up.

No more tearing
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] fpippo1999:
Clean build?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Even video recording works on some apps. The camera app does not even crash anymore when trying to record!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] chenazran:
Hey,

I've flash this rom, set the sd card as portable and not internal, I cannot see the pictures on the sd card when accessing Gallery.

What can I do in order to view all of my photos including the ones on the sd card to be shown in Gallery as an album?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
My new daily driver. Everything is working great so far. I'll report back in a few days. I installed Magisk, applied some themes, played PokemonGo. [MENTION=5532236]nexolight[/MENTION] you did a great work.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
its really good to see that its getting more stable now, hope it´ll be fully stable for daily use soon
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
make clobber (removes any built file)

mka (compile eveything)

- vm crash

mka

- vm crash

mka

done

It is clean. The build system doesn't care about suspend/resume only that sometimes on unclean builds some files which are already in place aren't recompiled when changes happen. that was the case before.

I moved the files to my device with

adb sync in order to not have to reinstall all addidional system apps.

when it wouldn't be fine people would already have complained.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
It is fully stable except for the mentioned bugs which don't really matter that much.

I never had a crash in weeks.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I only know that one can hide pictures from the gallery by adding a .nomedia file but no idea how to explicitely show some folders there. Does that work on other aosp/cm roms?

Maybe a symlink would help but fat filesystems don't support them.

the sdcard should be correctly mounted at /mnt/media_rw/ (device)

I don't know why the gallery doesn't pick them up.

Edit: download the app media Re.Scan open it and click start mediascan.

After that everything shows up.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
im one step from frashing this, the only thing that i wont do it yet for is Youtube bug as i use youtube a lot, please fix it ASAP and im yours!

edit. one more question, is camera quality comparable with stock rom? thanks
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
I quess the camera is as good as stock but just a different app ofcourse (no manual mode for example)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Ticamomille:
so i'm using the last build : no craches, very smooth !
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
There are people who notice differences in recorded videos 30fps vs 60fps? In games ok I agree.

Well by time maybe I will fix it. It's just that I don't have any clue why that is.

Edit: it looks like a few poeple have this issue on cm with 60fps youtube videos... It just drops the frames as soon as the video becomes 60 fps - no errors at all.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] chenazran:
Was able to solve it after clearing Gallery app data and cache, installing Rom Manager and running Fix Permission.

Thanks.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
alright, just flashed it, will report, thanks

---------- Post added at 06:13 PM ---------- Previous post was at 05:41 PM ----------

@nexolight after a few minutes i can report some bugs, search in settings is not working, after that settings app crashed, next was camera app, it once couldnt save photos, after while worked and camera app had glittchy UI once, after relaunching is working for now, last thing for now is equalizer modes for speaker, none of them works, it just mutes audio, other that that, great job!

BTW if someone is into photography, this is significantly downgrade to stock rom, no software image postprocessing makes photos look horrible in bad light conditions
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
[MENTION=4327948]00471[/MENTION] by "It just drops the frames as soon as the video becomes 60 fps" I meant every frame when it is at 60 fps so image freeze. 1080p@30fps is fine.

Search within the menu or app overview does work well for me. DId you wiped data/cache/dalvik?

The equalizer is probably indeed broken. I never tried that.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
yes, i wiped everything, no results in settings seatch, i faced this problem in tecalots ARROW rom (stock based), the problem was that i had to switch from my native language (Slovakia) to english, then results were showing, but now i have english by default and nothing
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I switched to English (United Kingdom) and still have the results. Can't tell what's wrong.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
just switched to other language than english, its working now, from my experiences i would say that its buggy in language that you select in first startup, if you additionally change language to another later, then its working, it seems its android bug not your rom as it was the exact same thing in stock rom
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Followed every single step, I always get this message (see attachment)

EDIT: okay maybe I managed to do this. But now I can't transfer my files from PC to the SD Card.. s**t
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Format as internal storage, Choose filetransfer instead of charging, unlock screen, connect usb, profit.

I have no problems with filetransfer with sdcard as internal storage.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
Nexolight you have done a fantastic job, I want to congratulate you, for me everything is working even the sdcard without doing anything, I can see everything on my sdcard which is fantastic, there is only one problem, I am not able to use my video camera.. a have used footej but the video freezes... and the only app which works whith the video reproduction is vlc... stock gallery freezes the video image. except for these small bugs and the carrier signal the performance of the Rom it´s awesome. congrats
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Hmm weird. Does anyone else have footej video recording working?

Mine does, I should have the same state as the uploaded images. I expirience those freezes only with the cm camera app.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wfonz:
Footej works but it's like fps are low

Don't know how to set honestly
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lin-vip:
hi ,guys my devices honor 4x install the rom and it can't be boot,how can i do?? the boot isn't suit for honor 4x hisi620??
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] chenazran:
Also encountering video camera is not usable.

When clicking to record a video, the picture is freezing but the time counter is running, and then when stopping the recording nothing is saved to the Gallery.

in spite of that, very nice rom thanks [MENTION=5532236]nexolight[/MENTION]
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Nope. This is only for Huawei P8 GRA-L09
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Hi , NOT for honor 4 ... for huawei P8 kirin3635

for Honor 4x you can go here :

https://xdaforums.com/honor-4x/development

---------- Post added at 03:08 PM ---------- Previous post was at 02:44 PM ----------

Hi every body , about Cameras:

For now only footje and Cameringo can record video.

I thinck it's better to flash them at "system" than install normally , specially if you use SDcard for internal storage.

On my port for H7 the twices works very well.

So here is a Installer to flash them (Aroma)

i've also include the framework P9 from Meticulus (Fix USB tethering) and the original P8 to reverse back.

http://www.mediafire.com/file/62ue7jwuz7e974a/Flash_Cameras.zip
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] 00471:
i would say that title of this thread is enough to answer your question
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ITzAndry:
If you do not unlocked the bootloader with the command "fastboot oem unlock <ur unlock code>", obviously it's locked. You have to ask directly to Huawei your unlock code.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
nexolight was right... footej is working properly i have installed everything again and now footej doesn´t have any problem. Thanks
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
With footej not with the cm camera?

the cm camera is broken.

Edit: obsolete
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] lin-vip:
i think it is compatible ，for the hisi620.i.was wrong,tks
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Tried Antutu. Here's the result
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
Is It just an impression or the phone became less smooth after using the new HWC?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Speedo.thc:
Just an illusion ...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
My phone is heating a lot more and battery is draining twice as fast after the latest update. Any idea why? I didn't wipe before flashing the new version, should I?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] ayesse:
I don't know why but I lose some frames and it lags, sometimes.. maybe I didn't install it correctly
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] klikar097:
I have the same problem, right after flashing in first time setup i had some freezes and weird shaking or something, seems better after reboot.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Honestly I wonder that this even worked. It seems that the H7 and P8 share the same source with some little differences. But that doesn't state at all that you can take any device just because it uses the same board!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
It's probably not just an impression. Or at least I have the same impression as well.

The new hwc does only implement vsync.

Normally a part of the ui rendering is made by the cpu because the gpu isn't suitable for this usecase.. The hwc is like a module. It get's something to process and reports if it is able to do so or not. When it is not, then the surfaceflinger does the job via gpu.

This consumes more power and is less smooth in this particular case.

At least this is my point of understanding.

But hey at least no one is complaining anymore about app crashes....

For anyone who complains now - eighter go and implement more functionality into the hwc or reverse engineer the huawei hwc.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
See my last post.

Eighter a bit more battery drain and less smooth or the app crashes.

It doesn't consume more power when idle just when it's in use. You must be quite a power user that it drains twice as much.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] :
Experimenting with adding "debug.sf.no_hw_vsync=1" to your build.prop might* make things a smoother. This property disables hardware vsync and surfaceflinger will use it's own built in "soft vsync".