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!

  • l3mming@lemmy.fmhy.ml
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    1 year ago

    If you’re technically inclined, a simple bash script with a for loop could dump the time and discharge rate to a text file every minute. Then you could copy/paste that into LibreOffice calc and do yourself some pretty graphs, or whatever.

    edit: just found a tool called powerstat which looks like it does sampling over longer intervals.

    sudo apt install powerstat

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

      Interesting, hadn’t heard of powerstat. I’ll be checking that, thanks!