Frequent Bluetooth Disconnections

I am new to cachy os jumped from windows i am using a bluetooth dongal UB500 tp link IDK why i face frequent disconnections whenever i try to connect to my earpods. Please fix this issue

I have the same issue with an Xbox controller. Prime suspect is Bluetooth adapter, but could be just Linux being Linux

I used some codes btw and now its fixed

Interesting, I have the same problems with some earbuds, that I “solved” by downgrading bluez to 5.82, can you say what exaclty you did?

Hello!

Step 1: Disable Driver Power Saving
This prevents the kernel from putting the Bluetooth chip into “sleep mode.”

code:

echo “options btusb enable_autosuspend=0” | sudo tee /etc/modprobe.d/btusb.conf

Step 2: Create a Hardware Rule
This tells the system to keep the power ON for the UB500 specifically (using its hardware ID 2357:0604).

code:

echo ‘ACTION==“add”, SUBSYSTEM==“usb”, ATTR{idVendor}==“2357”, ATTR{idProduct}==“0604”, ATTR{power/control}=“on”’ | sudo tee /etc/udev/rules.d/99-ub500-power.rules

Step 3: Configure Bluetooth Service
This ensures the Bluetooth service starts automatically and doesn’t time out when idle.

code:

sudo sed -i ‘s/^#AutoEnable=false/AutoEnable=true/’ /etc/bluetooth/main.conf
sudo sed -i ‘s/^#IdleTimeout=30/IdleTimeout=0/’ /etc/bluetooth/main.conf

Step 4: Apply the Changes
Run these to refresh the system and start using the new rules immediately.

code:

sudo udevadm control --reload-rules && sudo udevadm trigger
sudo systemctl restart bluetooth

Pro Tip: If you ever move the adapter to a different USB port and it starts acting up, just run Step 4 again to let the system “re-discover” it with these rules.

I used these codes especially the 4th one is important after executing all the 3 above .