Article 571YP Trigger bash script on Bluetooth disconnect

Trigger bash script on Bluetooth disconnect

by
mackowiakp
from LinuxQuestions.org on (#571YP)
Is it possible to trigger automatically an action (like to run bash script) when Bluetooth disconnects from receiver? I use Raspberry Pi as Internet radio and play via Bluetooth on soundbar. My goal is to trigger an action when Bluetooth connection will be down for example because of soundbar power cycle (even for 1 sec).latest?d=yIl2AUoC8zA latest?i=g6gH_NMSEb0:FjIJPy-1j74:F7zBnMy latest?i=g6gH_NMSEb0:FjIJPy-1j74:V_sGLiP latest?d=qj6IDK7rITs latest?i=g6gH_NMSEb0:FjIJPy-1j74:gIN9vFwg6gH_NMSEb0
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