View Single Post
Posts: 208 | Thanked: 220 times | Joined on Apr 2010
#124
Ok thanks.
For those having problem with conky widget, replace the script with the attached one (remove .txt extension) in /home/user/ and report back.
Problem seems to be N900-specific

Code:
#!/bin/sh
TAB=${1}
QBW_HOTSPOT_PRESS=${2}
QBW_ID=${3}
LOC="/home/user"
remember_me()
{
    run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$QBW_ID oh.no.more.qbw.set_param_string string:"rememberMe" string:"$QBW_HOTSPOT_PRESS" string:"";
}

case $QBW_HOTSPOT_PRESS in
[123])

    if [ "$QBW_HOTSPOT_PRESS" -ne "$TAB" ]; then
        remember_me
    fi
    TAB=$QBW_HOTSPOT_PRESS;
    ;;
esac
echo -e "\n"
case $TAB in
1)
       echo -e "Texas Instruments OMAP 3430:\n\tARM Cortex A8 (65-nm)\n\tPowerVR SGX530 GPU"
       case $QBW_HOTSPOT_PRESS in
    [456789])
        osso-xterm -e "nohup conky -qdc $LOC/CPU_conky.conf & exit"
             ;;
       esac
    exit 0
    ;;
2)
       echo -e "<span font = \"11\"><b>BL-5J 3.7V 1320mAh Li-Ion battery\n256 MB NAND (UBIFS)\n32GB eMMC:</b></span>"
       echo -e "\t<span font = \"11\">* 768 MB swap  * 2 GB /home (ext3)\n\t* 27 GB  /home/user/MyDocs (VFAT)</span>"
    case $QBW_HOTSPOT_PRESS in
    [456789])
        osso-xterm -e "nohup conky -qdc $LOC/Resource_conky.conf & exit"
              ;;    
    esac    
    exit 1
    ;;
3)
       echo "WLAN 802.11 b/g (wl1251)"
       case $QBW_HOTSPOT_PRESS in
    [456789])
        osso-xterm -e "nohup conky -qdc $LOC/Network_conky.conf & exit"
              ;;
       esac
       exit 2
    ;;
*)
    echo "UNKNOWN TAB $TAB"
    ;;
esac
Attached Files
File Type: txt acl.sh.txt (1.3 KB, 123 views)
__________________
With Linux-powered N900..ANYTHING is possible

Last edited by techie; 2010-11-12 at 06:43.
 

The Following 2 Users Say Thank You to techie For This Useful Post: