New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 679287 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Chrome
Pri: 3
Type: Feature



Sign in to add a comment

Allow Chrome to specify which Bluetooth adapter to use

Project Member Reported by fbeaufort@chromium.org, Jan 9 2017

Issue description

It would be nice if there were a way to specify which Bluetooth adapter to use  in Chrome.

According to http://forum.espruino.com/conversations/297684/, it looks like some users would love that feature. For now though, Chrome only uses the first adapter.

See https://chromium.googlesource.com/chromium/src/+/15b1f5307b13a30002693aa1907819c447db4954/device/bluetooth/bluez/bluetooth_adapter_bluez.cc#259
 
We could alternatively use something like this:

Use the first powered adapter when there are multiples.
This would give an option to users to power down one adapter and power up the one they want. This is not optimal for sure but at least they would be able to use from Chrome the adapter they want.

if (adapters.length > 0) {

  var defaultAdapter = adapters[0];
 
  if (adapters.length > 1) {
    for (adapter in adapters) {
      if (adapter.powered === true ) {
        defaultAdapter = adapter;
        break;
      }
    }
  }

  setAdapter(defaultAdapter);
}
Labels: OS-Linux

Comment 3 by st...@chromium.org, Jan 9 2017

Cc: mcchou@chromium.org st...@chromium.org hennessywill@chromium.org snanda@chromium.org
Status: Untriaged (was: Unconfirmed)

Comment 5 by st...@chromium.org, Mar 3 2017

Cc: r...@chromium.org

Comment 6 by st...@chromium.org, Mar 3 2017

Cc: -st...@chromium.org
Cc: josephsih@chromium.org

Comment 8 by mcchou@chromium.org, Oct 20 2017

Status: Available (was: Untriaged)
Cc: -hennessywill@chromium.org kobbad@chromium.org rjahagir@chromium.org
Cc: -kobbad@chromium.org dwmclary@chromium.org

Sign in to add a comment