Reply
Thread Tools
xxxxts's Avatar
Posts: 491 | Thanked: 341 times | Joined on Nov 2009 @ LA
#1
I want to display the battery temp using DCE with this script;

echo `cat /sys/class/power_supply/bq27200-0/temp` °C
but in order for that to work I have to be root in xTerm and load these modules

modprobe bq27x00_battery
I am not a huge Linux guy, and last time I tried to write a start up script I almost bricked my device, But how can I execute "modprobe bq27x00_battery" as root at start up? Or include it in the DCE widget?

Thanks.
 
Posts: 150 | Thanked: 80 times | Joined on Dec 2009
#2
If I remember rightly you can only get the temp display if you're running a different kernel, i.e an titan's overclocked version.

If you are, then go to X-terminal and type in:
Code:
sudo gainroot
followed by:
Code:
echo bq27x00_battery >> /etc/modules
and the module should be loaded every time you turn on the phone.
 

The Following User Says Thank You to Sash For This Useful Post:
xxxxts's Avatar
Posts: 491 | Thanked: 341 times | Joined on Nov 2009 @ LA
#3
Thank you very much sir, worked like a charm!
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:16.