bluetooth keeps turning off in 19.04 after physically and manually turning off bluetooth device, any fix to this?
Solution 1:
I have the same problem while using bluetooth headset but reloading kernel modules can make it work without restarting.
$ sudo rmmod btusb
$ sudo modprobe btusb
Solution 2:
Try rfkill
(man rfkill)
hard vs soft block
Bluetooth in ubuntu 19.04 won't turn on even if the slider is on "on" mode.
There are two kinds of blocking radiodevices: hard and soft
- You can check events of your device using
rfkill event
- You can check state of your device(s) using
rfkill list
rfkill
rfkill is a small userspace tool to query the state of the rfkill switches, buttons and subsystem interfaces. Some devices come with a hard switch that lets you kill different types of RF radios: 802.11 / Bluetooth / NFC / UWB / WAN / WIMAX / FM. Some times these buttons may kill more than one RF type. The Linux kernel rfkill subsystem exposes these hardware buttons and lets userspace query its status and set its status through a /dev/rfkill. Given that at times some RF devices do not have hardware rfkill buttons rfkill the Linux kernel also exposes software rfkill capabilities that allows userspace to mimic a hardware rfkill event and turn on or off RF. (source)
rfkill event
- Open terminal
- Run command
rfkill event
- Try to switch your device on|off
- Some command output should appear
rfkill list
- Open terminal
- Run command
rfkill list
- You'll see states of your devices
- the command is rfkill event.