mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Persist Bluetooth power state across reboots (#5683)
* Persist Bluetooth power state across reboots BlueZ defaults to AutoEnable=true, which forces controllers on at boot regardless of the last user-set state. Setting AutoEnable=false makes bluetoothd respect the persisted Powered state, so toggling off in bluetui (or any DBus client) survives a reboot. Adds the change to the install path and a migration for existing setups. * Set reboot-required in Bluetooth persistence migration Per review feedback, the AutoEnable=false change only takes effect on bluetoothd startup. Without setting reboot-required, omarchy-update-restart won't prompt the user to reboot, so the fix would only kick in at their next organic reboot — by which time the bug may appear unfixed. Matches the convention in migrations/1776346552.sh and similar. * No need to ask for a reboot when this is available on the next one --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
co-authored by
David Heinemeier Hansson
parent
c4dbf12920
commit
92f93cb0e5
@@ -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/
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
echo "Persist Bluetooth power state across reboots"
|
||||
|
||||
sudo sed -i 's/^#\?AutoEnable=.*/AutoEnable=false/' /etc/bluetooth/main.conf
|
||||
Reference in New Issue
Block a user