elementary / wingpanel-indicator-bluetooth

Wingpanel Bluetooth Indicator
GNU Lesser General Public License v2.1
20 stars 13 forks source link

Indicator popover shows discovered, unpaired devices when system BT scan is on #155

Open casasfernando opened 3 years ago

casasfernando commented 3 years ago

What Happened

I'm not sure if this is the right behavior or not, this is why I'm opening this issue. I noticed this while running an application that use the system BT adapter to scan for BT BLE beacons using Bluez+D-Bus. When the system BT adapter scan is on (normal or low energy mode), discovered but unpaired devices are listed in the indicator popover menu. The same behavior can be reproduced by running bluetoothctl in the shell and executing the "scan on" command to start scanning for BT devices nearby.

Expected Behavior

Only paired devices (connected or not) are listed in the indicator popover at any point in time.

Steps to Reproduce

  1. Open Terminal.
  2. Execute: bluetoothctl
  3. Start scanning for new devices. In bluetoothctl prompt execute: scan on
  4. Wait for a few seconds while new devices are being discovered
  5. Click on the BT indicator.
  6. Discovered but unpaired devices are listed with the BT icon
  7. To stop scanning, go back to the Terminal, and in the bluetoothctl prompt execute: scan off

Logs

Platform Information

elementary OS 5.1.7 Hera (up-to-date) wingpanel-indicator-bluetooth 2.1.6+r417+pkg28~ubuntu5.1.7.1

andirsun commented 3 years ago

I think this bug is fixes in elementary os 6. Im not able to reproduce it. Screenshot from 2021-06-15 16-34-18 The indicator only show the paired devices.

casasfernando commented 3 years ago

That's strange. I installed today elementary OS 6 beta 2 and I observe the same behavior. If I go to Settings -> Bluetooth the system will start discovering devices and if while discovering I click on the indicator I see this:

Screenshot from 2021-06-17 23-20-12@2x

All the discovered devices (but not paired) are listed in the indicator as well. This is a new laptop with a fresh install of eOS 6 beta 2 done this morning.