Bluetooth mouse disconnects after a while

I started using a Bluetooth mouse in my current distribution: openSUSE Tumbleweed - Kernel 6.5.3-1-default and I’m having problems when I use the Bluetooth connection. The Bluetooth works well for other things such as headphones, speakers but the issue seems to be with the mouse.Bluetooth device from lsusb output:

Bus 001 Device 003: ID 0bda:b00e Realtek Semiconductor Corp. Bluetooth Radio

The mouse works without any problem If I use the dongle USB but If I use the Bluetooth connection (either BT 4.0 or BT 5.0) this works but after some seconds it is disconnected and I have to reconnect it again.

I tried using this mouse in my another laptop with Ubuntu 22.04 - Kernel 5.19.0-46-generic and works without any problem.

Also, I tried using my Ubuntu Virtual Machine - Kernel 5.15.0-84-generic (KVM) from my openSUSE host (passing the Bluetooth device to the VM) and the Bluetooth mouse works without any problem (so I don’t think the problem is related to the Bluetooth device).

Does anyone know if this problem is related to the current openSUSE kernel? Or maybe it’s necessary to install some others packages in this distro?

By the way, the Bluetooth mouse connection only works if I connect to it by using directly “connect MAC_ADDRESS” using the bluetoothctl command or Blueman GUI. But If I use “pair” first (either using the command o Blueman) the mouse connects but it does not do anything and after some time gets disconnected as well.
However, when the mouse is connected to my laptop, in the Bluetooth settings of the mouse, the option “Paired” shows “No” even if the mouse appears as “connected”.

I posted this already on reddit but it seems that nobody knows about this issue so maybe in this site I can get some of interaction.

It looks to me some kind of sleep functionality is responsible for this.

Does the connection also get lost if you have a audio stream running on your BT headphone?
Does your log show anything if the connection is lost?

1 Like

Hi marel, thanks for the response!
About the first question:

Does the connection also get lost if you have a audio stream running on your BT headphone?

No, it doesn’t. I’ve used Bluetooth earphones and all works successfully. So far, this Bluetooth mouse has this problem.

And about:

Does your log show anything if the connection is lost?

I’m not sure where to check the logs, I suppose using the command dmesg, if so, this what I get:

I’m not really sure if this message is related to bluetooth or wifi (or both)
rtw_8821ce 0000:01:00.0: firmware failed to leave lps state

If I try to pair the bluetooth mouse:

[ 6465.749915] rtw_8821ce 0000:01:00.0: failed to send h2c command
[ 6466.442503] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 6466.489805] Bluetooth: hci0: unexpected SMP command 0x06 from c8:e3:e6:58:e7:e1
[ 6466.489820] Bluetooth: hci0: unexpected SMP command 0x07 from c8:e3:e6:58:e7:e1
[ 6466.489824] Bluetooth: hci0: unexpected SMP command 0x08 from c8:e3:e6:58:e7:e1
[ 6466.489827] Bluetooth: hci0: unexpected SMP command 0x09 from c8:e3:e6:58:e7:e1

(About [ 6465.749915] rtw_8821ce 0000:01:00.0: failed to send h2c command I’m not sure if it about Bluetooth)

If I connect directly (without pairing) I get the same logs as above and the mouse is connected and works and these are the logs when is connected:

[ 6674.820662] input: BT5.0 Mouse as /devices/virtual/misc/uhid/0005:32C2:0001.0003/input/input18
[ 6674.821383] hid-generic 0005:32C2:0001.0003: input,hidraw2: BLUETOOTH HID v0.68 Mouse [BT5.0 Mouse] on a8:93:4a:8f:03:12

But after a while, the mouse gets disconnected and sometimes shows this log:

[ 6703.080172] Bluetooth: hci0: ACL packet for unknown connection handle 16

What could be the problem? I think is the kernel, since in Ubuntu and Redhat, which have a kernel < 6.0 , the Bluetooth mouse works successfully.

I am not 100% sure you understood my question correctly or that I did ask my question clear enough, so let me retry: During the time you have audio running do you have any problems with the mouse disconnecting if you do not use it for some time.

That seems WiFi related, see also WiFi frequently and randomly disconnects, rtw_8821ce driver.

Still you BT adapter is at least also from Realtek so is this maybe some kind of combo card?

Maybe you get a solution here:

1 Like

In this case, the mouse is disconnected whether I’m using or not another bluetooth device as well as If I’m using the mouse or not. Also, most of the times (or always), the mouse is disconnected after 30 seconds .

Yes, both Wifi Card and Bluetooth are from Realtek, maybe this can cause these problems with the current kernels because as I said If I connect the Bluetooth mouse to a Virtual Machine passing the Bluetooth Adapter to this VM it works without any problem.

I’ve also tried removing the rtw88_8821ce driver with rmmod to disable Wifi Adapter and the problem persists with the Bluetooth mouse.

Thank you

Thank you!
I will give a check, maybe this can help to another problem as well (but not usual or annoying), it’s about using WIfi and Bluetooth at same time. Sometimes, the wifi doesn’t load well, and for example, in Youtube, sometimes the video stucks at some minute and I have to wait for the video to load more (the frames, or buffer, I don’t know how Youtube loads the videos )

Yes, Bluetooth and WiFi use the same frequency band so using them at the same time can lead to problems.

A good solution is to move your WiFi to 5G, for that you have to reconfigure your AP and both the AP and your computer should support running WiFi on 5G.

1 Like

Oh, thank you! I’ll give a check to this in this week :smiley: .