Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

XML

CPU Frequency Set

sudo cpufreq-set -g powersave -c 1 && sudo cpufreq-set -g powersave -c 0
cpufreq-info -m -p -c 1 && cpufreq-info -m -p -c 0
https://snipt.net/embed/daffc351cb6ff96fb97eba5641aa5d31/
https://snipt.net/raw/daffc351cb6ff96fb97eba5641aa5d31/
daffc351cb6ff96fb97eba5641aa5d31
xml
XML
2
2016-11-25T12:29:09
True
False
False
/api/public/snipt/32851/
cpu-frequency-set
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>sudo cpufreq-set -g powersave -c 1 <span class="err">&amp;&amp;</span> sudo cpufreq-set -g powersave -c 0 </span><span id="L-2"><a name="L-2"></a>cpufreq-info -m -p -c 1 <span class="err">&amp;&amp;</span> cpufreq-info -m -p -c 0 </span></pre></div> </td></tr></table>
cpu, frequency, set

Bash

Display system information

# Display CPU information
less /proc/cpuinfo
https://snipt.net/embed/e0711a2bd0d5ad44b89c3db42988f696/
https://snipt.net/raw/e0711a2bd0d5ad44b89c3db42988f696/
e0711a2bd0d5ad44b89c3db42988f696
bash
Bash
2
2016-12-02T18:22:51
True
False
False
/api/public/snipt/32159/
display-system-information
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># Display CPU information</span> </span><span id="L-2"><a name="L-2"></a>less /proc/cpuinfo </span></pre></div> </td></tr></table>
cpu, system

Bash

set gov in android

echo "nameofgovernor" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
https://snipt.net/embed/7b11c7683fb9eb8bd2ca5cc6fbfca075/
https://snipt.net/raw/7b11c7683fb9eb8bd2ca5cc6fbfca075/
7b11c7683fb9eb8bd2ca5cc6fbfca075
bash
Bash
1
2016-12-02T15:45:46
True
False
False
/api/public/snipt/18120/
set-gov-in-android
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nb">echo</span> <span class="s2">&quot;nameofgovernor&quot;</span> &gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor </span></pre></div> </td></tr></table>
android, cpu, governor

Bash

list avail govs in cpu android

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
https://snipt.net/embed/3dbf4048a1ce2edf672ff69a76cb214a/
https://snipt.net/raw/3dbf4048a1ce2edf672ff69a76cb214a/
3dbf4048a1ce2edf672ff69a76cb214a
bash
Bash
1
2016-12-02T15:45:49
True
False
False
/api/public/snipt/18119/
list-avail-govs-in-cpu-android
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors </span></pre></div> </td></tr></table>
android, cpu, governors

Bash

change min freq on android

echo "245000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
https://snipt.net/embed/d9eb9ff39733b362a83390568acb9a13/
https://snipt.net/raw/d9eb9ff39733b362a83390568acb9a13/
d9eb9ff39733b362a83390568acb9a13
bash
Bash
1
2016-12-02T15:45:51
True
False
False
/api/public/snipt/18118/
change-min-freq-on-android
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nb">echo</span> <span class="s2">&quot;245000&quot;</span> &gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq </span></pre></div> </td></tr></table>
android, cpu, scaling
Copyrighted, illegal, or inappropriate content? Email [email protected].