Skip to content

BlueZ is not exposing an LE bearer, so notifications are unavailable #303

Closed

Description

@mrprintcu

What happened

I am astonished at, and grateful for, your ability to wring this useful app out of Applesauce and Bluetooth protocols! I got this to work on a very old HP laptop running an older version of Linux Mint, a 2006 iMac running an older version of Linux Mint, an older Mac Mini running the latest version of Linux Mint. But I have been completely unable to get it to work reliably in my production machine described below. I have been around the barn with Perplexity.ai and Grok (which were very helpful) but have not succeeded.

After writing the report below, I just looked at Berna-L's report and your response. I get "Type=5". It looks like I need to order the ASUS USB-BT600, and you might want to add the Broadcom device to your "naughty" list.

Old Mac Mini
Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz
Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
[Also tried TP-Link UB500 dongle with same result]

Note the inconsistency: "Notifications" checked, but message: "Connected. BlueZ is not exposing an LE bearer, so notifications are unavailable"
Oddly, notifications are actually working, but if I take my iPhone out of Bluetooth range and back, notifications ends up unchecked after pairing, and messages cannot be sent or received.
Image

How did you install Tether?

Debian or Ubuntu package

Output of tether --version

0.3.2

Distribution, init system, desktop

Linux Mint 22.3 Zena, Ubuntu 24.04

Output of tether --bt-status and tether --bt-setup

> tether --bt-status
Mode:           full
Bearer API:     unknown
Adapter:        hci0  powered=yes central=yes peripheral=yes advertising=yes class=ok
                secure-connections=on
Bond:           BR/EDR, notifications live
Notifications:  mirroring on
Tether:         connecting
  hci0   64:5A:ED:ED:B7:78  maranatha  <- in use
> tether --bt-setup
Bluetooth setup is complete. Nothing to do.

BlueZ version

No response

iPhone model and iOS version

iPhone 16, iOS 26.5

Logs

