[HD2 Android NAND Development] ph03n!x:
We have a fix​

Please read this post (and Thanks Milaq for the fix!!) and follow the instructions.

[*]Also, can someone test custom auto brightness levels too please?

I have made a ClockWorkMod flashable version of the fix in this post. This should cover almost all ROMs, irrespective of how the device is named in build.prop (leo, htcleo, bravo, qsd8k).

Original Post:

UPDATE: Thanks to Looki75, we have a workaround using Tasker to have custom auto-brightness levels with the flashing LED libraries here. Please go through his post and give your feedback!

I am rewriting the whole post, based on what I realized/ learnt today :)

We currently two lights libraries for to our phone:

lights.htcleo.so - this file has working auto-brightness and flashing LED notifications - but custom auto-brightness settings do not work (more on this a bit later)

lights.qsd8k.s0 - this file has working auto-brightness and custom auto-brightness levels, but LED notifications do not flash

Custom auto-brightness settings

What is it?

This is a setting/ feature in CM7 ROMs, not sure if MIUI has it or not (Users, please confirm if you have custom auto-brightness settings in non-CM7 based ROMs)

In a pitch dark room, the screen's brightness chosen by auto-brightness setting may be higher than required. With custom auto-brightness, the level of brightness the phone uses for a specific amount of light can be configured - the biggest benefit being higher battery life. Please read this post by @Dorimanx for custom auto-brightness levels.

How do I know if I have it or not?

You do not have the lights library that is compatible with custom auto-brightness levels if:

Your LED Notifications work (Except HeirOS kernels)

If you have something similar to this in your logcat:

On the other hand, you have it if

Your LED does not flash

Your screen will dim for several seconds (5~10seconds) before timing out

You do not see the errors I had quoted above in your logcat

So what is the point of this thread?

I had tried several Kernel combinations (and libaudio.so, but that does not matter in this issue) while trying to figure out the No Sound/ BT Voice Command/ libaudio.so issues, and found out that even if I have lights.qsd8k.so, which enables custom auto-brightness levels, LED Notifications flash with HeirOS 1.7.5 Kernel - they flash in amber and green alternatively. This gave me a hope that

This is something to do with the kernel (I used Tytung's initrd.gz, so it is not from there...)

This could be fixed easily with all our kernels, because HeirOS has already done it!

So What Next?

Anyone using any of the HeirOS kernels see what library you have (/system/lib/hw), and please use the lights.qsd8k.so if it is not there, deleting lights.htcleo.so while at it (it is available in the Mirrors used by @Dorimanx), and confirm if you concur with my observations - please mention the kernel version and the name of the lights library in your feedback.

Once we have that confirmed, we can request HeirOS to let us know the secret ingredient :) (or someone intelligent enough to look through the source codes can find it and post the diff/ findings).

This is not a critical/ experience-affecting issue, but rather something that is now "broken" and can be fixed without much ado!! I am sorry for not being clear earlier, a little bit of Rum cleared things up for me :D

Lets now restart this discussion!!!