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

Fix CPU being turned off. #48

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FredericMa
Copy link
Contributor

@FredericMa FredericMa commented Nov 6, 2022

This PR should fix the issue seen in #39.
The wakelock was only kept for 3 seconds so when the screen was turned off, the CPU was also turned off.
In order to fix this, a few things needed to happen:

  • Fix wakelock to prevent CPU being turned off.
  • Add additional wakelock to handle screen state.
  • Add additional broadcastreceiver to handle screen commands separately.

Please review these changes and test them yourself since I'm not an Android dev so maybe things should be done differently.
This PR might also impact battery life since the CPU will never be turned off while WallPanel is running.

Maybe you can create a Pre-release for this one so other people can also test it first?

- Add additional wakelock to handle screen state.
- Add additional broadcastreceiver to handle screen commands separately.
@netlify
Copy link

netlify bot commented Nov 6, 2022

Deploy Preview for wallpanel canceled.

Name Link
🔨 Latest commit e47ab5d
🔍 Latest deploy log https://app.netlify.com/sites/wallpanel/deploys/636819e3c9d1ab000a4b0269

@FredericMa
Copy link
Contributor Author

@TheTimeWalker Any chance you can find some time to review the changes in this PR?

@FredericMa
Copy link
Contributor Author

It looks like this functionality breaks when brightness control permissions are granted. I'll check why this happens.

@FredericMa FredericMa marked this pull request as draft November 30, 2022 20:38
@amasolov
Copy link

@TheTimeWalker Would be great to have it reviewed and merged!

@TheTimeWalker
Copy link
Owner

@amasolov It is still regarded as Draft so I've been holding off of reviewing

@FredericMa
Copy link
Contributor Author

I'll try to find some time in the coming days or weeks to take a look at the remaining issues with this PR.

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

Successfully merging this pull request may close these issues.

3 participants