Open georgar70 opened 4 months ago
Could it be that power management sometimes turns off the Bluetooth connection? Could the following suggestion (ChatGPT) be a solution:
Create or Modify the btusb.conf File
/etc/modprobe.d/btusb.conf
to disable power management for the Bluetooth adapter.sudo nano /etc/modprobe.d/btusb.conf
Add the Following Line
btusb.conf
file:options btusb enable_autosuspend=0
Save and Close the File
nano
, you can do this by pressing Ctrl+X
, then Y
, and then Enter
.Reboot the Raspberry Pi
sudo reboot
After the system reboots, you can verify that the power management settings have been applied correctly:
Check Bluetooth Power Management Status
sudo cat /sys/module/btusb/parameters/enable_autosuspend
N
if the autosuspend is disabled.If you are using Wi-Fi along with Bluetooth and suspect power management issues, you might also want to check the power management settings for the Wi-Fi adapter:
Disable Wi-Fi Power Management
wlan0
).sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Set Wi-Fi Power Management to Off
[connection]
wifi.powersave = 2
Save and Close the File
Restart Network Manager
sudo systemctl restart NetworkManager
By following these steps, you should be able to manage and disable power management for the Bluetooth adapter on your Raspberry Pi, which may help resolve the intermittent connection drops.
Does this help or is it not applicable because I am using a USB Bluetooth adapter?
The solution can still be helpful if you are using a USB Bluetooth adapter, as the described settings can also be applied to USB Bluetooth adapters. Here are the steps, slightly adjusted for USB Bluetooth adapters:
Create or Modify the btusb.conf File
/etc/modprobe.d/btusb.conf
to disable power management for the Bluetooth adapter.sudo nano /etc/modprobe.d/btusb.conf
Add the Following Line
btusb.conf
file:options btusb enable_autosuspend=0
Save and Close the File
nano
, you can do this by pressing Ctrl+X
, then Y
, and then Enter
.Reboot the Raspberry Pi
sudo reboot
After the system reboots, you can verify that the power management settings have been applied correctly:
Check Bluetooth Power Management Status
sudo cat /sys/module/btusb/parameters/enable_autosuspend
N
if the autosuspend is disabled.If you are using Wi-Fi along with Bluetooth and suspect power management issues, you might also want to check the power management settings for the Wi-Fi adapter:
Disable Wi-Fi Power Management
wlan0
).sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Set Wi-Fi Power Management to Off
[connection]
wifi.powersave = 2
Save and Close the File
Restart Network Manager
sudo systemctl restart NetworkManager
By following these steps, you should be able to manage and disable power management for the Bluetooth adapter on your Raspberry Pi, which may help resolve the intermittent connection drops, even if you are using a USB Bluetooth adapter.
I have installed Bluetooth software on two PIs, and it works. Unfortunately, the Bluetooth connection drops at irregular intervals (15 - 25 minutes). The distance between the sender and receiver does not change and is not very large. If I deactivate and reactivate Bluetooth on my sender (mobile phone), the connection is reestablished. Do you have any suggestions on what could be causing this? Where can I look?