View Single Post
Posts: 208 | Thanked: 220 times | Joined on Apr 2010
#129
Originally Posted by chargen View Post
I'm looking to get just the temperature displayed in a beecon widget. What do I need to edit from this widget to just get the temperature displayed? The 'Command'? Does anyone have an example command they could share?
If you are using the stock kernel then the use this code to display temperature:
Code:
echo `cat /sys/devices/platform/omap34xx_temp/temp1_input` °C
However the values reported by above are not very accurate.I would recommend you install the enhanced power kernel from the repos (Overclocking is not enabled by default so you can use it safely) and use the code below to read temperature:
Code:
echo `cat /sys/class/power_supply/bq27200-0/temp` °C
To get the temperature working in the first place:
Code:
sudo gainroot
modprobe bq27x00_battery
The above will load the temperature module.

To get it to load on boot
Code:
echo bq27x00_battery >> /etc/modules
__________________
With Linux-powered N900..ANYTHING is possible
 

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