{"id":108,"date":"2006-11-23T10:10:09","date_gmt":"2006-11-23T09:10:09","guid":{"rendered":"http:\/\/reflection-design.dk\/?p=108"},"modified":"2006-11-23T10:10:09","modified_gmt":"2006-11-23T09:10:09","slug":"take-control-of-your-cpu-in-ubuntu","status":"publish","type":"post","link":"https:\/\/reflection-design.dk\/?p=108","title":{"rendered":"Take control of your CPU in Ubuntu!"},"content":{"rendered":"<p>I recently was investigating for no apparent reason if my cpu (core 2 duo) was running at full speed. Also looking for ways to manage speeds, and fan control in Ubuntu. What i found was the following. You can add an applet to your panel that shows the CPU temperature.<\/p>\n<p>Right click on the panel, and choose &#8216;add to panel&#8217;. Choose the CPU Frequency Scaling Monitor.<\/p>\n<p>But how does this help me to control the speed ? It doesn&#8217;t, so off i go investigating. But before i did i noticed that instead of showing 1.6 GHz i was getting simply 1. Also i had to add 2 applets to monitor each core.<br \/>\nSo after some digging i ran the following command from a terminal:<\/p>\n<blockquote><p>cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_available_frequencies<\/p><\/blockquote>\n<p>What you get from this is a list of the possible frequencies your CPU will run at. The steps are predetermined by the manufacturer. Next is to find a list of the possible managing (called governors) of the speed.<\/p>\n<blockquote><p>cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_available_governors<\/p><\/blockquote>\n<p>This provides me with a list of the Governors available for my cpu. Normally its using the &#8216;Ondemand&#8217; which allows the higher cpu usage if needed, but else throttles down speeds in exchange for longer battery life and temperature.<\/p>\n<p>Now my goal was to be able to mange them myself also, so i found after some searching that the CPU monitor applet would allow this, but pr default is set not to allow the user to change such setting. It makes sense also because why would be average user (non-root) need to control cpu settings. Also changing it would allow ANY user on the system to change the speeds. Since I&#8217;m only myself i don&#8217;t mind this. So off i go to reconfigure the applet, to allow speed changing:<\/p>\n<blockquote><p>sudo dpkg-reconfigure gnome-applets<\/p><\/blockquote>\n<p>This is gonna change the settings if you answer yes to the question regarding setting the suid of the cpufreq-selector executable. Now i can right click my cpu monitor applet and under preferences choose which kind of controls i want available. I choose to have both frequency, and governor available.<br \/>\nNow a simple left click on the monitor allows me to change either the governor mode, or the frequency itself.<\/p>\n<p>Hope this helps people take back control of their cpu, or at least leave you the opportunity to do so \ud83d\ude00 Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently was investigating for no apparent reason if my cpu (core 2 duo) was running at full speed. Also looking for ways to manage speeds, and fan control in Ubuntu. What i found was the following. You can add an applet to your panel that shows the CPU temperature. Right click on the panel, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[93],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-articles","category-linuxunix","tag-ubuntu-linux"],"_links":{"self":[{"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=108"}],"version-history":[{"count":0,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"https:\/\/reflection-design.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}