[Bug 1904265] Re: Deterministic bluetooth disconnects after login and bluetooth restart

2024-02-26 Thread g
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// 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//.
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// 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:
-  USERPID 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=
-  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-firmware1.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 

[Bug 1904265] Re: Deterministic bluetooth disconnects after login and bluetooth restart

2020-11-23 Thread Kai-Heng Feng
Let's start from test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10-rc4/amd64/

However, we quite likely needs the following patch series, which isn't in 
mainline yet:
https://lore.kernel.org/linux-wireless/2020022108.9834-1-pks...@realtek.com/

-- 
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

[Bug 1904265] Re: Deterministic bluetooth disconnects after login and bluetooth restart

2020-11-23 Thread g
Thanks for pointing to the possible duplicate. These two bugs might be
related, still I think there are different. The one I've reported here
appears always after restarting the system or restarting the bluetooth
controller. However, the other requires a suspend/resume to get the
bluetooth connection back working. Thus I think they are not the same.

** 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 18.04
+ 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
+ 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:
-  USERPID ACCESS COMMAND
-  /dev/snd/controlC0:  ubuntu 5435 F pulseaudio
-  /dev/snd/controlC2:  ubuntu 5435 F pulseaudio
-  /dev/snd/controlC1:  ubuntu 5435 F pulseaudio
+  USERPID 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=
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  TERM=xterm-256color
+  PATH=(custom, no user)
+  XDG_RUNTIME_DIR=
+  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-firmware1.187.2
+  linux-restricted-modules-5.4.0-42-generic N/A
+  linux-backports-modules-5.4.0-42-generic  N/A
+  linux-firmware1.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
  

[Bug 1904265] Re: Deterministic bluetooth disconnects after login and bluetooth restart

2020-11-23 Thread Kai-Heng Feng
Possible dupe of LP: #1904069.

-- 
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

[Bug 1904265] Re: Deterministic bluetooth disconnects after login and bluetooth restart

2020-11-14 Thread g
apport information

** Tags added: apport-collected focal

** 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 18.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 :-)
+ 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:
+  USERPID 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=
+  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-firmware1.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

** Attachment added: "AlsaInfo.txt"
   
https://bugs.launchpad.net/bugs/1904265/+attachment/5434304/+files/AlsaInfo.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: