1. AAL的作用
根据显示内容来降低背光,然后通过调节gamma来补偿显示亮度。
[gamma越高灰度越低图像越暗],通俗的理解是颜色越暗的图片越省电,这就是为什么暗色主题风格的可以省电的原因
2. 如何查看自己的机器开启了AAL开关
adb shell “getprop | grep aal”
C:\Windows\System32>adb shell "getprop | grep aal"
[init.svc.aal]: [running]
[ro.boottime.aal]: [17586569769]
[ro.mtk_aal_support]: [1]
[ro.mtk_aal_support]: [1], 1 表明已经开启
3. 如何开启 AAL
- device/lava/YourProject/ProjectConfig.mk
- kernel-3.18/arch/arm64/configs/YourProject_debug_defconfig
kernel-3.18/arch/arm64/configs/YourProject_defconfig
- YourProject/device/lava/YourProject/ProjectConfig.mk
MTK_AAL_SUPPORT = yes
- kernel-3.18/arch/arm64/configs/YourProject_debug_defconfig
debug 版本开启
CONFIG_MTK_AAL_SUPPORT=y
- kernel-3.18/arch/arm64/configs/YourProject_defconfig
正式版本开启
CONFIG_MTK_AAL_SUPPORT=y
4. AAL 可能出现的Bug
- 4.1 闪屏现象,可以修改
device/YourCompany/YourProject/ProjectConfig.mk
MTK_ULTRA_DIMMING_SUPPORT = yes
该开关打开,屏幕内容会偏暗的效果
- 4.2 其他问题
我认为省电的好处大过于可能出现的Bug,具体问题具体分析,该功能目前机型一般都会打开开关,遇到问题,拥抱Bug,起码MTK可以帮忙支持