Skip to contentSkip to conversation

How to block media sink endpoint

DISCUSSION David Timber 1 participant 1 message Sep 7, 2022 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I'm trying to disable/block media endpoint so that my laptop won't be used as a media sink by Android devices. I occasionally use Bluetooth for transferring small files fro and to Android devices. Whenever a Android device connect to my laptop, it automatically enables "Media audio" again. If the phone was playing music, the laptop becomes the new media sink and the laptop speakers start blasting music :( What a horrible idiot-proof design.

Google doesn't ever listen to anyone, so I figured it's easier to find a solution by configuring my Linux machines.

bluetoothd output:

Endpoint registered: sender=:1.78 path=/MediaEndpoint/A2DPSink/aptx_hd Endpoint registered: sender=:1.78 path=/MediaEndpoint/A2DPSink/aptx Endpoint registered: sender=:1.78 path=/MediaEndpoint/A2DPSink/sbc Endpoint registered: sender=:1.78 path=/MediaEndpoint/A2DPSink/sbc_xq

And bluetoothctl shows:

UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)

I don't think Audio back-ends(ALSA, PA, PW) are not involved in this device source-laptop sink set up. How do I prevent my laptop from being used as an A2DPSink endpoint? Or if I can just blacklist a certain kernel module, that'd be just fine.