Activity

  1. added
    bug
    on Nov 2, 2026
  2. zackb commented on Nov 3, 2026

    @zackb
    Owner

    Thanks for the kind words and the detailed report!

    Type=5 confirms the Mac Mini's Broadcom adapter paired without "Secure Connections", so it can't do the LE keys that notifications need. UB500 is the same story (#255, #301). The ASUS USB-BT600 worked in #255. After plugging one in, run tether --bt-adapter hciX (where X is the right device index), forget this computer on the iPhone, pair again, and check for Type=7 or Type=8.

    Kinda funny that the notifications work some of the time, think I know why Ubuntu 24.04 has BlueZ 5.72, which doesn't expose the LE bearer API (that's the Bearer API: unknown line). This makes tether unable to tell whether the bond has LE or not. My guess is the iPhone set up a separate LE link that works until it drops and then doesn't come back. That would explain both the checked box next to the "unavailable" message and notifications going away after you leave range. 0.3.3 rewords that message to point at the adapter instead of BlueZ.

    Messages failing after you come back into range is a different problem. messages use Bluetooth Classic, not LE, so the adapter shouldn't break them. Could you send:

    1. cat /sys/class/bluetooth/hci0/device/modalias, so I can add this Broadcom chip to the known-bad list.
    2. ~/.local/state/tether/tetherd.log covering one walk out of range and back, up to the point where messages stop working.
    3. bluetoothctl --version

    If you have time that info would really help.

    Thanks again for reporting!

  3. mrprintcu commented on Nov 4, 2026

    @mrprintcu
    Author

    Thanks for your quick reply!

    I'm expecting the ASUS USB-RT600 Friday.

    maranatha> cat /sys/class/bluetooth/hci0/device/modalias
    usb:v05ACp8289d0150dcFFdsc01dp01icFFisc01ip01in00
    maranatha> bluetoothctl --version
    bluetoothctl: 5.87

    Tether log for today and a little bit of yesterday is attached.

    At about [2026-11-03 14:32:30.241] I "forgot" both ends and re-paired. This restored the "check" for Notifications in Tether. A test message from Tether worked (at 14:35).

    I then took a walk until my iPhone showed "Not Connected".

    I walked back, and my iPhone showed "Connected", but Tether had Notifications un-checked.

    I did another test message, and it worked (at 14:38) - oddly much faster than the first test.

    Let me know if I can help further.

    tetherd.log

  4. zackb commented on Nov 5, 2026

    @zackb
    Owner

    HUH! This looks like notifications (ANCS) coming over Bluetooth Classic... which I thought was impossible. Big news. I had to look at the spec and it says (G)ATT can indeed run over BR/EDR but there has never been evidence of Apple doing that, and their spec only talks about LE.

    If I can trouble you for a bit more info:

    1. sudo cat /var/lib/bluetooth/<adapter>/<iPhone>/info. If it has a [LongTermKey] or [PeripheralLongTermKey] section, there was a separate LE pairing, so ANCS was on LE.
    2. sudo btmon while pairing until notifications turn on. The capture will show whether ATT runs on an LE or a BR/EDR connection.
    3. /etc/bluetooth/main.conf: whether Experimental is on. On 5.87, Bearer API: unknown points that way.

    I've never seen ANCS over BR/EDR before (Type=5) and it is really interesting.

    One note on testing: a message sent from tether goes through the Messages (SMS/iMessage) connection, not notifications, so it working doesn't say anything about notifications. To test notifications, have something arrive on the phone (any app notification) and check that a popup shows on the desktop. I know, it's confusing

    Messages = SMS/iMessage (BR/EDR and the "MAP" protocol)
    Notifications = "System Notifications" (LE nad the ANCS protocol)

    Both do desktop popups.

    Also, my BlueZ version assumption was wrong. You are on the right version.

    Separately, Thanks to this log I did find a bug relating to coming back in range. In some cases ANCS is not retried at the same time BR/EDR is: #310

    That'll go out in 0.3.4

    Thanks a lot for the useful feedback!

  5. mrprintcu commented on Nov 5, 2026

    @mrprintcu
    Author

    Happy to help! I worked as a non-academic IT guy for Cornell University for 38 years. Started with teletypes and paper tape. Linux and Perl. HTML and SQL.

    Yes, I see notification popups on my desktop.

    cat /var/lib/bluetooth/64:5A:ED:ED:B7:78/E8:C3:86:11:7B:81/info

    [General]
    Name=Rcc2’s iPhone 16
    Class=0x7a020c
    SupportedTechnologies=BR/EDR;
    Trusted=true
    Blocked=false
    CablePairing=false
    Services=00000000-deca-fade-deca-deafdecacafe;00001000-0000-1000-8000-00805f9b34fb;0000110a-0000-1000-8000-00805f9b34fb;0000110c-0000-1000-8000-00805f9b34fb;0000110e-0000-1000-8000-00805f9b34fb;00001116-0000-1000-8000-00805f9b34fb;0000111f-0000-1000-8000-00805f9b34fb;0000112f-0000-1000-8000-00805f9b34fb;00001132-0000-1000-8000-00805f9b34fb;00001133-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;00001800-0000-1000-8000-00805f9b34fb;00001801-0000-1000-8000-00805f9b34fb;00001805-0000-1000-8000-00805f9b34fb;0000180a-0000-1000-8000-00805f9b34fb;0000180f-0000-1000-8000-00805f9b34fb;02030302-1d19-415f-86f2-22a2106a0a77;1ff31936-572e-4b36-a2bf-b2409b1aa6f4;2d8d2466-e14d-451c-88bc-7301abea291a;7905f431-b5ce-4e99-a40f-4b1e122d00d0;89d3502b-0f36-433a-8ef4-c502ad55f8dc;9fa480e0-4967-4542-9390-d343dc5d04ae;d0611e78-bbb4-4591-a5f8-487910ae4366;
    Appearance=0x0040

    [DeviceID]
    Source=1
    Vendor=76
    Product=30725
    Version=6736

    [LinkKey]
    Key=DA4D201C00B7EC9517A639F21D88151E
    Type=5
    PINLength=0

    [ServiceChanged]
    CCC_BR/EDR=2

    /etc/bluetooth/main.conf is attached.

    I have attached btmon.log. There's probably a lot of PII in there, but I'm trusting you.

  6. zackb commented on Nov 5, 2026

    @zackb
    Owner

    Thanks, this is great, and 38 years from paper tape to robots writing all the code is wild! I'm not quite paper tape but not too far behind you :)

    The btmon capture settles it for 100% sure. There's no LE traffic in it at all. Right after pairing, the iPhone opens an ATT channel over Bluetooth Classic, and every notification event after that comes in over that Classic connection. The info file agrees: Classic only, no LE keys. So the iPhone does send notifications over Classic, at least on iOS 26.5 with your adapter.

    That's new to me and contradicts a bunch of docs and assumptions i've made.

    That also means the fix in #310 matters more for you than I thought. Once the phone comes back over Classic, tether will try notifications again. I'm curious whether the iPhone reopens that channel on its own after a walk, so if you try 0.3.4 on the built-in adapter before the ASUS arrives, a walk test would be very useful. (you've done plenty so don't feel obligated!)

    Mistake I made: the capture does includes notification contents and app names. If you'd like, edit your comment to remove the btmon link. My apologies!

    This is a huge piece of information and I really appreciate the help!

  7. mrprintcu commented on Nov 5, 2026

    @mrprintcu
    Author

    Happy to help! BTW, since you mention robots, after retiring I was the machine shop mentor for this robotics team. My grandson was a member. We're in some of the photos. More fun than should be legally allowed!
    https://explodingbacon.com/

    I can't figure out how to delete the capture log.

    What am I doing wrong here?

    sudo apt install ./tether_0.3.3_amd64.ubuntu24.04.deb
    [sudo] password for gibbie:
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Note, selecting 'tether' instead of './tether_0.3.3_amd64.ubuntu24.04.deb'
    The following packages will be upgraded:
    tether
    1 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
    Need to get 0 B/9,848 kB of archives.
    After this operation, 43.0 kB of additional disk space will be used.
    Get:1 /home/gibbie/Documents/src/tether/tether_0.3.3_amd64.ubuntu24.04.deb tether amd64 0.3.3 [9,848 kB]
    (Reading database… 571176 files and directories currently installed.)
    Preparing to unpack …/tether_0.3.3_amd64.ubuntu24.04.deb…
    Unpacking tether (0.3.3) over (0.3.2)…
    Setting up tether (0.3.3)…
    Processing triggers for desktop-file-utils (0.27-2build1)…
    Processing triggers for hicolor-icon-theme (0.17-2)…
    Processing triggers for gnome-menus (3.36.0-1.1ubuntu3)…
    Processing triggers for ufw (0.36.2-6)…
    Processing triggers for man-db (2.12.0-4build2)…
    Processing triggers for mailcap (3.70+nmu1ubuntu1.24.04.1)…
    N: Download is performed unsandboxed as root as file '/home/gibbie/Documents/src/tether/tether_0.3.3_amd64.ubuntu24.04.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

    Sadly, it looks like a broke something. I installed 0.3.3 and my iPhone was unable to see anything to pair with. I reinstalled 0.3.2 and still can't see anything to pair to. I probably need to restart something.

  8. mrprintcu commented on Nov 5, 2026

    @mrprintcu
    Author

    Belay that. I had forgotten how tether works.

    I'm back on 0.3.3. It pairs, but it keeps wanting me to "sudo systemctl enable --now tether-btclass@hci0".

    When I text myself from my iPhone, I get no tether popup, and tether doesn't see the text.

  9. zackb commented on Nov 6, 2026

    @zackb
    Owner

    That looks so much cooler than cub scouts :)

    I've released https://github.com/zackb/tether/releases/tag/v0.3.4 which has proper support for ANCS over classic. Let's give that a try and see if it fixes the issue.

    It sounds like blueooth got "wedged" in the kernel. I've seen that happen alot in BlueZ, it's quite flaky, but iOS actually has some similar issues. I'd "forget" on both sides if applicable, install 0.3.4, reboot, toggle BT on the iPhone and give it another run.

    Please re-open if it persists.

    Thanks again for all the attention.

  10. g1bwt commented on Nov 6, 2026

    @g1bwt

    @zackb Running version 0.3.5 and I think that this change has had a massive benefit to the BT connectivity. Every time I left the PC with my iPhone it would lose the Notifications link. Now, I have been away from the PC for at least an hour several times and every time I can back the link was still active. Thanks.

  11. mrprintcu commented on Nov 6, 2026

    @mrprintcu
    Author

    Having a bit of trouble with the ASUS USB-BT600 order from Amazon via "the ASUS Store". Ordered on 11/2. Delivery promised for 11/6-10. UPS tracking on 11/6 still has it in Canada (I'm in Orlando) and predicts delivery on 11/12.

  12. mrprintcu commented on Nov 10, 2026

    @mrprintcu
    Author

    ASUS USB-BT600 arrived. I disabled the Mac Mini internal Bluetooth device and enabled the ASUS. It took several tries (which I attribute to the myth of deterministic behavior), but "Notifications" in Tether seems to be reliably "checked". And if I go away and come back, it gets checked.

    So it's good.

    Or maybe not. I can text to myself from Tether and my phone gets it immediately. But when I text from my phone to myself, Tether never gets it. This is worse than with the Mac Mini internal Bluetooth device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfix-needs-validation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions