Public bug reported:

Steps to reproduce:

* Open the settings app
* enter the Bluetooth settings page
* close the settings app (do not exit the Bluetooth page)

=> device can still be found by other hosts and hciconfig confirms that
ISCAN is still enabled.

As Bluetooth ISCAN mode consumes a significant amount of battery, ISCAN
mode should be disabled when the app is closed or inactive.

>From the bluez docs:

  boolean Discoverable [readwrite]

   Switch an adapter to discoverable or non-discoverable
   to either make it visible or hide it. This is a global
   setting and should only be used by the settings
   application.

   If the DiscoverableTimeout is set to a non-zero
   value then the system will set this value back to
   false after the timer expired.

So it would seem to me the best approach would be to pass a non-zero
value for DiscoverableTimeout, something like 30 secs, so that the stack
disables ISCAN mode on it's own if the ui isn't actively calling this
again every 30 secs.

** Affects: ubuntu-system-settings (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Steps to reproduce:
  
  * Open the settings app
  * enter the Bluetooth settings page
  * close the settings app (do not exit the Bluetooth page)
  
- => device can still be found by other hosts and hcitool confirms that
+ => device can still be found by other hosts and hciconfig confirms that
  ISCAN is still enabled.
  
  As Bluetooth ISCAN mode consumes a significant amount of battery, ISCAN
  mode should be disabled when the app is closed or inactive.
  
  From the bluez docs:
  
-                 boolean Discoverable [readwrite]
+   boolean Discoverable [readwrite]
  
-                       Switch an adapter to discoverable or non-discoverable
-                       to either make it visible or hide it. This is a global
-                       setting and should only be used by the settings
-                       application.
+    Switch an adapter to discoverable or non-discoverable
+    to either make it visible or hide it. This is a global
+    setting and should only be used by the settings
+    application.
  
-                       If the DiscoverableTimeout is set to a non-zero
-                       value then the system will set this value back to
-                       false after the timer expired.
+    If the DiscoverableTimeout is set to a non-zero
+    value then the system will set this value back to
+    false after the timer expired.
  
- 
- So it would seem to me the best approach would be to pass a non-zero value 
for DiscoverableTimeout, something like 30 secs, so that the stack disables 
ISCAN mode on it's own if the ui isn't actively calling this again every 30 
secs.
+ So it would seem to me the best approach would be to pass a non-zero
+ value for DiscoverableTimeout, something like 30 secs, so that the stack
+ disables ISCAN mode on it's own if the ui isn't actively calling this
+ again every 30 secs.

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

Title:
  Bluetooth kept visible if page is not closed properly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-system-settings/+bug/1424202/+subscriptions

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

Reply via email to