Protected by Copyscape DMCA Takedown Notice Infringement Search Tool
All opinions expressed on this blog are my own and do not reflect those of BIET Jhansi students and employees,staff,or any official whatsoever, colleagues, family or friends.I express my opinions as a free citizen of a democracy exercising my Fundamental Right of speech. The intention of this blog is merely to air my views and opinions (and sometimes, frustration) and is not intended to insult, instigate,disgrace or hurt anyone(body,organisation or institution). Anyone is free to disagree with any or all of my views and can express them here or elsewhere. Any civil dialogue that is not unreasonably hurtful is welcome. I, however, reserve the right to delete any comment without any reason or warning.No content of this blog will in any way be a violation UNDER IPC Sections 506 and 295A .Legal issues if any will be ristricted to the MEERUT jurisdiction only.This blog/web space is in the process of being copyrighted to safegaurd my interests erstwhile this be considered to be under the creative commons commercial INDIA License.This space resorts to politically and ethically correct statements, complying with the spirit of blogging .This is an opinion medium, not a reporting medium and hence should not be IN ANY CASE BE TAKEN AS A FUNCTION OF MAINSTREAM MEDIA.The blog complies with the NAAVI guidelines. Thank you, MANOJ SINGH RANA

Sunday, October 4, 2009

Setting the CPU speed visually in Ubuntu

This is a nice little tip from a friend on how to make the your CPU frequency indicator actually work.

Some things I discovered in the process:

* The sticky bit, which, if I understand correctly is an other way for privilege elevation under *NIX (the other two I know of are sudo and su). This sounds scary, so I searched around for methods of finding such files on my system. The results led me to a forum posting recommending

sudo find / -perm -1000

however this seems to display only directories (and if I understand correctly on directories the sticky bit has a different meaning - it's confusing). So finally I came up with the following one-liner which seems to work:

sudo ls -hlR / | grep \^...s.\*

* there is a dpkg-reconfigure command, which can be used to invoke a configuration interface for the packages. However it doesn't seem that this configuration interface is standardized in any way, shape or for, or that it discoverable programmatically (meaning that I didn't find a way to discover which packages from the ones I've installed have "hidden options" - and I don't feel like running the command on all the ~2000 packages installed). For the gnome applets package for example it asks you if you wish to set the sticky bit for the cpufreq selector :-)

sudo dpkg-reconfigure gnome-applets

In conclusion I'm still setting the CPU frequency with

sudo cpufreq-set -d [minimum frequency]MHz -u [maximum frequency]MHz

No comments:

Post a Comment

Comments Section