2

Is it possible to get bluez to run hooks when a device connects/disconnects?

I'm setting up a raspberry pi to broadcast sound from a TV to Bluetooth ear phones. I want to add a pulse audio lookback module when the earphones connect, and remove it when they disconnect.

I guess I can do this with python using the dbus interface, but writing a hook in bash would be much less work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.