Merge lp://staging/~ken-vandine/ubuntu-system-settings/bluetooth_lp1535660 into lp://staging/ubuntu-system-settings

Proposed by Ken VanDine
Status: Merged
Approved by: Ken VanDine
Approved revision: 1585
Merged at revision: 1589
Proposed branch: lp://staging/~ken-vandine/ubuntu-system-settings/bluetooth_lp1535660
Merge into: lp://staging/ubuntu-system-settings
Diff against target: 82 lines (+1/-31)
4 files modified
plugins/bluetooth/DevicePage.qml (+1/-1)
plugins/bluetooth/bluetooth.cpp (+0/-20)
plugins/bluetooth/bluetooth.h (+0/-1)
tests/plugins/bluetooth/tst_bluetooth.cpp (+0/-9)
To merge this branch: bzr merge lp://staging/~ken-vandine/ubuntu-system-settings/bluetooth_lp1535660
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
Matthew Paul Thomas (community) design Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+283310@code.staging.launchpad.net

Commit message

Allow pairing regardless of type

Description of the change

Allow pairing regardless of type

To post a comment you must log in.
Revision history for this message
Charles Kerr (charlesk) wrote :

:)

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks but the spec states

"If a device is of a type that Ubuntu Touch does not currently work with, it should be present (so that you don’t think there’s a problem with the hardware) but greyed out and with a ⛔ no entry icon (bug 1419866)."

don't we need that enum to define what devices are working or not?

review: Needs Fixing
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Sorry, this isn't meant to be merged yet, just getting debs.

Although we've been talking about dropping isSupportedType completely, with new LE devices we never know the type before they are connected. We won't be able to support those as we have things now.

1585. By Ken VanDine

Remove all isSupportedType logic

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Who is "we"? I haven't seen anything about needing to change the design of Bluetooth settings, or anything about devices being misidentified other than bug 1521518.

What is it about Bluetooth LE that makes a device unidentifiable?

If we don't know what type a device is, how can we do anything useful with it? How do we decide whether to use it as a mouse, a storage device, or a loudspeaker?

In the meantime, I'm disapproving of this (however much that counts) because it would lead to more bugs like bug 1419866.

review: Disapprove (design)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Approved per discussion today.

review: Approve (design)
Revision history for this message
Sebastien Bacher (seb128) wrote :

it's a bit frustrating that this mp got a good explanation of issues with the change and then is changed to "approved" because some private discussion happened somewhere, could you at least update the public record explaining what changed the status compared to the previous rejected comment?
meanwhile I'm not convinced it's a good move so marking the change as disapproved

review: Disapprove
Revision history for this message
Ken VanDine (ken-vandine) wrote :

> it's a bit frustrating that this mp got a good explanation of issues with the
> change and then is changed to "approved" because some private discussion
> happened somewhere, could you at least update the public record explaining
> what changed the status compared to the previous rejected comment?
> meanwhile I'm not convinced it's a good move so marking the change as
> disapproved

Sorry about that, it was discussed in our settings weekly meeting today. There are two arguments in favor of this change:

1) New BTLE devices appear to be of type Network until after they are paired, once paired we know the specific type. Specifically we have people with new mice and keyboards that they can't pair.

2) Our criteria for what is supported is really based on what we have a profile for and can be used with our existing stack. However, who's to say in the future there might not be third party apps that can make use of some of these other types? Allowing these types to be paired should work fine, even if there is no app or backend that uses the device yet.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks for the update, that makes sense, it still feels suboptimal that we can't know the type before pairing and so display the right icon, but if that's what the bluetooth stack provides us then it is what it is...

review: Approve
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

While researching this I had a quick browse through the Bluetooth LE HID spec. Those devices, at least, can provide an icon specific to the device. I don't know how many of them do, and whether they're high-quality enough to bother with. But if the answers are "most" and "usually", we might end up rarely showing the device type icon anyway.

1586. By Ken VanDine

merged trunk

1587. By Ken VanDine

Fixed syntax error

1588. By Ken VanDine

fixed the connect button, the logic to enable it was no longer correct

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches