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

Doesn't work on locked screen. #1494

Open
Konstont1n opened this issue Mar 3, 2025 · 7 comments
Open

Doesn't work on locked screen. #1494

Konstont1n opened this issue Mar 3, 2025 · 7 comments
Assignees
Labels
bug Something isn't working needs triage

Comments

@Konstont1n
Copy link

Konstont1n commented Mar 3, 2025

Describe the bug
I created a combination of VolUp+VolDn - to switch the flashlight.
And it works, but only while the screen is unlocked.
As soon as the screen is locked, the combination does not work.
All permissions and root (Magisk) have been granted.

Device and app info

  • Device: Sony Xperia 10 VI
  • Android version: Android 14 ("clear")
  • Key Mapper version: 2.8.1
@Konstont1n Konstont1n added bug Something isn't working needs triage labels Mar 3, 2025
@jambl3r
Copy link
Collaborator

jambl3r commented Mar 7, 2025

Hi, to help us solve this please send the output of pressing the buttons while running the adb shell getevent -lq command so the developer knows which key event name they need to add.

@Konstont1n
Copy link
Author

Konstont1n commented Mar 9, 2025

When I press the volume up:

/dev/input/event2: EV_KEY KEY_VOLUMEUP DOWN
/dev/input/event2: EV_SYN SYN_REPORT 00000000
/dev/input/event2: EV_KEY KEY_VOLUMEUP UP
/dev/input/event2: EV_SYN SYN_REPORT 00000000

When I press the volume down:

/dev/input/event0: EV_KEY KEY_VOLUMEDOWN DOWN
/dev/input/event0: EV_SYN SYN_REPORT 00000000
/dev/input/event0: EV_KEY KEY_VOLUMEDOWN UP
/dev/input/event0: EV_SYN SYN_REPORT 00000000

@jambl3r
Copy link
Collaborator

jambl3r commented Mar 9, 2025

Thank you, will see if we can get this working

@jambl3r
Copy link
Collaborator

jambl3r commented Mar 9, 2025

So these events are the same events that the app is programmed for, so something more complicated is happening.

After discussing with the developer, the locked screen feature has always been quite experimental and hacky. Actually making it 100% stable across all devices would be a lot of work and unfortunately there are a bunch of other priorities right now that we're working on.

So, this may be fixed at some time, but it's not going to be any time soon (6+ months minimum, likely longer)

Sorry I can't do any more for you at the moment

@Konstont1n
Copy link
Author

After discussing with the developer, the locked screen feature has always been quite experimental and hacky. Actually making it 100% stable across all devices would be a lot of work and unfortunately there are a bunch of other priorities right now that we're working on.

I have tried many similar applications. And the only app that works permanently on the locked screen (with root) is Button Mapper.
But you can't create combinations and sequences of buttons there.

Most other apps just stop working when the screen is locked. Some work for 1-2 minutes after locking.

@jambl3r
Copy link
Collaborator

jambl3r commented Mar 10, 2025

That's unfortunate. Perhaps you can appeal to the team behind Button Mapper to add the ability to send intents to other apps as an action.
If they did that, you could trigger your Key Mapper key maps using Button Mapper's locked screen detection.

@githubsterer
Copy link

githubsterer commented Mar 10, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

4 participants