G2 Bluetooth and Subsurface on Arch

Linus Torvalds torvalds at linux-foundation.org
Thu Oct 12 11:11:11 PDT 2017


On Thu, Oct 12, 2017 at 10:13 AM, Pedro Neves <nevesdiver at gmail.com> wrote:
>
> I'm trying to connect with my new G2 using subsurface
> 4.6.4-720-ge04ef1df1e2b but the download fails with:
>
> Insufficient privileges to open the device LE:00:13:43:54:88:8D Scubapro
> (G2)
>
> I've added myself to lp and uucp groups but still no luck. Does anybody
> knows which groups do I need to add myself to on Arch Linux? Am I missing
> something else?

It's not actually a privilege issue, that's just the general "couldn't
open device" error (which historically with serial ports used to be
about permissions).

Do you get any debug messages when you run subsurface from the command
line? Can you cut-and-paste those into the email?

It *should* say something like the appended (plus a whole lot of
service discovery and then data transfer noise), while the G2 screen
says "connected".

                       Linus

---
qt.bluetooth.bluez: Bluez 5 detected.
qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine
whether a found address is of random or public type.
qt.bluetooth.bluez: Creating QtBluezDiscoveryManager
qt.bluetooth.bluez: Discovered:  "00:13:43:0B:23:7A" "EL001625" Num
UUIDs 4 total device 0 cached RSSI 0 Class 0
qt.bluetooth.bluez: Discovered:  "00:13:43:3B:D1:A0" "G2" Num UUIDs 6
total device 1 cached RSSI 0 Class 0
qt.bluetooth.bluez: Discovered:  "0C:8C:DC:00:04:63" "EON Steel
#p1437019" Num UUIDs 3 total device 2 cached RSSI 0 Class 0
qt.bluetooth.bluez: Discovered:  "F0:73:0A:BA:CD:F9" "Perdix" Num
UUIDs 3 total device 3 cached RSSI 0 Class 0
qt.bluetooth.bluez: Updating RSSI for "00:13:43:3B:D1:A0" QVariant(short, -59)
qt.bluetooth.bluez: void QBluetoothDeviceDiscoveryAgentPrivate::stop()
Starting download from  BT
Starting the thread 0
INFO: FTDI disabled
qt.bluetooth.bluez: Enabling GATT request timeout behavior 20000
qt_ble_open( 00:13:43:3B:D1:A0 )
qt.bluetooth.bluez: Creating default GAP/GATT services
qt.bluetooth.bluez: addresstypeToUse: "Public"
qt.bluetooth.bluez: No settings found for peer device.
qt.bluetooth.bluez: HCI event triggered, type: e
qt.bluetooth.bluez: HCI event triggered, type: e
qt.bluetooth.bluez: HCI event triggered, type: e
qt.bluetooth.bluez: HCI event triggered, type: e
qt.bluetooth.bluez: HCI event triggered, type: f
qt.bluetooth.bluez: HCI event triggered, type: f
qt.bluetooth.bluez: Current l2cp sec level: 1
qt.bluetooth.bluez: Exchanging MTU
connected to the controller for device 00:13:43:3B:D1:A0
  .. discovering services
qt.bluetooth.bluez: Sending read_by_group_type request, startHandle: 1
endHandle: ffff 2800
qt.bluetooth.bluez: Received size: 3 data: "031700"
qt.bluetooth.bluez: Server MTU: 23 resulting mtu: 23
qt.bluetooth.bluez: Received size: 20 data:
"11060100090000180c000f000118100020000a18"
qt.bluetooth.bluez: Found uuid:
"{00001800-0000-1000-8000-00805f9b34fb}" start handle: 1 end handle: 9
....


More information about the subsurface mailing list