tl;dr: I’m looking for something like AccuBattery, but for Linux

What do you use to measure laptop battery life in Linux?

I can easily get a momentary estimate of battery life. But this fluctuates based on load, screen backlight etc.

I’m looking for something that will collect my usage patterns over time - load, #processes, screen backlight, … - and allow me to predict remaining runtime more accurately.

I’d love for the data to be parsable, so that I can analyze it myself and e.g. find the “worst offenders” - processes affecting battery runtime the most.

Thank you for any tips!

  • fluxx@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Can’t help you directly, but powertop can be used to monitor/tweak momentary power usage.

    • czak@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Thanks, I do like powertop. I think it’s pretty good for short measurements, e.g. over 30 seconds:

      % sudo powertop --time=30
      
      The battery reports a discharge rate of 4.17 W
      The energy consumed was 125 J
      The estimated remaining time is 11 hours, 4 minutes
      

      But in the real world I will not be getting 11 hours of runtime. The moment I start a browser or play a video, power consumption goes way up.