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

Distinguish CAT S22 Flip function buttons #1276

Open
3 tasks
70mg opened this issue Aug 15, 2024 · 0 comments
Open
3 tasks

Distinguish CAT S22 Flip function buttons #1276

70mg opened this issue Aug 15, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@70mg
Copy link

70mg commented Aug 15, 2024

Developer TODO (don't remove)

  • create new branch. put issue number at start of name
  • update documentation
  • merge and delete branch (don't squash because want commit history to see why I made changes)

The CAT S22 Flip* has an orange button on its left side, and a button labeled with a 🕪 to the left of its keypad. Currently, these are interpreted as the same button by key-mapper (unknown keycode 0 (This device)). It would be useful if they could be distinguished by KeyMapper, enabling distinct functions.

The output of adb shell getevent -lq yields distinct values for each button, which I'm guessing implies that distinguishing them is possible.

Orange side button
/dev/input/event1: EV_MSC MSC_SCAN 00000023
/dev/input/event1: EV_KEY KEY_NUMERIC_B DOWN
/dev/input/event1: EV_SYN SYN_REPORT 00000000
/dev/input/event1: EV_MSC MSC_SCAN 00000023
/dev/input/event1: EV_KEY KEY_NUMERIC_B UP
/dev/input/event1: EV_SYN SYN_REPORT 00000000

🕪 button
/dev/input/event1: EV_MSC MSC_SCAN 00000010
/dev/input/event1: EV_KEY KEY_MICMUTE DOWN
/dev/input/event1: EV_SYN SYN_REPORT 00000000
/dev/input/event1: EV_MSC MSC_SCAN 00000010
/dev/input/event1: EV_KEY KEY_MICMUTE UP
/dev/input/event1: EV_SYN SYN_REPORT 00000000

I appreciate not many people will have this device to hand, so I am of course on hand to help test or provide any additional information.

*The CAT S22 Flip is sold with a version of Android Go which comes with software for mapping these buttons. However, this is unavailable to users running a custom ROM on the device, making KeyMapper a great alternative. The device has become fairly popular among people wanting a "dumbphone" experience, but not wanting to ditch Android. A popular reason for wanting to install a custom ROM (e.g. LineageOS) is to de-google the device. KeyMapper is currently being recommended on the most popular and useful forum post on how to install LineageOS on the CAT S22 Flip.

p.s. KeyMapper is great, thank you!

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

2 participants