<html><blockquote><br /><br />frequencyup.sh<br /><br />#!/bin/bash<br /><br />echo 1800000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br />&gt; /dev/null<br /><br />-------------------<br /><br />frequencydown.sh<br /><br />#!/bin/bash<br /><br />echo 1000000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br />&gt; /dev/null<br /><br />--------------------<br /><br />This is in my /etc/sudoers file<br />{username} ALL=(ALL) PASSWD: ALL, NOPASSWD: /usr/bin/tee<br />/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br /><br />--------------------<br /><br />Finally I trigger the scripts with the &quot;Playback started&quot; and &quot;Playback<br />stopped&quot; system events. I also trigger the slower clockspeed when paused, and<br />unpaused but that bit&#39;s optional.<br />--<br />Stuart Morgan</blockquote>Hi again,<br /><br />&nbsp;The issue is certainly better if I set a higher min. freq. but I found I had to raise the frequency
  on both cores to&nbsp;2300000 to minimise the problem. Now I&#39;m evidently doing something wrong in my scripts or sudoers file because when I run the script manually it sets both cpu cores, but when I invoke it as a system event only cpu1 seems to be set. Mythfrontend runs in the &quot;mythuser&quot; user context.<br /><br /><br />Here are my scripts:<br />/usr/local/bin/frequencydown.sh<br />#!/bin/bash<br />echo 800000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq &gt; /dev/null<br />echo 800000 | sudo tee /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq &gt; /dev/null<br /><br />/usr/local/bin/frequencyup.sh<br />#!/bin/bash<br />echo 2300000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq &gt; /dev/null<br />echo 2300000 | sudo tee /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq &gt; /dev/null<br /><br /><br />and&nbsp;/etc/sudoers.d/cpufrequency_video_playback<br /><br />mythuser &nbsp; &nbsp;ALL=(ALL) PASSWD: ALL, NOPAS
 SWD: /usr/bin/tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br />mythuser &nbsp; &nbsp;ALL=(ALL) PASSWD: ALL, NOPASSWD: /usr/bin/tee /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq<br /><br /><br />&nbsp;</html>