CPU Frequency Selector 2.3
UUID: cpufreq@mtwebsterScore: 12
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.
WARNING: If you're upgrading from 1.7 to 2.0 you need to erase the ~/.cinnamon/cpufreq@mtwebster/cpufreq.conf file, as its default format has changed
Unzip and place folder in ~/.local/share/cinnamon/applets, then reload Cinnamon, applet should then show up in Add/remove applets
NOTE: You'll need the gnome-applets package installed to be able to change governors.
This is installed by default in Mint 12, but not in LMDE Mate/Cinnamon - not sure of other distros at this time.
____________________
Changelog:
- 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!)

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
I'll add more customization options - shouldn't be a problem. Maybe use sliders to let you dynamically adjust the colors.
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
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. :)
Oh nevermind about the config. I was editing the one in the applet folder. ;)
I'll add an option to hide the summary graph also.
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'. ;)
Oh even better. I await the new version then. :D
Yep that should do it (in windows mode at the moment so can't verify :P)
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
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
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
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.
Thx billy I check that out. Also thx webster for your work. :D
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
Hmm weird - i'll try to see if i can get it working on a live cd session of 12.04
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.
I've been testing it under Mint 12 though, which is Ubuntu 11.10? - must be some change between 11.10 and 12.04.
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. ^^)
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)?
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. :(
nice update, all seems to work well but id still like to change colours to my exact preference (as in #XXXXXX)
You can do that here: ~/.cinnamon/cpufreq@mtwebster/cpufreq.conf But I think you already know that. :)
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.
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.
Sweet update. I'm gonna try it now. (Even the Ghz instead of G made it in. :D)
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
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.
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.)
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.
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.
nice updates, all works perfectly
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.
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.)
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.
Sounds good. Maybe you can mail clem so he implements it into 1.5? :D
Perfect
Not perfect, it moves by itself.
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
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.
Zyzz: Sounds like maybe a kernel issue? You're not running in a virtual machine are you? Virtual machines don't support scaling
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". :(
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. :(
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?)
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
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 ;)
@mtwebster haha :) hope to see a fix when you have the time :)
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.
All you can do is wait for an update as it needs a patch. :)
Updated for Cinnamon 1.6
yay it works again :) thanks one thing, tooltips have no background, at least with the theme im using, but i dont care
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
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.
Yeah something got broken on the move to 12.10/LM14, I haven't had a chance to look into it yet.
Great applet, but "apply" button in the settings is always greyed out and unselectable on Mint 14 Cinnamon 1.6.4.
Updated finally for 12.10/Mint 14 Sorry for the delay!
thanks for updating it, works fine except the graphs are a bit more blurry than i can remember from before
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
samiuvic - are you sure you're running the latest version? Also, are you getting any error messages in your looking glass log?
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...
[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.
was perfect, but cinnamon 1.8 does not work