Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Like most users that have searched know, Manufacturers ACPI implementation is a mess and for most of our laptops, battery info is unavailable or wrong (on a dell inspiron 15z, the rate is divided by 10).

Is there a way (using a perl/python/bash script, an existing package or whatever) to log battery cycles on Ubuntu 12.04?

(what is a battery cycle ?)

A charge cycle means using all of the battery’s power, but that doesn’t necessarily mean a single charge. For instance, you could listen to your [device] for a few hours one day, using half its power, and then recharge it fully. If you did the same thing the next day, it would count as one charge cycle, not two, so you may take several days to complete a cycle. Each time you complete a charge cycle, it diminishes battery capacity slightly, but you can put [device battery] through many charge cycles before they will only hold 80% of original battery capacity. Apple courtesy

My laptop is a Clevo W150HRM, and when I do : cat /sys/class/power_supply/BAT0/cycle_count I get: 0 My laptop is 2 years old.

Thank you by advance.

share|improve this question
counters are not hard. what data can you use to count? –  Grant Bowman Apr 24 at 13:09
Of course counters are hard ! They're stored on the battery firmware. (Yes, batteries DO have firmwares) –  Bahaïka Jun 11 at 23:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.