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

Script not working #5

Closed
shoaibhussain-uc opened this issue Jun 14, 2023 · 6 comments
Closed

Script not working #5

shoaibhussain-uc opened this issue Jun 14, 2023 · 6 comments

Comments

@shoaibhussain-uc
Copy link

Hi, this script is not giving the correct total screen-on time on my mac with Venture 13.4. It worked up until the latest update.

@DudeNr33
Copy link
Owner

Thank you for the report. I haven't installed 13.4 yet, but will look into it as soon as possible.
Can you describe a bit more in detail what is wrong with the computed total time?

@shoaibhussain-uc
Copy link
Author

It seems the output from the pmset -g log command has changed and the script isn't able to parse it correctly. The total screen time was an unrealistic value and the time of the last charge wasn't correctly reported.
I really liked the convenience of seeing the total screen time with this script when it worked. Thanks for the project!

@stefanmaric
Copy link
Contributor

I opened a few PRs addressing some issues I encountered while using this script in my 15" Air.

At this point, I haven't found any more issues but would be worth it for others to try it.

@DudeNr33
Copy link
Owner

@stefanmaric thank you for the fixes!
@shoaibhussain-uc can you tell me if this fixes the issue(s) you encountered?
If not, it would be very helpful if you could copy the full output and paste it here.

One thing I noticed which is still present: I had a negative percentage under "statistics" when I ran the script while the laptop was plugged in.

@shoaibhussain-uc
Copy link
Author

@stefanmaric thank you for the fixes! @shoaibhussain-uc can you tell me if this fixes the issue(s) you encountered? If not, it would be very helpful if you could copy the full output and paste it here.

One thing I noticed which is still present: I had a negative percentage under "statistics" when I ran the script while the laptop was plugged in.

Hi, I just ran the script and the numbers seem fine now. Previously the 'unplugged from AC' time wasn't aligned with the time in battery settings.

@DudeNr33
Copy link
Owner

Great! Probably #7 solved the issue. 👍
Feel free to reopen if the problem occurs again.

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

3 participants