Apenas mais um minuto de experiência me deu o resultado:
sudo rfkill block bluetooth && sleep 1 && \
sudo rfkill unblock bluetooth
Com o laptop Lenovo T540p e fone de ouvido Bluetooth CEL-TEC F5A,
Enquanto usa o fone de ouvido, às vezes o Bluetooth falha (desliga-se, o ícone na área de notificação desaparece) e não pode ser ligado.
Funciona novamente depois de reiniciar todo o sistema.
Como posso reiniciar apenas o Bluetooth?
Isto é o que o journalctl diz quando clico no botão ON / OFF nas configurações:
18:49:58 t540 gnome-control-c[19234]: Failed to register object:
An object is already exported for the interface org.bluez.Agent1 at /org/bluez/agent/gnome
18:49:58 t540 indicator-bluetooth-service[2419]: Agent unregistration failed:
GDBus.Error:org.bluez.Error.DoesNotExist: Does Not Exist 'g-io-error-quark'
Isso parece não ter efeito: sudo rfkill unblock bluetooth
$ rfkill list
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
9: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Apenas mais um minuto de experiência me deu o resultado:
sudo rfkill block bluetooth && sleep 1 && \
sudo rfkill unblock bluetooth