I obeserved the dbus method call on Noble with:

   $ sudo dbus-monitor --system "type='method_call'"

For g-c-c, it simply powers on the adapter:

method call time=1727343233.473107 sender=:1.134 -> destination=:1.9 serial=69 
path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=Set
   string "org.bluez.Adapter1"
   string "Powered"
   variant       boolean true

While the proper way to enable scanning is to call the StartDiscovery()
method, as the bluetoothctl does:

method call time=1727343620.537801 sender=:1.141 -> destination=org.bluez 
serial=26 path=/org/bluez/hci0; interface=org.bluez.Adapter1; 
member=SetDiscoveryFilter
   array [
      dict entry(
         string "UUIDs"
         variant             array [
            ]
      )
   ]
method call time=1727343620.537852 sender=:1.141 -> destination=org.bluez 
serial=27 path=/org/bluez/hci0; interface=org.bluez.Adapter1; 
member=StartDiscovery

Also, on Jammy, the g-c-c did enable scanning in the similiar fashion,
with StartDiscovery():

method call time=1727403536.849653 sender=:1.93 -> destination=:1.14 serial=69 
path=/org/bluez/hci0; interface=org.bluez.Adapter1; member=SetDiscoveryFilter
   array [
      dict entry(
         string "Discoverable"
         variant             boolean true
      )
   ]
method call time=1727403536.850196 sender=:1.93 -> destination=:1.14 serial=70 
path=/org/bluez/hci0; interface=org.bluez.Adapter1; member=StartDiscovery

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/2081672

Title:
  Scanning not enabled by the Bluetooth slider

Status in OEM Priority Project:
  New
Status in gnome-control-center package in Ubuntu:
  New

Bug description:
  [Description]

  Since Noble, turning Bluetooth slider on ON after toggling it OFF for
  ~1min seems to only power on and unblock rfkill on the controller, but
  not enable scanning. This makes the "Devices" list shows no devices,
  as if the controller wasn't functioning.

  This is observable on both Dell XPS 13 Plus and HP Elite Book 1040
  x360 with stock Noble image.

  Note that manually executing "scan on" command in the bluetoothctl
  will make scanning in g-c-c back to normal.

  Also note that if leave the Bluetooth slider on, switch to another tab
  in settings, and switch back to the Bluetooth tab, this will somehow
  activate scanning again. New devices will pop up again in the
  "Devices" list.

  [Steps to reproduce]

  1. Open the control center and switch to the Bluetooth tab.
  2. Toggle ON and OFF the Bluetooth slider and leave it at OFF for 1 minutes.
  3. Turn it back on.
  4. At this moment the devices listed "Device" will disappear one by one, and
     eventually no device will present.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2081672/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to