Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Copyright 2011 Brian Crockford
- # a2dp-disconnect.sh
- # For reversing the connection instructions
- # http://ubuntuforums.org/showpost.php?p=9511043&postcount=10
- # disconnect the device
- dbus-send --system --dest=org.bluez --type=method_call /org/bluez/4546/hci0/dev_00_23_76_79_08_D8 org.bluez.AudioSource.Disconnect
- # unlink the audio stream
- MODULE_NUMBER=$(pactl list | grep -B 1 "Name: module-loopback" | sed -n '1 s/[^0-9]*//gp')
- pactl unload-module $MODULE_NUMBER
Advertisement
Add Comment
Please, Sign In to add comment