Skip to content

Add evdev hardware keyboard support - #1

Open
vekexasia wants to merge 1 commit into
MaximeRivest:masterfrom
vekexasia:bt-keyboard-evdev
Open

Add evdev hardware keyboard support#1
vekexasia wants to merge 1 commit into
MaximeRivest:masterfrom
vekexasia:bt-keyboard-evdev

Conversation

@vekexasia

Copy link
Copy Markdown

Adds direct evdev keyboard support for Bluetooth/USB keyboards on reMarkable.

What changed:

  • scans /proc/bus/input/devices for real keyboard event devices
  • reads EV_KEY events and maps them to existing KeyAction/PTY encoding
  • rescans for hotplug so BT keyboards can disconnect/reconnect
  • hides the on-screen keyboard while a hardware keyboard is available, restoring it when the keyboard disappears
  • resizes the terminal/PTY when toggling the OSK area

Tested on a reMarkable Paper Pro with a Bluetooth keyboard exposed as /dev/input/event4 (temper Keyboard).

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

Successfully merging this pull request may close these issues.

1 participant