Open fredericschulz opened 5 years ago
I have the same problem for months. I am not familiar with the script. Is this, changing continue to return, a reasonable fix?
Hi guys, the solution is very simple. That script is able to tweak the CPUGovernors of the Rock64 AND the RockPro64 too. Easy way to fix that is to uncomment the function calls that are only used for RockPro64:
nano /usr/local/sbin/rock64_fix_performance.sh
then scroll down with arrows and uncomment like this if you use Rock64:
` Tweak_CPUFreq_Governor /sys/devices/system/cpu/cpu0 # rock64 and rockpro64
Tweak_DevFreq_Governor /sys/class/devfreq/ff300000.gpu # rock64 Tweak_DevFreq_Governor /sys/class/devfreq/dmc # rock64 and rockpro64 ` In my case, there are no more emails because of that error
Tweak_CPUFreq_Governor /sys/devices/system/cpu/cpu0 # rock64 and rockpro64
#Tweak_CPUFreq_Governor /sys/devices/system/cpu/cpu4 # rockpro64
#Tweak_DevFreq_Governor /sys/class/devfreq/ff9a0000.gpu # rockpro64
Tweak_DevFreq_Governor /sys/class/devfreq/ff300000.gpu # rock64
Tweak_DevFreq_Governor /sys/class/devfreq/dmc # rock64 and rockpro64
(In case for the Rock64 owner, almost at the end of the file) you mean like this?
Tweak_CPUFreq_Governor /sys/devices/system/cpu/cpu0 # rock64 and rockpro64 #Tweak_CPUFreq_Governor /sys/devices/system/cpu/cpu4 # rockpro64 #Tweak_DevFreq_Governor /sys/class/devfreq/ff9a0000.gpu # rockpro64 Tweak_DevFreq_Governor /sys/class/devfreq/ff300000.gpu # rock64 Tweak_DevFreq_Governor /sys/class/devfreq/dmc # rock64 and rockpro64
(In case for the Rock64 owner, almost at the end of the file) you mean like this?
Exactly
I just installed the stretch-openmediavault-rock64-0.9.14-1159-armhf.img.xz image on my Rock64. On boot I get an error via email telling me
This is the code from the the script:
The first error is thrown because of
If I got it right the if statement checks if a directory given by the first command line argument does not exist. For me apparrently it does not. So the script trys to "continue" which doesnt work. As the Tweak_CPUFreq_Governor is called later on it checks if it is a rock64 or rockpro64 by checking for a file. I guess in the if statement the script is supposed to exit the Tweak_CPUFreq_Governor function if the file is not found? I replaced the continue with a return and got no error anymore.