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

Controller sleep mode / rotate events are not dispatched after 5 min of inactivity #4

Closed
thedriveman opened this issue Jul 2, 2020 · 3 comments

Comments

@thedriveman
Copy link

thedriveman commented Jul 2, 2020

I'm building an app that listens to rotate events, and I've noticed that after about 5 minutes of inactivity (i.e., not touching the controller), rotate events stop getting dispatched . However, once I press the controller surface, a select event is getting dispatched, after which rotate events start dispatching again. It does look like the Bluetooth connection remains connected during the entire time, as no disconnected event is dispatched.

Does the controller hardware go to "light" sleep after 5 minutes, where only a select event wakes it up?

@happycodelucky
Copy link
Owner

happycodelucky commented Jul 2, 2020 via email

@thedriveman
Copy link
Author

I've tested it and sending a periodic display update as a "keep alive" indeed keeps the controller from falling asleep. I'm going explore this option further, and also assess what is the battery drainage toll. Thanks a lot!

@DrCWO
Copy link

DrCWO commented Jun 3, 2021

I've tested it and sending a periodic display update as a "keep alive" indeed keeps the controller from falling asleep. I'm going explore this option further, and also assess what is the battery drainage toll. Thanks a lot!

I'm building an app that listens to rotate events, and I've noticed that after about 5 minutes of inactivity (i.e., not touching the controller), rotate events stop getting dispatched . However, once I press the controller surface, a select event is getting dispatched, after which rotate events start dispatching again. It does look like the Bluetooth connection remains connected during the entire time, as no disconnected event is dispatched.

Does the controller hardware go to "light" sleep after 5 minutes, where only a select event wakes it up?

Did you really solve this issue? I Did output a character to the display every 10 seconds to keep it alive. No matter how long I wait, sometimes rotation events were created sometimes not. Seems to be random for me.

Comments will be appreciated. Thanks

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