<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jandzsogyorgy.hu/index.php?action=history&amp;feed=atom&amp;title=Set_CPU_Power_Management_on_Linux</id>
	<title>Set CPU Power Management on Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jandzsogyorgy.hu/index.php?action=history&amp;feed=atom&amp;title=Set_CPU_Power_Management_on_Linux"/>
	<link rel="alternate" type="text/html" href="https://wiki.jandzsogyorgy.hu/index.php?title=Set_CPU_Power_Management_on_Linux&amp;action=history"/>
	<updated>2026-05-05T14:25:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://wiki.jandzsogyorgy.hu/index.php?title=Set_CPU_Power_Management_on_Linux&amp;diff=343&amp;oldid=prev</id>
		<title>Gyurci08 at 21:04, 22 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.jandzsogyorgy.hu/index.php?title=Set_CPU_Power_Management_on_Linux&amp;diff=343&amp;oldid=prev"/>
		<updated>2025-11-22T21:04:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:04, 22 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;System Services]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;General Linux&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:CPU Power Management&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Proxmox VE]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Proxmox VE]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Guides &amp;amp; Tutorials]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Guides &amp;amp; Tutorials]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gyurci08</name></author>
	</entry>
	<entry>
		<id>https://wiki.jandzsogyorgy.hu/index.php?title=Set_CPU_Power_Management_on_Linux&amp;diff=342&amp;oldid=prev</id>
		<title>Gyurci08: Created page with &quot;Category:System Services Category:CPU Power Management Category:Proxmox VE Category:Guides &amp; Tutorials  == Prerequisites ==  Install `cpupower` if missing:  &lt;syntaxhighlight lang=&quot;bash&quot;&gt; sudo apt-get update sudo apt-get install -y linux-cpupower &lt;/syntaxhighlight&gt;  Verify CPU frequency scaling support:  &lt;syntaxhighlight lang=&quot;bash&quot;&gt; ls /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference &lt;/syntaxhighlight&gt;   == Installation ==  Create `/e...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.jandzsogyorgy.hu/index.php?title=Set_CPU_Power_Management_on_Linux&amp;diff=342&amp;oldid=prev"/>
		<updated>2025-11-22T20:56:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:System_Services&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:System Services (page does not exist)&quot;&gt;Category:System Services&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:CPU_Power_Management&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:CPU Power Management (page does not exist)&quot;&gt;Category:CPU Power Management&lt;/a&gt; &lt;a href=&quot;/index.php/Category:Proxmox_VE&quot; title=&quot;Category:Proxmox VE&quot;&gt;Category:Proxmox VE&lt;/a&gt; &lt;a href=&quot;/index.php/Category:Guides_%26_Tutorials&quot; title=&quot;Category:Guides &amp;amp; Tutorials&quot;&gt;Category:Guides &amp;amp; Tutorials&lt;/a&gt;  == Prerequisites ==  Install `cpupower` if missing:  &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; sudo apt-get update sudo apt-get install -y linux-cpupower &amp;lt;/syntaxhighlight&amp;gt;  Verify CPU frequency scaling support:  &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; ls /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference &amp;lt;/syntaxhighlight&amp;gt;   == Installation ==  Create `/e...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:System Services]]&lt;br /&gt;
[[Category:CPU Power Management]]&lt;br /&gt;
[[Category:Proxmox VE]]&lt;br /&gt;
[[Category:Guides &amp;amp; Tutorials]]&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
Install `cpupower` if missing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install -y linux-cpupower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verify CPU frequency scaling support:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ls /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Create `/etc/systemd/system/cpu-thermal-control.service`:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Apply powersave governor, balance_power EPP, and frequency limits&lt;br /&gt;
After=multi-user.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=oneshot&lt;br /&gt;
ExecStart=/bin/sh -c &amp;#039;cpupower frequency-set -g powersave &amp;amp;&amp;amp; echo balance_power &amp;gt; /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference &amp;amp;&amp;amp; cpupower frequency-set -u 4GHz&amp;#039;&lt;br /&gt;
RemainAfterExit=yes&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enable and start the service:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable --now cpu-thermal-control.service&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Usage &amp;amp; Power Save Mode ==&lt;br /&gt;
&lt;br /&gt;
- The service sets CPU governor to powersave, EPP to balance_power, and caps max frequency.&lt;br /&gt;
- To enable more aggressive power saving, modify `ExecStart` to use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
ExecStart=/bin/sh -c &amp;#039;cpupower frequency-set -g powersave &amp;amp;&amp;amp; echo powersave &amp;gt; /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference &amp;amp;&amp;amp; cpupower frequency-set -d 800MHz -u 2GHz&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- Reload and restart service after changes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl restart cpu-thermal-control.service&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- Check CPU frequency info:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cpupower frequency-info&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== For Proxmox Users ==&lt;br /&gt;
&lt;br /&gt;
Proxmox defaults to performance mode causing higher CPU temps. This service:&lt;br /&gt;
&lt;br /&gt;
- Switches to powersave governor,&lt;br /&gt;
- Applies balance_power or powersave EPP,&lt;br /&gt;
- Caps CPU frequency for cooler, quieter operation.&lt;br /&gt;
&lt;br /&gt;
Ensure kernel supports CPU scaling and adjust frequency caps as needed for your hardware.&lt;br /&gt;
&lt;br /&gt;
Start this service on Proxmox nodes to improve thermal management and power efficiency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
Check service logs for errors:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
journalctl -u cpu-thermal-control.service&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verify permissions and CPU frequency scaling support.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
&lt;br /&gt;
* [Linux cpupower Documentation](https://www.kernel.org/doc/html/latest/admin-guide/pm/cpufreq.html)&lt;br /&gt;
* [systemd Service Files](https://www.freedesktop.org/software/systemd/man/systemd.service.html)&lt;br /&gt;
* [EPP Documentation](https://www.kernel.org/doc/html/latest/admin-guide/pm/energy_perf_bias.html)&lt;/div&gt;</summary>
		<author><name>Gyurci08</name></author>
	</entry>
</feed>