[regression] bluetooth mouse not reconnected on reboot

Bug #1779289 reported by dudsen
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
bluez (Ubuntu)
Invalid
Low
Unassigned
gnome-bluetooth (Ubuntu)
Fix Released
Low
Unassigned
Bionic
Fix Released
Undecided
Unassigned

Bug Description

* Impact
Bluetooth pointer devices are not always correctly paired, which leads to have them failing to connect or not auto-reconnecting

* Test case
Pair a bluetooth mouse, it should re-connect automatically after suspend/resume or reboot cycles

* Regression potential
The change makes all devices go through pairing with the standard code that should work fine but we should keep an eye if it confuses some devices and lead to prompt for a PIN when that shouldn't be needd

------------------------------------------

This affects at least 2 different bluetooth mice(both logitech)
The behavior is that initial config when using the gui works but that the resulting
"/var/lib/bluetooth/<controler mac>/<device mac>/info" file does not contain a [LinkKey] section as the mouse does not require a pin.
This mouse was connection on reboot under 16.04 so it's a new bug for 18.04

When setting up the mouse using bluetoothctl the info file is correctly written with a [LinkKey] section and everything works,

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-bluetooth 3.28.0-2
ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
Uname: Linux 4.15.0-23-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Jun 29 11:27:27 2018
InstallationDate: Installed on 2018-06-27 (1 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-bluetooth
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dudsen (dudsen) wrote :
summary: - bluetooth mouse not reconeected on reboot
+ [regression] bluetooth mouse not reconeected on reboot
summary: - [regression] bluetooth mouse not reconeected on reboot
+ [regression] bluetooth mouse not reconnected on reboot
tags: added: regression-release
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bluez (Ubuntu):
status: New → Confirmed
Changed in gnome-bluetooth (Ubuntu):
status: New → Confirmed
Revision history for this message
Marcin (marcincelebucki) wrote :

Bug affected also a disco dingo

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks.

That reminds me, make sure you don't have 'tlp' installed. Because that would be bug 1574311 instead.

tags: added: disco
Revision history for this message
Marcin (marcincelebucki) wrote :

Thanks.

Confirm, the tlp not installed.

Mouse: Acer MT1BF
One more thing, the use of bluetoothctl is not resolving issue.

Revision history for this message
Marcin (marcincelebucki) wrote :

Its look like the issue is on usage the connect/pair command.

When use a bluetoothctl 'connect' command, the connection is established, with info:

[CHG] Device <device mac> ServicesResolved: yes
[CHG] Device <device mac> Paired: yes
Connection successful

but the [LinkKey] section is not stored in 'info' file.

When use a bluetoothctl 'pair' command, the connection is established, with info:

[CHG] Device <device mac> ServicesResolved: yes
[CHG] Device <device mac> Paired: yes
Pairing successful

and the [LinkKey] section is on the 'info' file.

Revision history for this message
Sebastien Bacher (seb128) wrote :

We believe that should be fixed by those commits

* https://gitlab.gnome.org/GNOME/gnome-bluetooth/commit/e807cbd8
 client: Fix bluetooth_client_set_trusted() not working

(that would probably explain the LinkKey section missing from the config)

* https://gitlab.gnome.org/GNOME/gnome-bluetooth/commit/4f1e0b35
' lib: Always try to pair pointer devices '

Those fixes are in 3.32 in disco and I've uploaded a bionic SRU now
https://launchpadlibrarian.net/418989286/gnome-bluetooth_3.28.0-2ubuntu0.2_source.changes

(the SRU needs to be reviewed/accepted next)

description: updated
Changed in bluez (Ubuntu):
status: Confirmed → Invalid
importance: Undecided → Low
Changed in gnome-bluetooth (Ubuntu):
importance: Undecided → Low
status: Confirmed → Fix Released
Revision history for this message
John Daniels (pocoz) wrote :

BTLE persition mouse. There were problems with pair and repeated connection.( https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1779413 ) All decided this way: https://gist.github.com/Mygod/f390aabf53cf1406fc71166a47236ebf

Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello dudsen, or anyone else affected,

Accepted gnome-bluetooth into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-bluetooth/3.28.0-2ubuntu0.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gnome-bluetooth (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Accepted. Does it make sense to get this fix into cosmic as well?

Revision history for this message
Sebastien Bacher (seb128) wrote :

Cosmic is neither a lTS nor the current stable, doesn't seem worth spending energy on it at this point

Revision history for this message
Alex Gherghisan (alexghr) wrote :

Hello,

The package in bionic-proposed has fixed the issue for me on Ubuntu 18.04.2 with a Logitech M535 mouse.

After installing the update I had to re-pair the mouse (I was expecting to have to do this anyway). The mouse now connects automatically after:
- waking up the laptop from sleep
- turning the bluetooth mouse off and on

In both instances without the fix I would have had to pair the mouse with the laptop again.

With the proposed fix installed, I discovered no regressions, my other bluetooth peripherals work as expected (previously paired keyboard and headphones connected automatically when turned on).

-Alex

tags: added: verification-done-bionic
removed: verification-needed-bionic
Revision history for this message
Alex Gherghisan (alexghr) wrote :

Sorry, I forgot to add the package version to my previous comment (is there no way to edit a comment?): I've tested with gnome-bluetooth 3.28.0-2ubuntu0.2 from bionic-proposed.

Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for gnome-bluetooth has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-bluetooth - 3.28.0-2ubuntu0.2

---------------
gnome-bluetooth (3.28.0-2ubuntu0.2) bionic; urgency=medium

  * debian/patches/git_set_trusted.patch,
    debian/patches/git_pair_pointer.patch:
    - backport upstream commits to fix marking of device trusted on pairing
      not always working (leading to auto-reconnect not working).
      Always try to pair pointer devices also, that's expected by most
      recent devices, removing the specific list of devices which should
      use the default PIN and do that for all devices (lp: #1779289)

 -- Sebastien Bacher <email address hidden> Fri, 12 Apr 2019 15:06:49 +0200

Changed in gnome-bluetooth (Ubuntu Bionic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.