Skip to content
Permalink
Browse files

Reduce frequency of Tinker Board

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 12, 2019
1 parent 1747f25 commit c7eb4ba5915fa08f9dd2625e472644b2311574d0
Showing with 18 additions and 0 deletions.
  1. +18 −0 build/160-asus-tinker-board
@@ -0,0 +1,18 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)

if (( $platform == 100 )); then

# Lower the CPU frequency to reduce temperature and improve reliability
echo 1300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1300000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo 1300000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo 1300000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo conservative > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo conservative > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo conservative > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

fi

0 comments on commit c7eb4ba

Please sign in to comment.
You can’t perform that action at this time.