[mythtv-users] nvidia geforce/ AMD cpu frequencies

Marius Schrecker marius.schrecker at lyse.net
Thu Mar 3 18:22:16 UTC 2016


Hi all,

    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:
'sudo /usr/local/bin/frequencyup.sh'

and stop/pause:
'sudo /usr/local/bin/frequencydown.sh'

The respective scripts are:
#!/bin/bash
echo 2300000 | sudo tee -a /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq > /dev/null
echo 2300000 | sudo tee -a /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq > /dev/null
nvidia-settings -c :0 -a [gpu:0]/GPUPowerMizerMode=1 > /dev/null

and
#!/bin/bash
echo 800000 | sudo tee -a /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq > /dev/null
echo 800000 | sudo tee -a /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq > /dev/null
nvidia-settings -c :0 -a [gpu:0]/GPUPowerMizerMode=0 >  /dev/null

I have also manipulated sudoers with:
mythtv ALL =(root) NOPASSWD: /usr/local/bin/frequencyup.sh
mythtv ALL =(root) NOPASSWD: /usr/local/bin/frequencydown.sh
mythuser ALL = NOPASSWD: /usr/local/bin/frequencyup.sh
mythuser ALL = NOPASSWD: /usr/local/bin/frequencydown.sh
mythuser ALL = NOPASSWD: /bin/bash tee -a /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
mythuser ALL = NOPASSWD: /bin/bash tee -a /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
mythtv ALL = NOPASSWD: /bin/bash tee -a /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
mythtv ALL = NOPASSWD: /bin/bash tee -a /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq


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?

What is the best way to run the nvidia setting in the context of the running mythfrontend session?

BR.

--Marius--


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160303/8a7c45bc/attachment.html>


More information about the mythtv-users mailing list