View Single Post
Posts: 326 | Thanked: 335 times | Joined on Feb 2010
#1
Hi guys ...
I always try to make my life easier xD ..
So here is my personal control panel for system clock


I've already seen some control panel for the overclock... but i haven't found them direct and immediate enought .
My control panel il made by 2 simple Queen Beecon Widgets (GLORY TO No!No!No!Yes! ) that execute two small scripts.

These scripts read the actual clock of the system and act accordingly, increasing the frequency of one step (ex. if you are working @ 600 mhz... tapping on the plus the beecon will set the new frequence to 700 mhz... in 700... then 750 .. ecc ecc)

NOTE: no action on the undervolt profile. For example, if you have ideal.. ideal remains... The same for the minimum frequency.
If you have ideal with the minimum to 500 .. to 500 remains
The scripts change ONLY the maximum frequency and not permanently.
Infact, after the reboot, the maximum frequency will come back to the original one setted by your kernel profile.

Here they are :

Code:
#!/bin/sh
#script per diminuire di uno step la frequenza massima
MAX="`kernel-config show | grep "max"|cut -d' ' -f3`"
MAXNEW="-"
if [ $MAX -eq "500" ] ; then MAXNEW="500" ; fi
if [ $MAX -eq "550" ] ; then MAXNEW="500" ; fi
if [ $MAX -eq "600" ] ; then MAXNEW="550" ; fi
if [ $MAX -eq "700" ] ; then MAXNEW="600" ; fi
if [ $MAX -eq "750" ] ; then MAXNEW="700" ; fi
if [ $MAX -eq "805" ] ; then MAXNEW="750" ; fi
if [ $MAX -eq "850" ] ; then MAXNEW="805" ; fi
if [ $MAX -eq "900" ] ; then MAXNEW="850" ; fi
if [ $MAX -eq "950" ] ; then MAXNEW="900" ; fi
if [ $MAX -eq "1000" ] ; then MAXNEW="950" ; fi
if [ $MAX -eq "1100" ] ; then MAXNEW="1000" ; fi 
kernel-config limits - $MAXNEW
echo "Max Clock: "`kernel-config show| grep "max"|cut -d' ' -f 3` "Mhz"
run-standalone.sh dbus-send --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Max Clock: $MAXNEW Mhz"
Code:
#!/bin/sh
#script per aumentare di uno step la frequenza massima
MAX="`kernel-config show | grep "max"|cut -d' ' -f3`"
MAXNEW="-"
if [ $MAX -eq "500" ] ; then MAXNEW="550" ; fi
if [ $MAX -eq "550" ] ; then MAXNEW="600" ; fi
if [ $MAX -eq "600" ] ; then MAXNEW="700" ; fi
if [ $MAX -eq "700" ] ; then MAXNEW="750" ; fi
if [ $MAX -eq "750" ] ; then MAXNEW="805" ; fi
if [ $MAX -eq "805" ] ; then MAXNEW="850" ; fi
if [ $MAX -eq "850" ] ; then MAXNEW="900" ; fi
if [ $MAX -eq "900" ] ; then MAXNEW="950" ; fi
if [ $MAX -eq "950" ] ; then MAXNEW="1000" ; fi
if [ $MAX -eq "1000" ] ; then MAXNEW="1100" ; fi
if [ $MAX -eq "1100" ] ; then MAXNEW="1100" ; fi 
kernel-config limits - $MAXNEW
echo "Max Clock: "`kernel-config show| grep "max"|cut -d' ' -f 3` "Mhz"
run-standalone.sh dbus-send --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Max Clock: $MAXNEW Mhz"
Then I made a collage to create the two icons you see above and I said to the two beecon to run scripts on each tap.
_______________________________

HOW TO

1. Download the pack from HERE and unzip it,

2. In the pack you'll find 4 files, the two scripts and the two icons.
Move all the 4 files in the directory /home/user/.queen_beecon_dir .

3. Create 2 new Queen Beecon Widgets and import these two codes in the advanced options (look at the QBW wiki if you don't know how ).

Higher :

Code:
[queen-beecon-header]
version=1.000000
checksum=2090564
[queen-beecon-exported-instance]
widgetType=0
widgetVisible=1
operationalStatus=0
hideCanvas=true
snippetBgRGB=0
snippetExtBgRGB=#000000000000
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ExtBgRGB=#000000000000
beecon_lt0_ImgFilename=
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#000000000000
beecon_eq0_ImgFilename=
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#000000000000
beecon_eq1_ImgFilename=
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ExtBgRGB=#ffff00000000
beecon_ge2_ImgFilename=
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=
widWidth=96.401759530791793
widHeight=96.771260997067444
instanceTitle=higher
instanceCmd=echo "sh /home/user/.queen_beecon_dir/higher"|sudo gainroot
rememberMe=
cmdImgFilename=higher.png
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffff41a30000
cmdTextAngle=0
cmdVisibilityPosition=0
cmdImgVisibilityPosition=5
cmdJustify=0
cmdExtFont=Nokia Sans 12
cmdFontName=3
cmdFontSize=12
resImgFilename=
resImgZoom=0
resFgRGB=1
resExtFgRGB=#ffffffffffff
resTextAngle=0
resVisibilityPosition=0
resImgVisibilityPosition=9
resJustify=0
resExtFont=Nokia Sans bold 12
resFontName=2
resFontSize=12
progressAnimationFrames=4
progressAnimationTimer=4
progressAnimationPos=4
progressAnimationBasename=
updOnStartup=false
updOnClick=true
updOnDesktop=false
updOnSight=false
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
cmdImgAngle=0
resImgAngle=0

Lower:

Code:
[queen-beecon-header]
version=1.000000
checksum=2173392
[queen-beecon-exported-instance]
widgetType=0
widgetVisible=1
operationalStatus=0
hideCanvas=true
snippetBgRGB=0
snippetExtBgRGB=#000000000000
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ExtBgRGB=#000000000000
beecon_lt0_ImgFilename=
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#000000000000
beecon_eq0_ImgFilename=
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#000000000000
beecon_eq1_ImgFilename=
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ExtBgRGB=#ffff00000000
beecon_ge2_ImgFilename=
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=
widWidth=96.718475073313783
widHeight=96.557184750733128
instanceTitle=lower
instanceCmd=echo "sh /home/user/.queen_beecon_dir/lower"|sudo gainroot
rememberMe=
cmdImgFilename=lower.png
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffffffffffff
cmdTextAngle=0
cmdVisibilityPosition=0
cmdImgVisibilityPosition=5
cmdJustify=0
cmdExtFont=Nokia Sans bold italic 12
cmdFontName=3
cmdFontSize=12
resImgFilename=
resImgZoom=0
resFgRGB=1
resExtFgRGB=#ffffffffffff
resTextAngle=0
resVisibilityPosition=0
resImgVisibilityPosition=9
resJustify=0
resExtFont=Nokia Sans bold 12
resFontName=2
resFontSize=12
progressAnimationFrames=4
progressAnimationTimer=4
progressAnimationPos=4
progressAnimationBasename=queen-beecon-progress
updOnStartup=false
updOnClick=true
updOnDesktop=false
updOnSight=false
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
cmdImgAngle=0
resImgAngle=0

That's all guys

Note that I also included the appearance of a yellow popup that informs about the new processor frequency and the possibility to choose any frequency between 500 MHz and 1150 MHz.

Last edited by Dany-69; 2010-09-23 at 13:10.
 

The Following 11 Users Say Thank You to Dany-69 For This Useful Post: