Jump to content

Bluetooth multimedia controller


jevgienij

Recommended Posts

I have this cheap bluetooth multimedia controller with 5 keys (play, prev, next, vol up, vol down). It's all connected and key presses are recognised:

 

[root] [~] # showkey
kb mode was UNICODE
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
keycode 164 press
keycode 164 release

How do I go from here? How do I make this 164 key press to run "mpc toggle" command?

 

It's an Orange Pi PC+ and Armbian 5.90. This is a console-only machine. No any X window system (most of the keybind solutions I've found were X related).

Link to comment
Share on other sites

My personal experience is that keeping (classical) BT connection is too power hungry for batteries. So The device must disconnect after a few seconds. With devices such PS2 remote (if I force disconnection), the first press is lost and the (re)connection delay is longer than one second. Please tell me if you get better results.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines