Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Share your Widgets!

    Reply
    Page 16 of 17 | Prev | 6   14     15   16   17   | Next
    Kabouik | # 151 | 2011-05-09, 23:11 | Report

    misiak, marry me now. Please.

    It works perfectly. Many thanks for your help, I have to admit I did not expect such detailed and quick answers. I would never have found how to solve the problem myself.

    Conky displays temperature in a 200-400 range, but to be honest, it does not matter because now I know that I have to put a decimal in there. For the Queen Widget, the problem was more important because of the overclock automation which was no longer possible.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pusak gaoq | # 152 | 2011-05-10, 03:56 | Report

    Originally Posted by gft2k1 View Post
    Thanks to techie, this is my last version of OCCP (with code ) who change the color of displayed temperature, frequency, battery and rootfs in according to status..............
    i love this widgets but would you mind sharing the default.png for this widgets???
    the default.png from the first post is not compatible with these codes....
    please share the default.png or do i have to make one myself...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cipper | # 153 | 2011-05-10, 11:35 | Report

    Originally Posted by misiak View Post
    TEMP=$((TEMP/10))
    i think that
    TEMP=$(( $TEMP / 10 ))
    is the right one

    Edit | Forward | Quote | Quick Reply | Thanks

     
    misiak | # 154 | 2011-05-10, 11:50 | Report

    Originally Posted by cipper View Post
    i think that
    TEMP=$(( $TEMP / 10 ))
    is the right one
    Yes, but both are correct (there is no 'right' one in the meaning that only one works). When you use $(( expression )) you don't need to add '$' in front of variables in expression. If you don't believe me, try running:
    Code:
    FILE_TEMP=`cat /sys/class/power_supply/bq27200-0/temp`
    echo "Temp got from file: " $FILE_TEMP
    MISIAK_TEMP=$((FILE_TEMP/10))
    echo "Misiak way: " $MISIAK_TEMP
    CIPPER_TEMP=$(($FILE_TEMP/10))
    echo "Cipper way: " $CIPPER_TEMP
    The result is the same

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to misiak For This Useful Post:
    cipper

     
    EyeVisions | # 155 | 2011-05-10, 17:08 | Report

    Olaaa

    Thx al ready i only get a bad checksum error? i follow the normal guide i know direct importing the file give those errors. what do i wrong this time

    thx

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cipper | # 156 | 2011-05-10, 20:21 | Report

    Originally Posted by misiak View Post
    Yes, but both are correct (there is no 'right' one in the meaning that only one works). When you use $(( expression )) you don't need to add '$' in front of variables in expression.
    uao, I wasn't aware about this exception!

    Originally Posted by misiak View Post
    If you don't believe me...
    of course I trust, too easy to check

    thank you for the info!!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    misiak | # 157 | 2011-05-10, 20:38 | Report

    Originally Posted by cipper View Post
    uao, I wasn't aware about this exception!


    of course I trust, too easy to check

    thank you for the info!!
    No problem The whole $(( )) construction is pretty naughty. If you write scripts sometimes and need it, you can read more in this bash scripting tutorial: http://www.softpanorama.org/Scriptin...ressions.shtml

    Edit | Forward | Quote | Quick Reply | Thanks

     
    niqbal | # 158 | 2011-05-10, 20:55 | Report

    Originally Posted by Kabouik View Post
    Since a restoration using Backupmenu, my widget displays temperatures between 250 and 380 °C. It's pretty hot, yes.

    I used the following code but it did not solve the issue.
    Code:
    sudo gainroot
    modprobe bq27x00_battery
    echo bq27x00_battery >> /etc/modules
    Does anybody have an idea of what can lead to such wrong values?

    I'm using a modified version of the ideal profile (increased max limit from 850 to 900 MHz). Of course, when triggering the "Temperature" mode of the widget, the temperature is considered too high, so the max clock is set to 600 MHz. When triggering the "Ideal" button (corresponding to my modified ideal profile), it works but I can't benefit from the dynamic switch depending on temperature.

    Perhaps I could delete some config files for my kernel to reset it? I don't even know where the modified profiles are stored.

    Thanks in advance!
    with kernel v47 use this instead

    Code:
    awk '{ print $1/10}' </sys/class/power_supply/bq27200-0/temp

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mr_pingu | # 159 | 2011-05-10, 21:15 | Report

    Originally Posted by niqbal View Post
    with kernel v47 use this instead

    Code:
    awk '{ print $1/10}' </sys/class/power_supply/bq27200-0/temp
    Just added °C to the end to make it complete

    Code:
    awk '{ print $1/10 " °C"}' </sys/class/power_supply/bq27200-0/temp

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to mr_pingu For This Useful Post:
    moepda

     
    misiak | # 160 | 2011-05-10, 21:32 | Report

    Originally Posted by mr_pingu View Post
    Just added °C to the end to make it complete

    Code:
    awk '{ print $1/10 " °C"}' </sys/class/power_supply/bq27200-0/temp
    Stupid question: where is '°' character on N900's keyboard? I cannot find it :P

    Edit: ok, I got it. In stock virtual keyboard in symbols&numbers screen after clicking "shift" it's on "0" key (easy ^^)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 16 of 17 | Prev | 6   14     15   16   17   | Next
vBulletin® Version 3.8.8
Normal Logout