The Silence Map

Asked on Super User by Ashish Kushwaha , 3 years ago. No reply there for at least a week.

Calculating estimated runtime and charging time for a Linux system battery in a command-line project

I am working on a command-line project in Arch Linux, specifically designed to present system battery information. I have successfully implemented various features, but I am currently facing difficulties in calculating two specific metrics: Estimated runtime : I would like to calculate the estimated time that my laptop will run on its current usage. Is there a way to determine this information programmatically in a Linux environment? Charging time: Additionally, I would like to calculate the amount of time it will take for my laptop's battery to reach a full charge, considering the current inp

This question is one of 1 report of the same problem:

Calculating estimated runtime and charging time for a Linux system battery in a command-line project

Nobody has answered it yet, here or anywhere.

Related problems

Question by Ashish Kushwaha on Super User, licensed CC BY-SA. We show a short excerpt and link to the original thread as credit.