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

Camera Button Screen Off #911

Closed
artisak2 opened this issue Feb 9, 2022 · 7 comments
Closed

Camera Button Screen Off #911

artisak2 opened this issue Feb 9, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@artisak2
Copy link

artisak2 commented Feb 9, 2022

Requesting enhancement to support camera button (27) detection with screen off.

Also Focus button (80) with screen off

@GL513
Copy link
Contributor

GL513 commented Feb 10, 2022

Is your device rooted? Alot of things might not work if keymapper doesn't have root access.

https://docs.keymapper.club/includes/trigger-options/trigger-when-screen-off/

Without root access, keymapper currently can't trigger with the screen off.

I have also noticed that on certain keyboards you can't remap the "lock"/"power off" buttons, so this might be a similar case.

@artisak2
Copy link
Author

Yes device is rooted. Confirmed that volume keys are detected with screen off.
But, like in the link you supplied, it says the only current supported buttons are for volume ud/dn and headset buttons.
It also mentions to let developer know any buttons we would like supported.

@sds100
Copy link
Collaborator

sds100 commented Feb 10, 2022

Yeah, I will add that. Easy. are 27 and 80 the key codes?

@sds100 sds100 self-assigned this Feb 10, 2022
@sds100 sds100 added the enhancement New feature or request label Feb 10, 2022
@artisak2
Copy link
Author

Awesome!
Yes 27 (camera) & 80 (focus)

@sds100
Copy link
Collaborator

sds100 commented Feb 10, 2022

@artisak2 can you run the adb shell getevent -lq command, press those buttons and then post the output.

@artisak2
Copy link
Author

/dev/input/event3: EV_KEY 02fe DOWN /dev/input/event3: EV_SYN SYN_REPORT 00000000 /dev/input/event3: EV_KEY KEY_CAMERA_FOCUS DOWN /dev/input/event3: EV_SYN SYN_REPORT 00000000 /dev/input/event3: EV_KEY 02fe UP /dev/input/event3: EV_SYN SYN_REPORT 00000000 /dev/input/event3: EV_KEY KEY_CAMERA_FOCUS UP /dev/input/event3: EV_SYN SYN_REPORT 00000000

@sds100
Copy link
Collaborator

sds100 commented Feb 11, 2022

implemented. read this to get the alpha builds https://docs.keymapper.club/contributing/#becoming-a-tester

@sds100 sds100 closed this as completed Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants