
Thanks!
How to edit the autostart.sh file? I connected to my RPi using putty, but i suck at linux terminal.I have the script in
Code: Select all
/storage/.config/autostart.sh
You need to make it exec
Code: Select all
#!/bin/sh
(sleep 20
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
)&
Code: Select all
chmod ugo+x /storage/.config/autostart.sh
Code: Select all
cat /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
Thanks alot, that helped. To be honest i should have thought of that myself, feel like a total noob
After the check-command, should something show in the terminal? I the CPU goes up to 100% when i run the command and then falls back to idle (94-96%)xbs wrote:1. Create the file using notepad or notepad++ (in windows)
2. Copy the file to the mentioned folder (In Windows: Network > OPENELEC > Configfiles)
3. SSH RPi and type4. Reboot the RPiCode: Select all
chmod ugo+x /storage/.config/autostart.sh
5. Check using6. Enjoy OC @ 50% CPU loadCode: Select all
cat /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
Code: Select all
top
Code: Select all
htop
Code: Select all
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
Code: Select all
#!/bin/bash
echo -e "\n###############################################"
echo "# RASPBERRY PI SYSTEM INFORMATIONS #"
echo "###############################################"
echo -e "\nCPU current Frequency: `vcgencmd measure_clock arm`"
echo "CORE current Frequency: `vcgencmd measure_clock core`"
echo "CORE current Voltage: `vcgencmd measure_volts core`"
echo "CPU current Temperature: `vcgencmd measure_temp`"
echo -e "\nFirmware Version: `vcgencmd version`\n"
echo -e "Codecs Status:"
echo "`vcgencmd codec_enabled H264`"
echo "`vcgencmd codec_enabled MPG2`"
echo "`vcgencmd codec_enabled WVC1`"
echo
Code: Select all
sh /storage/.config/sysinfo.sh
Ok, cause noting happens when i write that in the terminal. Will double chech the code in the file and run the other command again. No idea what that command does thoughxbs wrote:It should show the value of the threshold, i.e. 50
You can try different values but I find 50 to be the most balanced.
At 50, normal (xvid/divx) SD content doesn't force the OC but most HD will and that's fine especially if it has DTS/AC3 audio.
It also seems to make the GUI faster/smoother when navigating thru XBMC.
Code: Select all
cd /storage/.config/
Code: Select all
ls
The file is a .sh file and path is: \\OPENELEC\Configfiles\autostart.shxbs wrote:Even if there's a problem in the code or the place where the file is or even the name of the file it should show the default value, i.e. 95
Ah ok it show 95, that's the default value.
Check the script code, path and name (make sure is not autostart.sh.txt)
Also make sure you made it executable by running chmod...
Code: Select all
#!/bin/bash
(sleep 20
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
)&
Tried this. Threshold is still 95. BTW, should there come something after the chmod command? Nothing happens when i write it.xbs wrote:Everything seems fine... try this:
chmod and reboot then check the threshold again.Code: Select all
#!/bin/bash (sleep 20 echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold )&
btw there's some errors in the system info script that I'm not seeing here.
Code: Select all
chmod ugo+x /storage/.config/autostart.sh
Code: Select all
sh /storage/.config/autostart.sh
Code: Select all
cat /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
Code: Select all
root ~ # sh /storage/.config/autostart.sh
/storage/.config/autostart.sh: line 2: $'\r': command not found
/storage/.config/autostart.sh: line 7: $'\r': command not found
'oot ~ # sleep: invalid number '20
/storage/.config/autostart.sh: line 4: $'\r': command not found
/storage/.config/autostart.sh: line 5: /sys/devices/system/cpu/cpufreq/ondemand/: No such file or directory
/storage/.config/autostart.sh: line 6: $'\r': command not found