Eeems-Org/oxide

No touch input for apps when external keyboard is plugged in

matteodelabre opened this issue · 5 comments

Describe the bug
Oxide doesn’t behave well when an external keyboard is plugged in before boot. Most apps do not receive touch input (but Xochitl does). The buttons below the screen have no effect and cannot be used to go back to Oxide or to launch the task manager.

To Reproduce
Steps to reproduce the behavior:

  1. Plug in an external keyboard in the micro-USB port.
  2. Enable tarnish to start at boot.
  3. Reboot.
  4. Start KOReader, harmony, …
  5. Notice that the app doesn’t respond to touch input (even though Oxide itself does respond).
  6. Notice that one cannot use the left, home and right buttons below the screen.

Expected behavior
Apps should respond to touch input, one should be able to go back to Oxide or to start the process manager through the buttons.

Version Information:

  • Device: rM1
  • OS: 2.12.3.606
  • Version 2.3
Eeems commented

Could you please attach a tarnish log from this?

Sure! I'll do this tomorrow.

Eeems commented

What I'm guessing is happening is that my code to determine what the buttons input is and grab it, is also grabbing the keyboard.

Here’s a log obtained by following the repro steps above.
tarnish-external-kbd.log

Eeems commented
Apr 24 03:18:06 reMarkable tarnish[171]: Looking for input devices...
Apr 24 03:18:06 reMarkable tarnish[171]:   Checking event0...
Apr 24 03:18:06 reMarkable tarnish[171]:     Wacom input device detected
Apr 24 03:18:06 reMarkable tarnish[171]:   Checking event1...
Apr 24 03:18:06 reMarkable tarnish[171]:     Buttons input device detected
Apr 24 03:18:06 reMarkable tarnish[171]:   Checking event2...
Apr 24 03:18:06 reMarkable tarnish[171]:     Buttons input device detected
Apr 24 03:18:06 reMarkable tarnish[171]:   Checking event3...
Apr 24 03:18:06 reMarkable tarnish[171]:     Buttons input device detected
Apr 24 03:18:06 reMarkable tarnish[171]:   Checking event4...
Apr 24 03:18:06 reMarkable tarnish[171]:     Buttons input device detected
Apr 24 03:18:06 reMarkable tarnish[171]:   Checking event5...
Apr 24 03:18:06 reMarkable tarnish[171]:     Touch input device detected

Yup, it detected four button input devices