
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
"sudo chmod +s /usr/bin/cpufreq-set" Requires KDE 4.2, cpufreq-utils and cpufreq modules. Multi-cpu support. Fits into plasma better. Change CPU governor and frequency. More compatible.
Note:
You can change the UI if you think the default popup ui is ugly.
Check out the examples, Just set the 4 required things (3 listwidgets and 1 label) in the Qt Designer GUI Builder, and set the applets minimum size to something (Required!)
10 years ago
ported to ruby
remove last 3 zeros add Mhz to numbers
Changed interface entirely. Now a button that opens a window, the button displays current cpu speed in mhz, window allows slection of governor or cpu frequency.
Minor interface tweaks
Added Ghz, Made button smaller to fit better on panel, still not perfect in panel, but much better.
More interface changes, can now directly use the output of rbuic4 popupdialog.ui >> ../code/Ui_PopupDialog.rb without modifications
New better UI that scales properly and looks alright. I'm still learning qtdesigner sorry!
Added GPL About dialog - Note, this breaks my rbuic4 compiled file, it's missing a backslash somewhere.
Sorry for all the updates.. made smaller default size of popup dialog
Took me a long time but I figured out how.. Dialog pops up in a smart position now instead of in the corner, yay!
fixed signal on frequency select
Where do I start?
Lots of code cleanup and commenting
Fixed ui compiling by moving gpl about dialog to gpl.rb - requires qlabel called gpllabel
New GUI, looks suspiciously like the old one, but it's not
Code cleanup, lots of comments added
Button removed, now draw text directly to "Applet" - resizes text properly in panel, takes up enough space in panel, fixe all panel related bugs by doing this.
Fixed a potentially nasty core logic bug where if you had "1.65ghz" and "1.6ghz" it would show two but only 1.6ghz would work, or if you had 1.65 ghz only it wouldn't work at all - with a nice map
Just when you think I'm done.. I go and toss in multi-cpu support. Next maybe will be min/max frequencies to go with governor settings as sliders or something
Maintainance: (1) Keep open file pointers to system nodes
(2) X.XXGhz instead of X.XGhz
(3) Use dialog->isVisible to decide hide or not
10 years ago
ported to ruby
remove last 3 zeros add Mhz to numbers
Changed interface entirely. Now a button that opens a window, the button displays current cpu speed in mhz, window allows slection of governor or cpu frequency.
Minor interface tweaks
Added Ghz, Made button smaller to fit better on panel, still not perfect in panel, but much better.
More interface changes, can now directly use the output of rbuic4 popupdialog.ui >> ../code/Ui_PopupDialog.rb without modifications
New better UI that scales properly and looks alright. I'm still learning qtdesigner sorry!
Added GPL About dialog - Note, this breaks my rbuic4 compiled file, it's missing a backslash somewhere.
Sorry for all the updates.. made smaller default size of popup dialog
Took me a long time but I figured out how.. Dialog pops up in a smart position now instead of in the corner, yay!
fixed signal on frequency select
Where do I start?
Lots of code cleanup and commenting
Fixed ui compiling by moving gpl about dialog to gpl.rb - requires qlabel called gpllabel
New GUI, looks suspiciously like the old one, but it's not
Code cleanup, lots of comments added
Button removed, now draw text directly to "Applet" - resizes text properly in panel, takes up enough space in panel, fixe all panel related bugs by doing this.
Fixed a potentially nasty core logic bug where if you had "1.65ghz" and "1.6ghz" it would show two but only 1.6ghz would work, or if you had 1.65 ghz only it wouldn't work at all - with a nice map
Just when you think I'm done.. I go and toss in multi-cpu support. Next maybe will be min/max frequencies to go with governor settings as sliders or something
Maintainance: (1) Keep open file pointers to system nodes
(2) X.XXGhz instead of X.XGhz
(3) Use dialog->isVisible to decide hide or not
MartinKN
9 years ago
"Was nun tun sprach Zeus?" ... oder war es so ähnlich?
Leider beschränken sich meine Ruby Kenntnisse aufs starten von Ruby Programmen ;-)
Report
hipsterical
10 years ago
Report
nukru
10 years ago
I use archlinux 64b
when I try launch it, i have this error:
lasmoidviewer ruby-cpufreq
RubyAppletScript::Applet#init mainScript: /home/****/.kde4/share/apps/plasma/plasmoids/ruby-cpufreq/contents/code/main.rb
RubyAppletScript::Applet#init instantiating: RubyCpufreq::Main
/usr/share/apps/plasma_scriptengine_ruby/applet.rb:90:in `method_missing': undefined method `kindof?' for #<Qt::SizeF:0x000000014eed40 width=126,000000, height=26,000000> (NoMethodError)
/usr/share/apps/plasma_scriptengine_ruby/applet.rb:90:in `resize'
/home/****/.kde4/share/apps/plasma/plasmoids/ruby-cpufreq/contents/code/main.rb:132:in `init'
/usr/share/apps/plasma_scriptengine_ruby/applet.rb:183:in `init'
and in the plasmoid puts "Script initialization failed"
thanks
Report
gravy
9 years ago
Commenting out lines 132 and 206 on /.kde/share/apps/plasma/plasmoids/ruby-cpufreq/contents/code/main.rb fixed the issue.
Report
DesireRebound
8 years ago
Report
Desdenova88
10 years ago
Report
pyra
10 years ago
Thread 1 (Thread 0x7f4f151b87a0 (LWP 4963)):
[KCrash Handler]
#5 0x0000000000000021 in ?? ()
#6 0x00007f4ef2da499e in ?? () from /usr/lib/libsmokeqtgui.so.3
#7 0x00007f4ef877e36e in smokeruby_free(void*) () from /usr/lib/libqtruby4shared.so.2
#8 0x00007f4ef8e95ed3 in ?? () from /usr/lib/libruby1.8.so.1.8
#9 0x00007f4ef8e95efe in ?? () from /usr/lib/libruby1.8.so.1.8
#10 0x00007f4ef8e95f62 in rb_gc_finalize_deferred () from /usr/lib/libruby1.8.so.1.8
#11 0x00007f4ef8e855d0 in rb_thread_schedule () from /usr/lib/libruby1.8.so.1.8
Does anyone here know what is it? And how i can come over this bug in my plasmoid?
This happens while disposing graphics widgets.
I really cry :( Sorry for my english.
Report
Gatsu84
12 years ago
Report
speed47
11 years ago
Report
0xDeadC0de
11 years ago
You can find it in playground on kde's svn server, unless they've since moved it.
In C++ I have explicit control over the memory, and there are no problems like this.
Report
trickykid
12 years ago
plasmapkg -i 92573-cpufreq.plasmoid gives me:
Error: "/var/tmp/kdecache-tommy" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tommy" is owned by uid 1000 instead of uid 0.
Report
0xDeadC0de
12 years ago
Report
0xDeadC0de
12 years ago
Warning! I've had reports of this plasmoid package failing to install in KDE 4.2 from get hot new stuff (right click on desktop, add widget, Install new widgets, from internet). If you are one of these cases, please remove the failed installed version, then download the package, then use in a console: plasmapkg -i xxxx-cpufreq.plasmoid
And it should work. Thank you.
******************************
Report
0xDeadC0de
12 years ago
If it's a button - it's an old version. Download from here, or GHNS whenever it syncs.
Report
0xDeadC0de
12 years ago
To update: in a console type:
cd /tmp/kde-YOURUSERNAME
plasmapkg -r 92573-cpufreq.plasmoid
plasmapkg -i 92573-cpufreq.plasmoid
Report
0xDeadC0de
12 years ago
If you do have problems, I and many others would appreciate it if you run it in plasmoidviewer and copy/paste the errors here. I will get around to fixing it.
Report
palacio
12 years ago
Report
0xDeadC0de
12 years ago
Ubuntu supports the python version out of the box, but the python version was buggy for me, buggy bindings. The exact same code in ruby had no bugs with positioning and sometimes not starting after login/logout. (k)Ubuntu version needs the ruby bindings for kde4.1 in place (Listed in the description)
Also, you need to enable the cpu frequency scaling modules with the kernel (It's easy for those who may be scared), hint: /etc/modules and cpufreq
Report
gravy
12 years ago
Report
jwistead
12 years ago
Report