Files
agnos-builder/userspace/usr/comma/init.qcom.sh
T
Adeeb Shihadeh 62d2cc4264 Unlock full CPU freq (#447)
* 3s savings

* limit

* bump

* revert that
2025-01-26 16:13:29 -08:00

14 lines
436 B
Bash
Executable File

#!/bin/bash
# don't restart whole SoC on subsystem crash
for i in {0..7}; do
echo "related" | sudo tee /sys/bus/msm_subsys/devices/subsys${i}/restart_level
done
# use max freq to boot up quickly, then limit
echo 1689600 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
echo 1689600 | sudo tee /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq
# boot wifi
echo 1 | sudo tee /sys/kernel/boot_wlan/boot_wlan