We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is already a SensorsBatteryBlock, but it is based on PollingBlock. Instead, let's reimplement it using sysfs interface (https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power) and FileWatcherBlock (based on aionotify).
SensorsBatteryBlock
PollingBlock
sysfs
FileWatcherBlock
aionotify
Some posts in StackOverflow on how to calculate the remaining time: https://stackoverflow.com/questions/26888636/how-to-calculate-the-time-remaining-until-the-end-of-the-battery-charge https://stackoverflow.com/questions/35516424/calculate-time-left-until-battery-is-discharged
(They're probably not precise, but I don't think the current battery calculations from psutil are different from this).
psutil
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is already a
SensorsBatteryBlock
, but it is based onPollingBlock
. Instead, let's reimplement it usingsysfs
interface (https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power) andFileWatcherBlock
(based onaionotify
).Some posts in StackOverflow on how to calculate the remaining time:
https://stackoverflow.com/questions/26888636/how-to-calculate-the-time-remaining-until-the-end-of-the-battery-charge
https://stackoverflow.com/questions/35516424/calculate-time-left-until-battery-is-discharged
(They're probably not precise, but I don't think the current battery calculations from
psutil
are different from this).The text was updated successfully, but these errors were encountered: