View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#4017
Customize Queen BeeCon Widget (>=v0.1.4) to display:
O'clocker CPU Frequency Monitor

The Beecon will display different frequencies in graphic format based upon /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq file





Dear O'Clockers ...

As of release 0.1.7 of QBW, this beecon can be driven by DBUS commands
If you have created your own QBW buttons to change your CPU frequencies, you can append the following command to your CPU switching command by prepending a semicolon and this beecon will be updated every time you press the button.

Code:
<your freq switching command> ; run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.update_content
Where <idX> is the Instance Id of the "O'clocker CPU Frequency Monitor" Beecon, like for example:

Code:
<your freq switching command> ; run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid11 oh.no.more.qbw.update_content
Open attached zip and extract images to relevant directories as per HERE

Import this as per HERE
Code:
[queen-beecon-header]
version=1,000000
checksum=1292420
[queen-beecon-exported-instance]
widgetType=0
widgetVisible=1
operationalStatus=0
hideCanvas=true
snippetBgRGB=0
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ImgFilename=queen-beecon-syserr.png
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ImgFilename=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ImgFilename=queen-beecon-appwrn.png
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ImgFilename=queen-beecon-apperr.png
beecon_idxge2_ImgZoom=1
beecon_idxge2_BgRGB=11
beecon_idxge2_ImgFilename=cpufreq.png
widWidth=129
widHeight=50
instanceTitle=cpufreq
instanceCmd=cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq | awk '{x=split("0,125,250,500,550,600,700,750,805,850,900,950,1000,1100,1150,1200",cf,","); for(i=1;i<=x;i++)if(cf[i]==$1/1000)exit i+3; exit 3;}'
cmdImgFilename=queen-beecon.png
cmdImgZoom=0
cmdFgRGB=1
cmdVisibilityPosition=0
cmdImgVisibilityPosition=0
cmdJustify=0
cmdFontName=3
cmdFontSize=12
resImgFilename=queen-beecon-resimg.png
resImgZoom=0
resFgRGB=1
resVisibilityPosition=0
resImgVisibilityPosition=5
resJustify=0
resFontName=2
resFontSize=12
updOnStartup=true
updOnClick=true
updOnDesktop=true
delayIndex=0
updNeworkPolicy=0
Attached Files
File Type: zip qbw-cpufreq-images.zip (401.2 KB, 598 views)
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras

Last edited by No!No!No!Yes!; 2010-05-24 at 14:27.
 

The Following 10 Users Say Thank You to No!No!No!Yes! For This Useful Post: