Skip to content

Instantly share code, notes, and snippets.

@eni23
Created October 25, 2016 13:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eni23/3cedca6666602271f3cf2e01f1e06e7c to your computer and use it in GitHub Desktop.
Save eni23/3cedca6666602271f3cf2e01f1e06e7c to your computer and use it in GitHub Desktop.

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