Skip to content

Instantly share code, notes, and snippets.

@eni23

eni23/bt-key.md

Created Oct 25, 2016
Embed
What would you like to do?

Bluetooth Button Remap

Setup udev

/etc/udev/hwdb.d/90-sbutton.hwdb

evdev:input:b0005v099Ap0500*
 KEYBOARD_KEY_c00e9=s
 KEYBOARD_KEY_70028=r

then run:

udevadm hwdb --update
udevadm control --reload
udevadm trigger

Connect BT

bluetoothctl
# pairable on
# scan on
# pair C6:97:B1:64:F0:A4
# trust C6:97:B1:64:F0:A4
# connect C6:97:B1:64:F0:A4

Mappings

  • KEYBOARD_KEY_c00e9: big button
  • KEYBOARD_KEY_70028: small button

complete list: https://hal.freedesktop.org/quirk/quirk-keymap-list.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.