Skip to content
New issue

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

Two issues with secsleft. #1355

Closed
NeuroAssassin opened this issue Oct 31, 2018 · 4 comments
Closed

Two issues with secsleft. #1355

NeuroAssassin opened this issue Oct 31, 2018 · 4 comments

Comments

@NeuroAssassin
Copy link

For some reason, when I have a popup message saying my "computer is unplugged", it says that I have -2 seconds remaining until my computer dies.
image
Also, when it is being put in the logs, it has this:
image
It keeps saying I have that many seconds left, even though google says that's over a century.
image
Why is it doing this?

@giampaolo
Copy link
Owner

...and what does this have to do with psutil exactly? :D

@NeuroAssassin
Copy link
Author

I'm getting the battery by psutil, by using psutil.sensors_battery() @giampaolo

@giampaolo
Copy link
Owner

giampaolo commented Nov 2, 2018

Ah I get what you mean now. The number of seconds returned by sensors_battery() on Windows is too high.

@NeuroAssassin
Copy link
Author

NeuroAssassin commented Dec 4, 2018

Closing issue because found source of problem; needed to enable bios in pre-boot menu of computer. It is now showing the correct number of seconds.

Notice for future people who are encountering this problem: You will have to enable it to show the amount of time left on battery in your computer's BIOS/UEFI. However, this issue may still occur at some points, because your computer may sometimes not provide the time left, so it will default to one of the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants