It seems as I found a permanent fix. In case anyone having the same
issue, this approach fixed it for me:

1. Unpair the mouse in Windows, i.e. delete it inside the Bluetooth settings. 
This will delete the respective keys in the Windows registry, too.
2. Unpair the mouse in Ubuntu, i.e. revoke the connection inside the settings 
menu. Thereafter, check whether the respective directory inside 
/var/lib/bluetooth/<XX:XX:XX:XX:XX:XX>/<Device> still exists and if so, delete 
it (requires root privileges).
3. Reboot Ubuntu.
4. Repair the mouse in Ubuntu, this will create a new directory inside 
/var/lib/bluetooth/<XX:XX:XX:XX:XX:XX>/.
5. Verify that the connection works after rebooting / restarting the Bluetooth 
service without any freezes.
6. Thereafter, start Windows and repair the mouse there, too. This of course 
will overwrite Ubuntu's setting, but the directory and the configuration files 
exists, only the keys will become invalid by the Windows pairing.
7. Verify that the mouse works fine in Windows, too, in particular after 
rebooting etc.
8. Restart Ubuntu and adjust the configuration files accordingly, i.e. transfer 
the keys and maybe rename the directory inside 
/var/lib/bluetooth/<XX:XX:XX:XX:XX:XX>/ accordingly to match the Windows 
configuration (as described in various tutorials).
9. Thereafter, my mouse worked fine with both, Windows and Ubuntu.

** Description changed:

  Hello everyone,
  
  a few months ago I upgraded from 18.04 to 20.04 and since then, I'm into
  some bluetooth connection issues. I'm a KDE user currently using Ubuntu
  5.4.0-53.59-generic 5.4.65, still the reported issue also appears with
  plain ubuntu 20.04, even a clean live USB version of ubuntu 20.04
  reproduces it such that it is independent of any KDE library. I've
  noticed the following bug already a few months ago, still I would like
  to wait and see if it might be resolved with a new kernel update or
  something else. Since it still persists, I now would like to report it
  to the devs. I found no similar reported bug but if it already has been
  reported, I'd like to excuse for reporting a duplicate.
  
  So, I'm using a Logitech bluetooth LE mouse and with ubuntu 18.04
  (actually on any distro based on 18.04 that I tested), everything works
  fine and without any problems. Still with 20.04, I'm into the following
  bug that I would like to report. After starting ubuntu, the bluetooth
  connection to the mouse works (i.e. pointer is moving) and after about
  30-40 seconds it stops moving and freezes for about 10-15 seconds and
  thereafter works again and stays working. The same issue can be
  reproduced by executing (for instance on a live ubuntu)
  
      sudo /etc/init.d/bluetooth restart
  
  which stops the bluetooth connection for a few seconds (as expected),
  immediately it works again but after additional 30-40 seconds, the
  connection breaks for another 10-15 seconds and thereafter works
  flawlessly.
  
  I checked all configuration files from the /etc/bluetooth/ directory,
  everything is the same between 18.04 and 20.04 and even modifying the
  parameters does not change anything at all. As a conclusion of my
  testing I strongly guess it has either anything to do with a different
  kernel version or a with a changed bluetooth library between 18.04 and
  20.04.
  
  So in summary:
  Expected behavior: Bluetooth connection shortly breaks after 'sudo 
/etc/init.d/bluetooth restart' and does not break again after 30-40 seconds (as 
it is the case with ubuntu 18.04)
  Actual behavior: Bluetooth connection breaks again after reestablishing the 
connection
  
- I'm hoping that this issue can easily be fixed and please let me know if you 
need any further information :-)
- ---
- ProblemType: Bug
- ApportVersion: 2.20.11-0ubuntu27.4
- Architecture: amd64
- AudioDevicesInUse:
-  USER        PID ACCESS COMMAND
-  /dev/snd/controlC0:  ubuntu     5435 F.... pulseaudio
-  /dev/snd/controlC2:  ubuntu     5435 F.... pulseaudio
-  /dev/snd/controlC1:  ubuntu     5435 F.... pulseaudio
- CasperMD5CheckResult: pass
- CasperVersion: 1.445.1
- CurrentDesktop: ubuntu:GNOME
- DistroRelease: Ubuntu 20.04
- LiveMediaBuild: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
- MachineType: HP HP Pavilion Gaming Laptop 15-cx0xxx
- NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
- Package: linux (not installed)
- ProcEnviron:
-  TERM=xterm-256color
-  PATH=(custom, no user)
-  XDG_RUNTIME_DIR=<set>
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
- ProcFB: 0 EFI VGA
- ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz 
file=/cdrom/preseed/username.seed maybe-ubiquity quiet splash nomodeset ---
- ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
- RelatedPackageVersions:
-  linux-restricted-modules-5.4.0-42-generic N/A
-  linux-backports-modules-5.4.0-42-generic  N/A
-  linux-firmware                            1.187.2
- Tags:  focal
- Uname: Linux 5.4.0-42-generic x86_64
- UpgradeStatus: No upgrade log present (probably fresh install)
- UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
- _MarkForUpload: True
- dmi.bios.date: 05/07/2019
- dmi.bios.vendor: Insyde
- dmi.bios.version: F.20
- dmi.board.asset.tag: Type2 - Board Asset Tag
- dmi.board.name: 8478
- dmi.board.vendor: HP
- dmi.board.version: 70.55
- dmi.chassis.asset.tag: Chassis Asset Tag
- dmi.chassis.type: 10
- dmi.chassis.vendor: HP
- dmi.chassis.version: Chassis Version
- dmi.modalias: 
dmi:bvnInsyde:bvrF.20:bd05/07/2019:svnHP:pnHPPavilionGamingLaptop15-cx0xxx:pvrType1ProductConfigId:rvnHP:rn8478:rvr70.55:cvnHP:ct10:cvrChassisVersion:
- dmi.product.family: 103C_5335KV HP Pavilion
- dmi.product.name: HP Pavilion Gaming Laptop 15-cx0xxx
- dmi.product.sku: 4CA30EA#ABD
- dmi.product.version: Type1ProductConfigId
- dmi.sys.vendor: HP
+ I'm hoping that this issue can easily be fixed and please let me know if
+ you need any further information :-)

** Attachment removed: "AlsaInfo.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434304/+files/AlsaInfo.txt

** Attachment removed: "CRDA.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434305/+files/CRDA.txt

** Attachment removed: "CurrentDmesg.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434306/+files/CurrentDmesg.txt

** Attachment removed: "IwConfig.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434307/+files/IwConfig.txt

** Attachment removed: "Lspci.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434308/+files/Lspci.txt

** Attachment removed: "Lspci-vt.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434309/+files/Lspci-vt.txt

** Attachment removed: "Lsusb.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434310/+files/Lsusb.txt

** Attachment removed: "Lsusb-t.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434311/+files/Lsusb-t.txt

** Attachment removed: "Lsusb-v.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434312/+files/Lsusb-v.txt

** Attachment removed: "ProcCpuinfo.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434313/+files/ProcCpuinfo.txt

** Attachment removed: "ProcCpuinfoMinimal.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434314/+files/ProcCpuinfoMinimal.txt

** Attachment removed: "ProcInterrupts.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434315/+files/ProcInterrupts.txt

** Attachment removed: "ProcModules.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434316/+files/ProcModules.txt

** Attachment removed: "PulseList.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434317/+files/PulseList.txt

** Attachment removed: "RfKill.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434318/+files/RfKill.txt

** Attachment removed: "UdevDb.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434319/+files/UdevDb.txt

** Attachment removed: "WifiSyslog.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+attachment/5434320/+files/WifiSyslog.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1904265

Title:
  Deterministic bluetooth disconnects after login and bluetooth restart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904265/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to