<html>Hi all,<br /><br />    Still struggling to achieve smooth playback and covering as many posts as possible, I'm trying to turn up cpu and gpu frequencies for playback. I've created system event triggers in the backend setup for play:<br />'<em>sudo /usr/local/bin/frequencyup.sh</em>'<br /><br />and stop/pause:<br />'<em>sudo /usr/local/bin/frequencydown.sh</em>'<br /><br />The respective scripts are:<br /><em>#!/bin/bash<br />echo 2300000 | sudo tee -a /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq > /dev/null<br />echo 2300000 | sudo tee -a /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq > /dev/null<br />nvidia-settings -c :0 -a [gpu:0]/GPUPowerMizerMode=1 > /dev/null</em><br /><br />and<br /><em>#!/bin/bash<br />echo 800000 | sudo tee -a /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq > /dev/null<br />echo 800000 | sudo tee -a /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq > /dev/null<br />nvidia-settings -c :0 -a [gpu:0]/GPUPowerMizerMode=0 >  /dev/null</em><br /><br />I have also manipulated sudoers with:<br /><em>mythtv ALL =(root) NOPASSWD: /usr/local/bin/frequencyup.sh<br />mythtv ALL =(root) NOPASSWD: /usr/local/bin/frequencydown.sh<br />mythuser ALL = NOPASSWD: /usr/local/bin/frequencyup.sh<br />mythuser ALL = NOPASSWD: /usr/local/bin/frequencydown.sh<br />mythuser ALL = NOPASSWD: /bin/bash tee -a /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br />mythuser ALL = NOPASSWD: /bin/bash tee -a /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq<br />mythtv ALL = NOPASSWD: /bin/bash tee -a /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br />mythtv ALL = NOPASSWD: /bin/bash tee -a /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq</em><br /><br /><br />Playback manipulates the CPU as intended, but the nvidia-setting is not being applied. I'm guessing that this is because the script is being run as root?<br /><br />What is the best way to run the nvidia setting in the context of the running mythfrontend session?<br /><br />BR.<br /><br />--Marius--<br /><br /></html>