https://bugs.kde.org/show_bug.cgi?id=459118

            Bug ID: 459118
           Summary: nuntius produce endless attempts by bluez to reconnect
                    to bluetooth headset and speaker
           Product: kdeconnect
           Version: unspecified
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: common
          Assignee: albertv...@gmail.com
          Reporter: asdf...@manlymail.net
  Target Milestone: ---

Created attachment 152059
  --> https://bugs.kde.org/attachment.cgi?id=152059&action=edit
sender=:1.59 nuntius

### SUMMARY

After system upgrade **kdeconnect** brought the **nuntius** into my autostart.  
I found it produce spam of endless attempts by bluez to reconnect to my
bluetooth headset and speaker.   
Even if bluetooth is disabled and bluetooth headset and speaker are turned off. 
Which leads to endles failure attempts to reconnect bluetooth headset and
speaker after i disconnect headset or speaker from my laptop.  
Also it leads to endless desktop notifications of connect/disconnect by Blueman
applet.

### Issue anamnes:  
https://github.com/blueman-project/blueman/issues/1854
https://github.com/bluez/bluez/issues/392

**syslog**:
```
...
/var/log/syslog:158695:Sep 13 22:38:58 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158705:Sep 13 22:39:03 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
/var/log/syslog:158715:Sep 13 22:39:14 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158716:Sep 13 22:39:19 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
/var/log/syslog:158725:Sep 13 22:39:30 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158734:Sep 13 22:39:35 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
/var/log/syslog:158743:Sep 13 22:39:46 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158744:Sep 13 22:39:51 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
/var/log/syslog:158753:Sep 13 22:40:02 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158762:Sep 13 22:40:07 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
/var/log/syslog:158771:Sep 13 22:40:18 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158772:Sep 13 22:40:23 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
/var/log/syslog:158781:Sep 13 22:40:34 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158790:Sep 13 22:40:39 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
/var/log/syslog:158799:Sep 13 22:40:50 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158808:Sep 13 22:40:55 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
/var/log/syslog:158820:Sep 13 22:41:06 smarttop bluetoothd[1193]:
src/device.c:search_cb() F4:4E:FD:03:80:98: error updating services: Host is
down (112)
/var/log/syslog:158822:Sep 13 22:41:11 smarttop bluetoothd[1193]:
src/device.c:search_cb() 00:00:AB:CE:47:FE: error updating services: Host is
down (112)
...
```

**log of **:  
`sudo dbus-monitor --system destination=org.bluez,interface=org.bluez.Device1`: 
```
...
method call time=1663162202.133755 sender=:1.59 -> destination=org.bluez
serial=63812 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
method call time=1663162212.133786 sender=:1.59 -> destination=org.bluez
serial=63820 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
method call time=1663162222.135780 sender=:1.59 -> destination=org.bluez
serial=63828 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
method call time=1663162232.133598 sender=:1.59 -> destination=org.bluez
serial=63836 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
method call time=1663162242.133195 sender=:1.59 -> destination=org.bluez
serial=63844 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
method call time=1663162252.133746 sender=:1.59 -> destination=org.bluez
serial=63852 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
method call time=1663162262.133871 sender=:1.59 -> destination=org.bluez
serial=63860 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
method call time=1663162272.133593 sender=:1.59 -> destination=org.bluez
serial=63868 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
method call time=1663162282.133625 sender=:1.59 -> destination=org.bluez
serial=63876 path=/org/bluez/hci0/dev_00_00_AB_CE_47_FE;
interface=org.bluez.Device1; member=ConnectProfile
   string "00001101-0000-1000-8000-00805f9b34fb"
...
```

**btmon log**:  
$ sudo btmon > [btmon.log](https://fars.ee/tCbE.wvwpWU)  
$ sudo btmon -w >
[btmon.btsnoop.gz](https://github.com/bluez/bluez/files/9561076/btmon.btsnoop.gz)

I found the villain via `d-feet` by search `:1.59`
it is **nuntius**:
https://user-images.githubusercontent.com/2188215/190208051-bed820ca-f892-4f47-b6ee-1a47d8b29af0.png
https://user-images.githubusercontent.com/2188215/190208078-04ec12fd-aa46-47cf-92c9-060f40e5c0d0.png

If i kill the nuntius process, the endless spamming of notifications and
attempts to reconnect will gone.

### STEPS TO REPRODUCE
1. install kdeconnect and nuntius
2. connect and pair bluetooth headset/speaker
3. disconnect bluetooth headset/speaker

### OBSERVED RESULT
Endless attempts by bluez to reconnect the bluetooth headset and speaker,   
even if bluetooth adapter is disabled and bluetooth headset and speaker are
turned off.  
Endless desktop notifications of connect/disconnect by Blueman applet right
after headset/speaker disconnect  

### EXPECTED RESULT
No endless attempts by bluez to reconnect the bluetooth headset and speaker.  
No endless desktop notifications of connect/disconnect by Blueman applet.

### SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Pop_Os! 22.04
(available in About System)
KDE Plasma Version: libkf5plasma 5 5.92.0-0ubuntu1, libkf5plasmaquick5 5
5.92.0-0ubuntu1, plasma-framework 5.92.0-0ubuntu1
KDE Frameworks Version: -
Qt Version: libqt5* 5.15.3 and some 5.15.9 libs

### ADDITIONAL INFORMATION
xfce Version: 4.17
kdeconnect Version: 21.12.3-0ubuntu1
nuntius Version 0.2.0-5build1

I guess the same: https://bugs.kde.org/show_bug.cgi?id=417421

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to