16 02 2016
GNU/Linux: show battery cycles count (etc.) on MacBook Pro Mid-2012 on command line (CLI)
battery cycle count:
cat /sys/class/power_supply/BAT0/cycle_count
charging/discharging status:
cat /sys/class/power_supply/BAT0/status
charge full (current capacity):
cat /sys/class/power_supply/BAT0/charge_full
charge full (design capacity):
cat /sys/class/power_supply/BAT0/charge_full_design
current charge:
cat /sys/class/power_supply/BAT0/charge_now
current charge (in percent):
cat /sys/class/power_supply/BAT0/capacity
battery model:
cat /sys/class/power_supply/BAT0/model_name
battery manufacturer:
cat /sys/class/power_supply/BAT0/manufacturer
battery temperature sensor:
cat /sys/class/power_supply/BAT0/temp
list all parameters:
ls -la /sys/class/power_supply/BAT0/
Which HDD brand to buy? HGST. Period. Things to do after installing Elementary OS “Freya”
Comments are currently closed.