I have a Sony bluetooth headset connected to Ubuntu 20.04. They work very well, bluetooth can reconnect, I can even (mpris) control players from it.
The problem I have is that if I forget to turn the off while connected the headset will run out of battery overnight. I checked and there is nothing I can do from the headset side to automatically turn it off when there is no sound.
However the headset auto-turn off when there is no bluetooth connection. Therefore I think the only good option I have is if Ubuntu would disconnect the bluetooth after a certain period of silence.
Is there such option to auto disconnect a bluetooth audio device when there is no sound?
There is no much configuration I could find for the bluetooth device except this from the Settings window: