cleanup tici_init in launch script

fast-pwr-save
Comma Device 2022-03-21 16:45:24 -07:00
parent c76434ca9f
commit 03ac5bb4e3
2 changed files with 4 additions and 7 deletions

View File

@ -104,14 +104,7 @@ function tici_init {
sleep 3
fi
# setup governors
sudo su -c 'echo "performance" > /sys/class/devfreq/soc:qcom,memlat-cpu0/governor'
sudo su -c 'echo "performance" > /sys/class/devfreq/soc:qcom,memlat-cpu4/governor'
# TODO: move this to agnos
# network manager config
nmcli connection modify --temporary lte gsm.auto-config yes
nmcli connection modify --temporary lte gsm.home-only yes
sudo rm -f /data/etc/NetworkManager/system-connections/*.nmmeta
# set success flag for current boot slot

View File

@ -416,6 +416,10 @@ class Tici(HardwareBase):
# Allow thermald to write engagement status to kmsg
os.system("sudo chmod a+w /dev/kmsg")
# setup governors
os.system("sudo su -c 'echo performance > /sys/class/devfreq/soc:qcom,memlat-cpu0/governor'")
os.system("sudo su -c 'echo performance > /sys/class/devfreq/soc:qcom,memlat-cpu4/governor'")
def get_networks(self):
r = {}