So audio (in/out) Sony WH-1000MX3 and Intel® Dual Band Wireless-AC 8265 on aXPS13 running Arch Linux, how hard can it be?
bluez manages the bluetooth connection part, but will fail if it doesn't have access to the right profile
systemctl --user enable --now pulseaudio
pulseaudio has socket activation,
but it doesn't work if you try to connect to a bluetooth headset before something has started pulseaudio,
so enable it to always make it available.bluetoothctl power on
turn on bluetooth
(? or AutoEnable=true
in /etc/bluetooth/main.conf
but not sure how it interacts with pulseaudio being user service)bluetoothctl agent on
only needs to be done oncebluetoothctl scan on
find bluetooth things in range, only needs to be done oncebluetoothctl pair xx:xx:xx:xx:xx:xx
pair with device, only needs to be done oncebluetoothctl connect xx:xx:xx:xx:xx:xx
connect to devicebluetoothctl trust xx:xx:xx:xx:xx:xx
autoconnect to device on power onMonitor of ...
is to listen to what the mic picked upAutoEnable=true
in /etc/bluetooth/main.conf
load-module module-switch-on-connect
in .config/pulse/default.pa
+more pulseaudio modules