Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bef8de8 authored by Apavayan Sinha's avatar Apavayan Sinha
Browse files

a3xelte: Fix offline Charging

Change-Id: I2527779f5d2404c3a6fc6b7422a19017a5ca3df8
parent a86ffee5
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -458,6 +458,11 @@ on property:sys.boot_completed=1
    write /proc/sys/vm/dirty_bytes 31457280
    write /proc/sys/vm/dirty_background_bytes 15728640

service battery_charger /sbin/healthd -c
    class charger
    critical
    seclabel u:r:healthd:s0

# LPM
on property:ro.bootmode=charger
    mount ext4 /dev/block/platform/13540000.dwmmc0/by-name/SYSTEM /system wait ro
@@ -467,6 +472,20 @@ on property:ro.bootmode=charger
on property:sys.tzdaemon=Ready
    start taa_service

on charger
    # Set cpu governor to powersave while in charging mode
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
    write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor powersave
    write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor powersave
    write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor powersave

    # EHCI runtime enable for LPA
    write /sys/devices/platform/s5p-ehci/power/control auto

    # Do not set any USB mode while charging
    setprop sys.usb.config charging


# DRK/CS service
service cs_service /system/bin/cs
    class main