maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [QBW] Clock Control Panel (https://talk.maemo.org/showthread.php?t=62090)

Dany-69 2010-09-11 12:36

[QBW] Clock Control Panel
 
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! :D ) 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.

Dany-69 2010-09-11 13:34

Re: [QBW] Clock Control Panel
 
Added even to the QBW wiki ;)

jbw89 2010-09-11 14:25

Re: [QBW] Clock Control Panel
 
I really wont it, read the wiki, but can't figured it out! you've got 4 codes where do i have to put it?

Dany-69 2010-09-11 14:27

Re: [QBW] Clock Control Panel
 
Quote:

Originally Posted by jbw89 (Post 813436)
I really wont it, read the wiki, but can't figured it out! you've got 4 codes where do i have to put it?

All in written above :)
All the 4 files (2 icons and 2 scripts) go to /home/user/.queen_beecon_dir ..
Move the files with filebox ;)

jbw89 2010-09-11 14:32

Re: [QBW] Clock Control Panel
 
Quote:

Originally Posted by Dany-69 (Post 813437)
All in written above :)
All the 4 files (2 icons and 2 scripts) go to /home/user/.queen_beecon_dir ..
Move the files with filebox ;)

that workt for me (via ssh/winscp)
but above there stands "higher" (than a code) and "lower" (than a code) is this in advance? where you have 2 screens,

where go's the above codes (al the way upstares?)
sorry for the bad englisch

Dany-69 2010-09-11 14:42

Re: [QBW] Clock Control Panel
 
That codes go in the settings of the Queen Beecon Widget.
Add a new one on the desktop... open the settings:

http://www.maemomeego.net/files/thum...802_164200.png

Tap on advance... answer YES to the question... and then scroll the next page until here:

http://www.maemomeego.net/files/thum...802_164735.png

and paste one of the two code in the white side..

The same for the second code... infact you nedd two queen beecon widget :)

PS: the first 2 codes are only for the developer ;)
You have to paste the second 2 codes

jbw89 2010-09-11 14:55

Re: [QBW] Clock Control Panel
 
Holy **** i'fe learnd a lot today!! ThanxMann!!
You just had to type extra to press "Import Buffer to Beecon" after you paste it, but it works!
Thanks! Really loving my N900:D canne try some more BeeCon's out:P

Dany-69 2010-09-11 14:58

Re: [QBW] Clock Control Panel
 
Quote:

Originally Posted by jbw89 (Post 813460)
Holy **** i'fe learnd a lot today!! ThanxMann!!
You just had to type extra to press "Import Buffer to Beecon" after you paste it, but it works!
Thanks! Really loving my N900:D canne try some more BeeCon's out:P

Looool xD
I had forgotten that part xD Excuse me bro :)

Dany-69 2010-09-14 11:03

Re: [QBW] Clock Control Panel
 
Guys i would like to remember you a small treak ..

If you have even a QBW that displays the maximum CPU clock ... you shoud use this string to upgrade even the clock QBW.

Code:

<command_to_change_frequency>; run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwidX oh.no.more.qbw.update_content
You have to edit the commands of the two QBW adding a ; with the string .. :)

NOTE : you have to replace idX with the beecon id of the clock widget ... :)

For example, if your clock widget has id9 (you can see the number in the widget settings, near the title) the string will be

<command_to_change_frequency>; run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid9 oh.no.more.qbw.update_content

tig3r81 2010-09-22 23:22

Re: [QBW] Clock Control Panel
 
hy big-dany i install your app and i notice that you set the limit 250 $maxnew so if i have the kernel config ideal (500-850) when i show min and max freq the min freq is 250.
Resolve this is very easy replace in the higher and lower scripts this line:
kernel-config limits 250 $maxnew
with this:
kernel-config limits - $maxnew
so you let the same min freq that the user set and modify ONLY max freq. if you want to ask for this you know how to contact me.

p.s.: i m sorry for my worst english.....


All times are GMT. The time now is 23:12.

vBulletin® Version 3.8.8