2022-01-21 23:32:10 +08:00
|
|
|
on charger
|
2022-02-17 10:25:08 +01:00
|
|
|
stop vendor.sensors
|
|
|
|
chown radio wakelock /sys/power/wake_lock
|
|
|
|
chmod 0660 /sys/power/wake_lock
|
|
|
|
chown radio wakelock /sys/power/wake_unlock
|
|
|
|
chmod 0660 /sys/power/wake_unlock
|
2022-01-21 23:32:10 +08:00
|
|
|
|
2022-02-17 10:25:08 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
# Allow system to sleep when in COM
|
|
|
|
write /sys/module/lpm_levels/parameters/sleep_disabled 0
|
|
|
|
write /proc/sys/kernel/sched_boost 0
|
2022-01-21 23:32:10 +08:00
|
|
|
|
|
|
|
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
|