What if you had some data to help understand what usage patterns are limiting your battery life?
- Display current battery status
- Logs current status into a csv
- Create Usage Charts from the csv
Battery Percent: 96.66% (10832 mAh / 11206 mAh)
Battery Time: 4:13 (253 mins)
Battery Health: Normal (865 Charges)
Battery Status: Draining (20.8 watts)
Wifi: On (Connected)
Display: 63%
Ram Free: 35.18% (2882 / 8192)
CPU Free: 86.82% (10.73, 2.43) 9.10, 4.24, 2.14
- Mac 10.7.x
- Ubuntu 12.04
open a terminal window and change directories to the folder that contains battery.sh
cd /you/path/to/folder
./battery.sh
./battery.sh JSON
./battery.sh simple
./battery.sh stress
You probably want to do this at a time when you won't be using your laptop
A test of how long your battery would last a minimum by:
- Create process to use 100% of the CPU
- Brightens the screen to 100%
- Max out Disk IO
- write and delete 100mb file over and over
- Download realy
- 10mb file to /dev/null (wont effect hd space)
- Max out Ram buy filling it / emptying it
./battery.sh help
Date Nice, Epoch, Batt Cycle, Batt remaining %, Batt Charge remaining, Batt Time mins, Batt Time HH:MM, Batt AmperageMA, POWER, Batt Health, Batt Charge capacity, Batt Status, Ram Total, Ram Free, Ram Used, Ram % Free, Batt Warn Status, Cpu Load 1 min, Cpu Load 5 min, Cpu Load 15 min, Cpu % Free, Cpu % Used User, Cpu % Used Sys, Wifi Status, Wifi Connected, Ping, Display Brightnes %, executed in