From ab6488f94450d0fe0c105d534b6a670362cac785 Mon Sep 17 00:00:00 2001 From: Erik Dubois Date: Fri, 25 Jun 2021 10:33:48 +0200 Subject: [PATCH] disable=socket for bluetooth --- ...all-settings-autoconnect-to-bluetooth-headset-v1.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Personal/955-install-settings-autoconnect-to-bluetooth-headset-v1.sh b/Personal/955-install-settings-autoconnect-to-bluetooth-headset-v1.sh index b62af57e..c257fab5 100755 --- a/Personal/955-install-settings-autoconnect-to-bluetooth-headset-v1.sh +++ b/Personal/955-install-settings-autoconnect-to-bluetooth-headset-v1.sh @@ -35,10 +35,20 @@ # load-module module-switch-on-connect' | sudo tee --append /etc/pulse/default.pa # fi +echo "#################" echo "Fix 3" echo "#################" [ -f /etc/modprobe.d/bluetooth-clear.conf ] && echo "Bluetooth-clear already created" || echo 'options ath9k btcoex_enable = 1' | sudo tee /etc/modprobe.d/bluetooth-clear.conf +echo "#################" +echo "Fix 4" +echo "#################" +if grep --quiet "Disable=Socket" /etc/bluetooth/main.conf; then + echo "Disable=Socket is already added" +else + echo ' +Disable=Socket' | sudo tee --append /etc/bluetooth/main.conf +fi echo "################################################################" echo "######### reboot to let the settings kick in ################"