View Single Post
misterc's Avatar
Posts: 1,625 | Thanked: 998 times | Joined on Aug 2010
#403
create two shell scripts which
  • display the core (CPU) temperature (bqtemp)
  • the power flow in mA (positive if charging, negative if on battery)
inspired from 2.2 Battery (via bq27200 chip) and bq27000.sh

as root place the two files in /usr/bin, remove the .txt extension (e.g. mv bqpwr.txt bqpwr) (optional) and make them executable

require i2cget and bq27000.sh in /usr/sbin

enjoy
Attached Files
File Type: txt bqpwr.txt (177 Bytes, 92 views)
File Type: txt bqtemp.txt (186 Bytes, 94 views)
__________________
information is a necessary though no sufficient condition to rationality...