diff --git a/install/config/hardware/bluetooth.sh b/install/config/hardware/bluetooth.sh index d0c0389f..2187b1d7 100644 --- a/install/config/hardware/bluetooth.sh +++ b/install/config/hardware/bluetooth.sh @@ -1,5 +1,8 @@ # Turn on bluetooth by default chrootable_systemctl_enable bluetooth.service +# Persist last power state across reboots (default AutoEnable=true overrides it) +sudo sed -i 's/^#\?AutoEnable=.*/AutoEnable=false/' /etc/bluetooth/main.conf + mkdir -p ~/.config/wireplumber/wireplumber.conf.d/ cp "$OMARCHY_PATH/default/wireplumber/wireplumber.conf.d/bluetooth-a2dp-autoconnect.conf" ~/.config/wireplumber/wireplumber.conf.d/ diff --git a/migrations/1778291336.sh b/migrations/1778291336.sh new file mode 100644 index 00000000..7edb633c --- /dev/null +++ b/migrations/1778291336.sh @@ -0,0 +1,3 @@ +echo "Persist Bluetooth power state across reboots" + +sudo sed -i 's/^#\?AutoEnable=.*/AutoEnable=false/' /etc/bluetooth/main.conf