forked from waleedq/android_device_samsung_galaxysl
-
Notifications
You must be signed in to change notification settings - Fork 27
/
lpm.rc
executable file
·35 lines (24 loc) · 841 Bytes
/
lpm.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on early-init
start ueventd
on init
sysclktz 0
on boot
# Mount debugfs
mount debugfs /sys/kernel/debug /sys/kernel/debug
# Enabling sleep in idle path
write /sys/kernel/debug/pm_debug/sleep_while_idle 1
# Enabling Voltage OFF in idle path
write /sys/kernel/debug/pm_debug/voltage_off_while_idle 1
# Enabling OFF mode
write /sys/kernel/debug/pm_debug/enable_off_mode 1
# Enabling Smartreflex
write /sys/kernel/debug/smartreflex/sr_mpu_iva/autocomp 1
write /sys/kernel/debug/smartreflex/sr_core/autocomp 1
# set cpu governor to powersave while in charging mode
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative
class_start default
## Daemon processes to be run by init.
##
service ueventd /sbin/ueventd
critical
service battery_charger /charger