LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2020, 05:57 AM   #1
jevgienij
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Rep: Reputation: Disabled
Bluetooth multimedia controller


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 release
How 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 Thumbnails
Click image for larger version

Name:	a.png
Views:	48
Size:	15.4 KB
ID:	32230  
 
Old 01-05-2020, 01:52 PM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Bluetooth multimedia controller

Don't you have to revert that?
A daemon that would be listening on standard input?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bluetooth adapter not found in Manjaro XFCE with Ralink corp. RT3290 Bluetooth controller dhatwalia Linux - Newbie 2 10-13-2018 05:57 AM
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
SCSI controller - Add extra controller & add a disc to the extra controller raj100 Linux - Hardware 1 11-01-2015 11:30 AM
How to download entire multimedia repository from debian-multimedia amrtuti Debian 4 02-20-2009 09:28 AM
LXer: Become a multimedia pro with the Vector Linux Multimedia Bonus Disc LXer Syndicated Linux News 0 10-08-2008 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration