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

Send Android sleep #118

Open
dominicklee opened this issue Sep 25, 2021 · 3 comments
Open

Send Android sleep #118

dominicklee opened this issue Sep 25, 2021 · 3 comments

Comments

@dominicklee
Copy link

Hi, thanks for the wonderful BLE keyboard library. I am trying to put my Android device to sleep using your BLE library.

Is there any keycode implementation that can sleep the screen of an Android device, specifically Android 5.1? I have tried many options but nothing works so far.

Hope you can help. Thanks.

@T-vK
Copy link
Owner

T-vK commented Sep 25, 2021

I don't know, but that's out of scope for this library. You're probably better off asking in an Android forum for a keyboard shortcut to put a device to sleep.

@dominicklee
Copy link
Author

Okay. How about sending the "System Sleep" command, which is Usage ID 0x82 of the Generic Desktop Page (0x01) ?

How would I go about doing that?

@T-vK
Copy link
Owner

T-vK commented Sep 27, 2021

You can try #3

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