device_motorola_sm7325-common/rootdir/etc/init/hw/init.mmi.charge_only.rc
SGCMarkus f2a8de29f1 sm7325-common: update to S1RG32.53-18-11
Change-Id: I4bea9b6ebe78c4fc87c89405b43bb51467575be5
2022-08-06 21:51:07 +02:00

27 lines
1.0 KiB
Plaintext

on charger
stop vendor.sensors
wait /sys/class/power_supply/battery
start vendor.thermal-com
start system_suspend
# Enable only CPU core 0 to keep current drain to a minimum
write /sys/devices/system/cpu/cpu0/online 1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu1/online 0
write /sys/devices/system/cpu/cpu2/online 0
write /sys/devices/system/cpu/cpu3/online 0
write /sys/devices/system/cpu/cpu4/online 0
write /sys/devices/system/cpu/cpu5/online 0
write /sys/devices/system/cpu/cpu6/online 0
write /sys/devices/system/cpu/cpu7/online 0
service vendor.thermal-com /vendor/bin/thermal-engine --minimode
class charger
user root
group root system oem_2907
socket thermal-send-client stream 0666 system oem_2907
socket thermal-recv-client stream 0660 system oem_2907
socket thermal-recv-passive-client stream 0666 system oem_2907
socket thermal-send-rule stream 0660 system oem_2907
disabled