avicii: overlay: Enable smart charging
Signed-off-by: AmolAmrit <amol.amrit03@outlook.com>
This commit is contained in:
committed by
AmolAmrit
parent
464f7e5dad
commit
b08262f3ce
@@ -29,6 +29,10 @@ on early-boot
|
|||||||
write /sys/bus/msm_subsys/devices/subsys11/restart_level RELATED
|
write /sys/bus/msm_subsys/devices/subsys11/restart_level RELATED
|
||||||
|
|
||||||
on boot
|
on boot
|
||||||
|
|
||||||
|
# Battery
|
||||||
|
chown system system /sys/devices/virtual/oplus_chg/battery/mmi_charging_enable
|
||||||
|
|
||||||
# Display
|
# Display
|
||||||
chown system system /dev/oplus_display
|
chown system system /dev/oplus_display
|
||||||
chown system system /sys/kernel/oplus_display/dimlayer_bl_en
|
chown system system /sys/kernel/oplus_display/dimlayer_bl_en
|
||||||
|
|||||||
@@ -170,4 +170,10 @@
|
|||||||
<!-- If true, the display will be shifted around in ambient mode. -->
|
<!-- If true, the display will be shifted around in ambient mode. -->
|
||||||
<bool name="config_enableBurnInProtection">true</bool>
|
<bool name="config_enableBurnInProtection">true</bool>
|
||||||
|
|
||||||
|
<!-- Smart charging -->
|
||||||
|
<bool name="config_smartChargingAvailable">true</bool>
|
||||||
|
<string name="config_smartChargingSysfsNode" translatable="false">/sys/devices/virtual/oplus_chg/battery/mmi_charging_enable</string>
|
||||||
|
<string name="config_smartChargingSuspendValue" translatable="false">0</string>
|
||||||
|
<string name="config_smartChargingResumeValue" translatable="false">1</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user