掌機 - Miyoo Mini - 為何scaling_governor總是在ondemand



司徒一直很好奇,為何scaling_governor總是在ondemand,即使透過工具設定後,還是無法看到新的設定值,於是,逆向MainUI後,答案揭曉,MainUI每次啟動後,都會重新設定成ondemand

如果以病毒來分類,這個MainUI會被分類到流氓軟件...

既然是流氓軟件,那模擬器自然會有更不一樣的設定,果然,PS1模擬器被設定成performance

$ cat Emu/PS/launch.sh
#!/bin/sh
echo $0 $*
progdir=`dirname "$0"`
homedir=`dirname "$1"`
cd $progdir

./cpufreq.sh

HOME=$homedir $progdir/pcsx -cdfile "$1"

#HOME=$homedir $progdir/ra32.ss -L $progdir/libpcsx.so "$1"

cpufreq.sh

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor