pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.46k stars 87 forks source link

Bluetooth mouse connects, disconnects and then reconnects after boot, only once on every boot #1677

Open lazarosgogos opened 3 years ago

lazarosgogos commented 3 years ago

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="20.10" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 20.10" VERSION_ID="20.10" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=groovy UBUNTU_CODENAME=groovy LOGO=distributor-logo-pop-os

Issue/Bug Description: After logging in to my laptop, my Logitech MX Master 3 connects normally, via Bluetooth. Then, a few seconds later, it disconnects, and then in about 3 seconds, while I keep moving it around in order to request a connection, it reconnects and I can use it normally.

Steps to reproduce (if you know): Try connecting a bluetooth mouse and you will possibly encounter the same issue.

Expected behavior: Once the mouse is connected, it should stay connected. As it works in Windows (tested).

Other Notes: I had initially created a topic on reddit: where others have stated that they are dealing with the same issue.

bflanagin commented 3 years ago

@lazarosgogos: Lets start by getting the logs from journalctl, they might shed some light on the issue.

sudo journalctl | grep bluetooth | tail -n 100 > lazarosgogos-bluetooth.txt

Attach the output .txt file to your next comment.

lazarosgogos commented 3 years ago

Ok here it is ! lazarosgogos-bluetooth.txt

bflanagin commented 3 years ago

Looks like there is an issue with various Bluetooth controllers and kernel 5.9 and up. We'll keep and eye on it and follow up with you when there is a new kernel update for Pop!

lazarosgogos commented 3 years ago

Thank you ! :)

arbitrary-dev commented 3 years ago

Have a similar issue with bluetooth headset: arbitrary-dev-bluetooth.log

Sometimes connection fails and after a couple of seconds it restores back.

$ uname -r
5.8.0-7642-generic
bjr0421 commented 3 years ago

Can also confirm that I have this issue with the Logitech MX Master 2S. Currently on Pop!_OS 20.10 with kernel 5.11.0-7614-generic. This issue was also present for me in Ubuntu 20.04 and Ubuntu 20.10. I am using a Dell XPS 15 9570, with an Intel AX200 wireless card.

It is worth mentioning that a few days ago, some updated firmware for the Intel AX210 was pushed to the Pop fork of linux-firmware. There have also been recent commits to the main linux-kernel repo recently from Intel for the AX wireless cards, so this may help / resolve this issue.

lazarosgogos commented 3 years ago

I have another output file from journalctl that might prove useful. It actually contains some info relative to the problem (like time of connection, time of disconnection etc) specific to the wireless mouse. lazarosgogos-LogitechWirelessMouse-journalctl-output.txt

bjr0421 commented 3 years ago

This issue is still present after the most recent linux-firmware update.

devonallie commented 3 years ago

I am also experiencing this issue with the MX Vertical. I have tested with Ubuntu 21.04 and Fedora 34 where no such issue exists.

sonalder-darlene commented 3 years ago

Experiencing the same issues with Xbox one controllers on PopOS! 21.04. Really anoying... I've tried : sudo apt install --reinstall bluez gnome-bluetooth indicator-bluetooth pulseaudio-module-bluetooth a command line I've found here : https://support.system76.com/articles/bluetooth/

It worked for a day... Later that day I've reconnected one of my controller and had this issue again... Also, when bt was working every time I launched a steam game the controller start vibrating constantly like crazy until I close steam. Wire-connected doesn't vibrate like crazy. Non-steam games worked without issues so it may be a steam problem and not PopOS!

103sbavert commented 2 years ago

Have this issue on KDE Neon as well. No idea what the root cause is but it's definitely not pop_os! specific.

ulrichmathes commented 1 year ago

Same here with Ubuntu and Logitech MX Anywhere 2.

5.19.0-35-generic

sudo journalctl | grep bluetooth | tail -n 100 ``` Mär 20 21:37:13 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_512 Mär 20 21:37:13 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_552 Mär 20 21:37:13 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_552 Mär 20 21:37:13 SG-2102 bluetoothd[1131]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_hq Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_sq Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_mq Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/aptx_hd Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/aptx_hd Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/aptx Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/aptx Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_453 Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_453 Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_512 Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_512 Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_552 Mär 21 08:35:24 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_552 Mär 21 08:35:26 SG-2102 pulseaudio[1496]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)? Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_hq Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_sq Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_mq Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/aptx_hd Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/aptx_hd Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/aptx Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/aptx Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_453 Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_453 Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_512 Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_512 Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_552 Mär 21 08:35:26 SG-2102 bluetoothd[1131]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_552 Mär 21 08:35:26 SG-2102 bluetoothd[1131]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Terminating Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_hq Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_sq Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_mq Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/aptx_hd Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/aptx_hd Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/aptx Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/aptx Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_453 Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_453 Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_512 Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_512 Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_552 Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_552 Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Stopping SDP server Mär 21 09:15:26 SG-2102 bluetoothd[1131]: Exit Mär 21 09:15:26 SG-2102 systemd[1]: bluetooth.service: Deactivated successfully. Mär 21 09:15:26 SG-2102 systemd[1]: bluetooth.service: Consumed 1min 51.341s CPU time. Mär 21 09:18:16 SG-2102 kernel: thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked Mär 21 09:18:17 SG-2102 bluetoothd[1164]: Bluetooth daemon 5.64 Mär 21 09:18:17 SG-2102 bluetoothd[1164]: Starting SDP server Mär 21 09:18:17 SG-2102 bluetoothd[1164]: Bluetooth management interface 1.22 initialized Mär 21 09:18:17 SG-2102 NetworkManager[1169]: [1679386697.3282] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/1.36.6/libnm-device-plugin-bluetooth.so) Mär 21 09:18:17 SG-2102 bluetoothd[1164]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters Mär 21 09:18:19 SG-2102 pulseaudio[1457]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)? Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_hq Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_sq Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/ldac_mq Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/aptx_hd Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/aptx_hd Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/aptx Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/aptx Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_453 Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_453 Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_512 Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_512 Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc_xq_552 Mär 21 09:18:19 SG-2102 bluetoothd[1164]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc_xq_552 Mär 22 08:27:26 SG-2102 kernel: thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked Mär 22 08:27:26 SG-2102 bluetoothd[1218]: Bluetooth daemon 5.64 Mär 22 08:27:26 SG-2102 bluetoothd[1218]: Starting SDP server Mär 22 08:27:26 SG-2102 bluetoothd[1218]: Bluetooth management interface 1.22 initialized Mär 22 08:27:27 SG-2102 NetworkManager[1222]: [1679470047.0623] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/1.36.6/libnm-device-plugin-bluetooth.so) Mär 22 08:27:28 SG-2102 bluetoothd[1218]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters Mär 22 08:27:29 SG-2102 pulseaudio[1571]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)? Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/ldac_hq Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/ldac_sq Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/ldac_mq Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/aptx_hd Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/aptx_hd Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/aptx Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/aptx Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_xq_453 Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc_xq_453 Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_xq_512 Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc_xq_512 Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSink/sbc_xq_552 Mär 22 08:27:29 SG-2102 bluetoothd[1218]: Endpoint registered: sender=:1.42 path=/MediaEndpoint/A2DPSource/sbc_xq_552 ```
ivelin commented 10 months ago

Same problem with PopOS (Pop!_OS 22.04 LTS) and Logitech MX Master 3. Did not have this issue when the same mouse was attached to a Mac via bluetooth.

Output attached for

sudo journalctl | grep bluetooth | tail -n 100 > lazarosgogos-bluetooth.txt

lazarosgogos-bluetooth.txt

andreborud commented 2 months ago

This exact issue happens for me as well with my MX Master 2s.