Skip to content

Commit

Permalink
RPi | Disable idle frequency setting on all models but RPi4 (#3692)
Browse files Browse the repository at this point in the history
+ DietPi-Config | RPi: Hide idle frequency setting on all models but RPi4 until related system hang/crash issues have been solved: #3690
+ DietPi-Patch | RPi: Comment arm_freq_min on all models but RPi4 until related system hang/crash issues have been solved
  • Loading branch information
MichaIng authored Jul 22, 2020
1 parent 75a93a0 commit 9e6152d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dietpi/dietpi-config
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ Please reboot this system once, the HW bit which allows USB boot support will th

local arm_freq_min=$(sed -n '/^[[:blank:]]*arm_freq_min=/{s/^[^=]*=//p;q}' /boot/config.txt)
[[ $arm_freq_min ]] || { [[ $G_HW_MODEL == [01] ]] && arm_freq_min=700 || arm_freq_min=600; } # 700 on RPi1+Zero, 600 on all others
G_WHIP_MENU_ARRAY+=('ARM Idle Frequency' ": [$arm_freq_min MHz]")
(( $G_HW_MODEL == 4 )) && G_WHIP_MENU_ARRAY+=('ARM Idle Frequency' ": [$arm_freq_min MHz]") # https://github.com/MichaIng/DietPi/issues/3690

local initial_turbo=$(sed -n '/^[[:blank:]]*initial_turbo=/{s/^[^=]*=//p;q}' /boot/config.txt)
G_WHIP_MENU_ARRAY+=('ARM Initial Turbo' ": [${initial_turbo:=0} seconds]")
Expand Down
7 changes: 7 additions & 0 deletions dietpi/patch_file
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,13 @@ _EOF_

done

fi
#-------------------------------------------------------------------------------
if [[ $G_HW_MODEL == [0-3] ]]; then

G_DIETPI-NOTIFY 2 'Commenting arm_freq_min until related system hang/crash issues have been solved: https://github.com/MichaIng/DietPi/issues/3690'
G_EXEC sed -i 's/^[[:blank:]]*arm_freq_min/#arm_freq_min/' /boot/config.txt

fi
#-------------------------------------------------------------------------------
# Last subversion patch completed
Expand Down

0 comments on commit 9e6152d

Please sign in to comment.