Article 4XEPW Bluetooth multimedia controller

Bluetooth multimedia controller

by
jevgienij
from LinuxQuestions.org on (#4XEPW)
I have this cheap bluetooth multimedia controller. The device is paired properly and the key presses are recognised (play/pause key in the example below):

Code:[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 releaseHow do I make this key press execute a shell command? I'm doing all this on an embedded device (Orange Pi) but I think that's not the problem here. The problem is that I don't have a direct screen nor keyboard connection to the machine. I only got a serial console and ssh. There is no any X window system and all the possible solutions I've found so far were for GUI Linux only. What can I do? I think this must be possible some way, considering that the OS can see the key presses.
Attached Thumbnailsattachment.php?attachmentid=32230&stc=1& latest?d=yIl2AUoC8zA latest?i=kbFLMxB46x8:NY4mamRH88E:F7zBnMy latest?i=kbFLMxB46x8:NY4mamRH88E:V_sGLiP latest?d=qj6IDK7rITs latest?i=kbFLMxB46x8:NY4mamRH88E:gIN9vFwkbFLMxB46x8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments