[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Eliminater74:
Bluetooth seems to be a HTC issue only.. Other Devices as well as other Custom ROMS, dont seem to have this issue.. As [MENTION=4255135]prstorero[/MENTION] pointed out, it could be a kernel related issue. I personally my self

ran logcat while playing music with my LG Tone 1100's with screen on and with screen off, and Noticed this:

W/Screen ON:

Notification W Use of stream types is deprecated for operations other than volume control
Notification W See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
bt_btif_a2dp_source W btif_a2dp_source_enqueue_callback: TX queue buffer size now=28 adding=1 max=28
bt_btif_a2dp_source W btm_read_rssi_cb device: b8:ad:3e:e7:71:15, rssi: 0

and w/screen OFF:, I didnt get the above warnings............ the btif, is in the source of system/bt on the rom....... I looked around there and couldnt come up with much.......

but what does seem strange, buffer size NOW=28 adding 1 and MAX=28, There is no possible way to add 1 if the max is already 28...... and also why the buffer is so small complexes me as well.....

Normally its at least 512 if I remember right..... but anyhow.. when the screen if off, everything works as it should........

But I am pretty sure that Oreo 8.1 will fix 90% of all the issues, as talking to other devs from other roms, ITs been varified that 8.1 does indeed fix many issues that 8.0 had...........

I would also like to note, that PureFusion also builds our own Custom ToolChains, https://github.com/PureFusionTC

As well as our own Custom Clang: https://github.com/PureFusionLLVM

Prior to that, I was modding source to UberTC, and realizing how outdated it was, that I decided it was time we step into the toolchain business....

I personally had to mod the sources in both gcc and binutils, to work with the latest NDK bionics........

Crosstool-ng was used as the main compiler. I couldnt find a single sample or example of building a true arm or aarch64 in some ways, so I had to pretty much crash cource my learning on GCC,

and I managed to produce fully working Most updated Chains with the latest NDK api 27, and latest binutils 2.29-1.1, all ARM chains are using custom binutils 2.25-1, because using 2.29 could give me linker errors at 89% build on the rom....................... all the aarch64's are using binutils 2.29-1.1 ..........

Here are the binaries for the chains: https://bitbucket.org/account/user/PureFusionOS/projects/PUR

Clang 7 was also updated to the latest sources, No custom mods was needed to main source, only thing I did was link in gold and binutils and among other things.

Should also point out that default linker for aarch64 is LLD, while it supports both LLD and GOLD,

Default linker to ARM is gold, while it supports both LLD and GOLD........... you cant build the rom with ARM's linker set to LLD, must be GOLD or you will get emulation error at 28%..................

I forgot to mention that my latest kernel also now supports WireGuard...

SO, just hang in there.. We are working on the issues............ we know about the BT issue.. trust me.. we are trying our best to fix that.. I think only way to fix is when we publish the 8.1 .................

Hopefully kernel source will fix many issues as well...............

Only Time Will Tell....................