CPU Frequency Selector 3.1

UUID: cpufreq@mtwebster
Score: 17

Website  Download

This is actually a fork of https://github.com/yuyichao/gnome-shell-cpufreq so all credit to him - it just caught my eye on GitHub so I thought I'd try to port it to Cinnamon.


  • 1.0: initial release
  • 1.5: added customization UI
  • 1.6: Fixed issue with applet crashing Cinnamon in Ubuntu 12.04
  • 1.7: added edit boxes so you can directly enter color and other values if you don't like the canned ones.  Also added reset-to-defaults button.
  • 2.0: Switched to python/gtk/glade settings
  • 2.1: Added left-right padding adjustment to help you position the applet where you want
  • 2.2: Update for Cinnamon 1.6 compatibility
  • 2.3: Updated for Gnome 3.6 compatibility (Sorry it took so long!)
  • 3.0: Updated for Cinnamon 1.8 - switched to new settings API, cleaned up applet a bit.
  • 3.1: Refresh the applet when the theme changes

About The Author


Open-source software tinkerer - Android, Linux, Windows

Cinnamon applets:

  • Internet Search Box
  • Screensaver Inhibitor
  • Places with Terminal
  • CPU Frequency Selector
  • Expo-Button


  1. Rentard says:

    1 month ago

    I'd like to see this updated to work with my i7 2720qm

  2. jaxllax says:

    3 months ago

    debemos de instalar cpufrequtils gnome-applets y todo funciona si modificamos en linux mit 17.2 o ubuntu 10.4 /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable" todavía hay un pequeño inconveniente , cuando se añade el applets al panel el sistema se congela si no lo modifico a ondemand ¿es posible que refresh rate 2000 tenga incompatibilidad en asus n53sv intel i7 nvidia optimus :nvidia prime voy a probar con refresh rate 3000

  3. jaxllax says:

    3 months ago

    linux mit 17 cpufreq indicator installed cpu frequency switcher program not installed you appear to be missing the required program, cpufreq-selector , this program is needed to perfrom scaling or governor switching, this program is ordinarily provided by the package:gnome-applets if you're on linux Mint or Ubuntu,you can install this using the following command: apt:install --no-install-recommends gnome-applets

  4. veikk0 says:

    4 months ago

    I'm also having the same problem as Bedlore, clicking on the applet no longer opens the frequency selection menu. Curiously though, clicking it multiple opens the panel context menu. I only got this problem after upgrading to Mint 17.2 which introduced a new version of Cinnamon, so I'm guessing there was some change that affects this applet.

  5. Bedlore says:

    5 months ago

    I've running this on a macbookair ( Intel i5-3317U ) and lately the menu no longer comes up allowing me to change the frequency. Does anyone have a workaround for this? I tried paolo's version but it didn't work either. All other applet menus are working so its got me stumped and I really need to control the CPU. Please help.

  6. paolo says:

    11 months ago

    If you have a Intel CPU and you got the "CPU frequency scaling unavailable" error, you might want to try my fork of this applet, which basically disables explicit frequency settings (that are not supported by the intel_pstate driver). This is the repo of my quick fork: https://github.com/pviotti/cinnamon-cpufreq-applet To try it, just replace ~/.local/share/cinnamon/applets/cpufreq@mtwebster/applet.js with that one in my repo.

  7. Ivan76 says:

    1 year ago

    Your add-on is very useful, but Cinnamon chunks and ...If you enter an extension in a channel, you are kindly requested to keep it aggioprnata, because utilities will complain of problems created by third-party extensions download here .... a good distribution criticizing!!!!

  8. Ivan76 says:

    1 year ago

    To be updated, considerable problems and often blocks!!!!

  9. thiagoponte says:

    1 year ago

    It doesn't crash here using Linux Mint 16 Cinnamon 2.0.14 But when i run it, i loose all input, mouse and keyboard in X window. Have to use tty to reboot the machine.

  10. christ says:

    1 year ago

    Hello. Don't work with the Linux Mint 16 with Cinnemon 2. 100% crash !

  11. lestcape says:

    2 years ago

    Also need to put all number with exactly the same format. The same number of character(digits), ect.

  12. lestcape says:

    2 years ago

    Hello out here. Like I said I like and use your applet. My only suggestion is that: Add the possibility of using settings for a font text differently. Specifically: "font-family: monospace". Because sometimes can produce a headache. With non monospace font, we can see how things change given position when changed the text . Thanks.

  13. digitsm says:

    2 years ago

    It didn't work on my cinnamon 1.6.7+lmde. I added the decompressed folder to "~/.local/share/cinnamon/applets" and then tried to add it to cinnamon using "Add applets to the panel" menu item. But nothing appeared on the panel. Something is wrong. If any other configuration is needed tell it here, otherwise please fix this bug.

  14. arfett says:

    2 years ago

    This is undoubtedly broken in Mint 15/Cinnamon 1.8 Issues: 1. In the preferences if you make any changes the apply button is greyed out. 2. If you click the panel and choose any of the governor options (ondemand, performance) you get an error about being unable to spawn a child process. For users who need a quick solution you can run "echo ondemand | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor" I use the My Launcher cinammon applet and added the entries: ondemand=gnome-terminal -e "sudo sh -c 'echo ondemand | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'" performance=gnome-terminal -e "sudo sh -c 'echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'" It opens a terminal which asks for the system password and sets the governor on all cores.

  15. matlala says:

    2 years ago

    was perfect, but cinnamon 1.8 does not work

  16. simonplace says:

    2 years ago

    [bug report] when i click on icon for the SECOND time, cinnamon crashes, 100% time. info: fresh install of mint 14, and download of this applet. intel two core processor, with two graph-only applets on panel. upgraded from mint 10 gnome, where gnome version never had an issue. font size set large. (has caused other problems.) BTW if you can explain what debug info might be helpful, should be able to supply.

  17. Perceptron says:

    2 years ago

    I have just installed the newest version of this Applet in my LinuxMint 13 running Cinnamln 1.6 from the Romeo repo. The reason was, I wanted to see if the applet actually starts displaying a graph, which never worked for me. Now I can not change any settings any more, the "Apply" button is always grey. I get it to be clickable once by uncommenting line 56 of the file "settings.glade", but that works only for the setting that are done in the settings window. Changing the text color from white (which isn't good on a grey background, so yes, I don't use the default black Cinnamon theme) to a darker grey doesn't work, the setting just isn't applied. Neither are the right/left margin settings. But actually, the Apply button shouldn't be working anyways. Also, the applet, which sits in my upper panel, now seems not to be vertically centered in the panel. Changing the Graph width selector did the trick here (while there still is no graph displayed). Is there any way of editing a config file or so in order to at least get the settings back that I was using before? I promise not to complain about the applet not displaying any graphs if I can just get it back as it was working before...

  18. mtwebster says:

    2 years ago

    samiuvic - are you sure you're running the latest version? Also, are you getting any error messages in your looking glass log?

  19. samiuvic says:

    2 years ago

    it doesn't work for me $ uname -a Linux Mint-PC 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux cinnamon 1.6.7 http://i3.minus.com/iEx4SJL63TXCG.png http://i2.minus.com/i9YMWLZqgJSFh.png any help plz i need this applet

  20. billynick says:

    2 years ago

    thanks for updating it, works fine except the graphs are a bit more blurry than i can remember from before

  21. mtwebster says:

    2 years ago

    Updated finally for 12.10/Mint 14 Sorry for the delay!

  22. oudrnicky says:

    3 years ago

    Great applet, but "apply" button in the settings is always greyed out and unselectable on Mint 14 Cinnamon 1.6.4.

  23. mtwebster says:

    3 years ago

    Yeah something got broken on the move to 12.10/LM14, I haven't had a chance to look into it yet.

  24. unheeding says:

    3 years ago

    This is probably a great applet, but there's one huge flaw with it on my system. The "apply" button in the settings is always greyed out and unselectable. This is on Ubuntu 12.10, Cinnamon 1.6.4.

  25. Zyzz says:

    3 years ago

    Cool thx. Works pretty well for me too. Tooltips have no background for me either using the default theme. (If possible make it an option to deactivate them as I don't like tooltips anyway. *g*) The frequency numbers are a bit too high (not centered) on my screen. Top/bottom default panel on 1080p. Nothing that stops me using it. :D

  26. billynick says:

    3 years ago

    yay it works again :) thanks one thing, tooltips have no background, at least with the theme im using, but i dont care

  27. mtwebster says:

    3 years ago

    Updated for Cinnamon 1.6

  28. Zyzz says:

    3 years ago

    All you can do is wait for an update as it needs a patch. :)

  29. ValHue says:

    3 years ago

    I like this applet, it works fine except that it does not show me anything when I choose the graphical mode. I use cinnamon in ArchLinux, do I need any special library in the GUI that works?. I can climb my CPU frequency, and the other two display modes operating properly. Thanks for your work.

  30. billynick says:

    3 years ago

    @mtwebster haha :) hope to see a fix when you have the time :)

  31. mtwebster says:

    3 years ago

    billynick, yeah it needs an update due to the panel height changes in 1.6. Ironically, I implemented those changes in cinnamon, you'd think I'd keep up with my applet ;)

  32. billynick says:

    3 years ago

    hmm it doesent seem to work anymore in cinnamon 1.6. i mean it works as in i can click and change frequency etc, but it just shows up as blank space in my panel. see http://i.imgur.com/falp4.png

  33. Zyzz says:

    3 years ago

    Alright I fixed it. For some reason the wrong/no cpu modules were loaded. In case anyone else has this problem with an AMD: "sudo modprobe powernow-k8". Can you maybe add an option for the font? It looks a bit ugly on my screen. I think it's too thin. (The date and clock looks smoother like no antialiasing or so?)

  34. Zyzz says:

    3 years ago

    I remembered a setting in UEFI(BIOS) which allows me to run the cpu virtualized or something like that. So I tried disabling that but still the folders don't exist. I will ask in a forum about that as this is probably on my end. :(

  35. Zyzz says:

    3 years ago

    No I don't run it in a VM and I'm on an AMD FX-6100. It should have several states as far as I know. Within /sys/devices/system/cpu/ there's a cpufreq folder (It's emtpy when opening it). Any cpu0-cpu5 folder has these folders: "cache", "cpuidle", "node0", "topology". "cpuidle" has 3 folders "state0", "state1" and "state2". :(

  36. mtwebster says:

    3 years ago

    Zyzz: Sounds like maybe a kernel issue? You're not running in a virtual machine are you? Virtual machines don't support scaling

  37. Zyzz says:

    3 years ago

    Hi, I got a new pc and now the applet is not running anymore. I use LMDE now and when I load the applet lg states an error not finding the scaling_max_freq. I looked at the named folder and it does not exist. It ends here: /sys/devices/system/cpu/cpu5/ but want cpufreq/scaling_max_freq Any idea solving that? Let me know if you need more info.

  38. MiguelAngel says:

    3 years ago

    Hi, awesome applet, really appreciate it! Would like to make an enquiry though... do not understand why it takes so much space of the panel when left as summary/display as digit & percentage. It does not fit to the next item in the pane if you know what I mean. Leave a link to a screenshot http://bayimg.com/hapaNAaDn Thanks

  39. pazuzuthewise says:

    3 years ago

    Not perfect, it moves by itself.

  40. pazuzuthewise says:

    3 years ago


  41. Zyzz says:

    3 years ago

    Sounds good. Maybe you can mail clem so he implements it into 1.5? :D

  42. mtwebster says:

    3 years ago

    Any applet (they're all js - the python is only for the settings dialog). I'm looking at the cinnamon source atm, to see if there's a way to implement it across the board. I'm dubbing it 'gravity padding' - you really only need to be able to add spacing to the 'pull' side of the applet, depending on which zone of the panel it's in. Would be nice to be able to maybe adjust it in the context menu of each applet by default - maybe only in panel edit mode.

  43. Zyzz says:

    3 years ago

    Wow that's a great feature. Do you think it can be implemented into any applet or only in python based ones? (Atm I'm using my spaces applet for this purpose, but it's not very good.)

  44. mtwebster says:

    3 years ago

    Added ability to pad left and right side of the graph display - this has the net effect of allowing you to position this applet where you want it on your panel. Hopefully some day this will be an innate feature of Cinnamon (like old gnome) - where you could drag items where you wanted, not stacked against one another.

  45. billynick says:

    3 years ago

    nice updates, all works perfectly

  46. mtwebster says:

    3 years ago

    Updated - decided this is as good a time as any to learn some python, I wasn't crazy about the settings interface I had going.

  47. mbokil says:

    3 years ago

    Nice update. Works on my Ubuntu 12.04 Cinnamon 14 UP1 system. One thing you might want to consider is to break out the settings from the menu. It is nice work that you have kept the UI in the same menu but it might be more appealing to users if all the settings were in a separate window where things are spaced out and labeled. I think I am going to start to use a confirmation dialog for settings along with gsettings schemas to start saving app configuration. It will add to the coding time but make a nice UI for people.

  48. Zyzz says:

    3 years ago

    Well you could take the sys mon billy posted above and make an applet out of it (it's running pretty fine as an extension atm for me but I prefer applets ^^). Otherwise I miss 1 last applet from Gnome2: http://sensors-applet.sourceforge.net/index.php?content=home There are other temperature applets but I like that the most. :D (I think it's already ready for Gnome3 if I read it correct.)

  49. mtwebster says:

    3 years ago

    I think I had 101 first in the code, then realized that it needed to be 1000 for .001 GHz and forgot to update the comment. I'll add the space next time I do an update. Next I need a new applet idea that I can implement and then totally over-do with customization options :P Maybe I'll look at that shell system monitor, though there are multiple sysmon applets already.

  50. Zyzz says:

    3 years ago

    I think everything needed is done. At least I can't think of anything missing. :) 2 things: 1) I added a space before the numbers too. "return " " + Math.round(num / 10000) / 100 + ' GHz';" :D 2) "if (num >= max-1000) // max-101 is because on at least my machine there is a max of 2.401, next step is 2.4" In the comment you wrote "101", so maybe it's a typing error? Did you write max-1,000,001 for yourself to have 2400 as high too? Now you only need more stars. :D

  51. Zyzz says:

    3 years ago

    Sweet update. I'm gonna try it now. (Even the Ghz instead of G made it in. :D)

  52. Zyzz says:

    3 years ago

    Hmm for me it was the not deleted old conf that caused the bug with the selector box. About the lo/mi/hi prob. I think you get the low freq as well right? Maybe it works this way: low/high + 0,1 = low threshold. For me that would be 1/2 + 0,1 = 0,6. As high I'd say everything below 95% is not high. Using that on your states: 0,8/2,4 + 0,1 = 0,43 which makes 800Mhz, 1 Ghz low; 2,401Ghz and 2,4Ghz high and rest mid. For me 1,2Ghz and 2Ghz is not low/high so it would fit. :) But of couse you can see that differently.

  53. mtwebster says:

    3 years ago

    Fixed problem with Ubuntu 12.04. Will work on these suggestions - shouldn't be hard to implement any of them. Zyzz: I think I only increased the font size slightly, I felt it was a bit small - I'll change it back, and look at a better system for calculating hi/mid/low - what I did was sort of a quicky from-the-hip thing. I want to note, the combo selector box doesn't display properly in certain themes - I can only assume it's a problem with the themes, as they appear to work fine on the default theme.

  54. Zyzz says:

    3 years ago

    You can do that here: ~/.cinnamon/cpufreq@mtwebster/cpufreq.conf But I think you already know that. :)

  55. billynick says:

    3 years ago

    nice update, all seems to work well but id still like to change colours to my exact preference (as in #XXXXXX)

  56. Zyzz says:

    3 years ago

    To 1). Fixed that. I deleted the wrong conf file.... again. Stupid me. :( And the refresh of both CPU graphs is now correct too (only sometimes it's not synchron). I really need an edit function, sry. :(

  57. Zyzz says:

    3 years ago

    About 6) My low was middle. Because 1/2= 0.5 = middle. :) Changed that to 0.4 and I changed my middle to 0,95. 8) The refresh rate looks a bit weird with this new update. It seems that cpu0 gets updated, the 2000 milliseconds later cpu1 and so on. Any chance you can change that back so both get updated every 2000 (or whatever the setting of the user is)?

  58. Zyzz says:

    3 years ago

    Nice update. Here's my feedback: 1) "CPUs to display". I can't do anything at this point. It's just blank. Clicking the blank line does nothing too. Is this the option which cpu should be displayed? I have a dual core in case you need to know (3 graphs). 2) Can you add a "default" button to reset everything? 3) Maybe you can add numbers to the sliders 'Graph wide' and 'Refresh rate'? Sure I can to it by eye but I like to know it exactly. :p 4) I don't like seeing "G" instead of "GHz" so I change that in the aaplet.js maybe you can add this as an option too? I also add "spaces" before and after the number to make it look nicer. (Same in the popup.) Most monitors are big enough anyway in my opinion. :D 5) Did you change the font? I think the "G" looks different from the last version. If yes can you tell me what font it was before and where I need to change it (line in applet-js is enough)? 6) I have 3 states, 2 Ghz, 1,8 Ghz and 1 Ghz. In the code I saw that high is defined as .8 and above so My middle state gets a high color too. Maybe you know a way to fix this (I can fix this for me of course but every user may have other states.) 7) Keep it up. :D (The comment function needs a better format. ^^)

  59. mtwebster says:

    3 years ago

    I've been testing it under Mint 12 though, which is Ubuntu 11.10? - must be some change between 11.10 and 12.04.

  60. mbokil says:

    3 years ago

    I think it might be an Ubuntu/Cinnamon issue. I put it on my box at work with Ubuntu/Cinnamon and it crashed and aport crash app popped up saying /usr/bin/cinnamon crashed. I found out while working on the brightness applet that there are differences in the way javascript is handled on Ubuntu versus LMDE. If the applet has init code that interacts with the system and it comes back with an error it will kill cinnamon. A workaround was to pull processing out of init and put it in applet clicked. An error will still happen but it won't kill cinnamon. I guess the applet code in Cinnamon needs some crash protection.

  61. mtwebster says:

    3 years ago

    Hmm weird - i'll try to see if i can get it working on a live cd session of 12.04

  62. mbokil says:

    3 years ago

    I couldnt' get it to run. I put it into /.local/share/cinnamon/applets and restarted Cinnamon and I got a crash. I tried killing Cinnamon and restarting it and it kept crashing. I ended up removing it to be able to run Cinnamon. platform = Ubuntu 12.04/Cinnamon

  63. Zyzz says:

    3 years ago

    Thx billy I check that out. Also thx webster for your work. :D

  64. mtwebster says:

    3 years ago

    btw, all my stuff's on github if you want to see a more gradual diff between commits how I converted this from extension to applet - username is the same.

  65. mtwebster says:

    3 years ago

    I'll take a look at both once I get a chance to refine this frequency applet some more, that looks slick. I've become addicted to this stuff. :P

  66. billynick says:

    3 years ago

    Zyzz, there is already an applet like that, or rather an extension for cinnamon that i use all the time, its pretty close to the github one above and the gnome2 one, in fact i think it might be a port of the github one. you can find it here https://launchpad.net/~merlwiz79/+archive/cinnamon-ppa iirc its enough to just download the deb and install it. providing ur on mint/ubuntu/etc unfortunately the guy that maintained that repo had some kind of family situation that made him unable to continue maintaining it...for the time being. which means u may have to edit a file to make it work. if so edit (as root) /usr/share/cinnamon/extensions/system-monitor@cinnamon.org/metadata.json and edit the cinnamon version line. my line looks like: "cinnamon-version": [ "1.3.0", "1.3.1", "1.4.0", "1.4.1", "1.5.0" ], you can add any versions i guess

  67. Zyzz says:

    3 years ago

    You made me try to rewrite this applet: https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet for Cinnamon (the 3.2 version of course), but my Javascript + internal understanding of Cinnamon/Gnome-Shell is way to low to get it working. I tried using your code with diff and the gnome-shell version but I can't figure out what I need to do. :( Any chance you try "translating" this applet too in the far future? :D

  68. mtwebster says:

    3 years ago

    Yep that should do it (in windows mode at the moment so can't verify :P)

  69. Zyzz says:

    3 years ago

    Oh even better. I await the new version then. :D

  70. Zyzz says:

    3 years ago

    Ok found the line to edit to remove the "summary". Can you tell me if it's ok to change line 346 (applet.js) from 'true' to 'false' without doing any harm? (Before that I commented with line 340 with // and it worked too but that looked 'dirty'. ;)

  71. mtwebster says:

    3 years ago

    I'll add an option to hide the summary graph also.

  72. Zyzz says:

    3 years ago

    Oh nevermind about the config. I was editing the one in the applet folder. ;)

  73. Zyzz says:

    3 years ago

    Great applet. I was missing this since Gnome2. :) If I edit the config, what do I need to do to make the change happening? I tried de-/activating the applet and reloading Cinnmon with Alt+F2 r but it doesn't change. :) Maybe you can add the documentary you have here to the config in the next version to have it at one place. Is there an option to remove the "summary" cpu or can you add that? It's confusing to have 3 graphs. *g*I will look into the code maybe I can change it myself. :p 5 stars. :)

  74. billynick says:

    3 years ago

    i figured out how to change the colours to my liking inside the .js so now im very happy :) http://i.imgur.com/CEVoP.png

  75. mtwebster says:

    3 years ago

    I'll add more customization options - shouldn't be a problem. Maybe use sliders to let you dynamically adjust the colors.

  76. billynick says:

    3 years ago

    very nice, 5 stars my only comment would be that im not fond of having green/orange/red in my panel. personally i would prefer a transparent bar background and choose my own colour(s) for the bars themselves. oh and if i go digit it would be nice to be able to change the digit colour