Skip to content

Investigate backporting H700 BlueALSA volume fixes to TrimUI #42

Open

Description

@pvaibhav

Investigate backporting H700’s Bluetooth volume handling to tg5040/tg5050:

  • Explicitly select the BlueALSA mixer with amixer -D bluealsa for control discovery and volume updates.
  • Handle controls that appear shortly after connection; H700 currently retries discovery.
  • Test AirPods 4 with ANC and several other headphones, including reconnect, boot, and sleep/wake. Check speaker/USB DAC routing too.

The H700 changes addressed AirPods starting at zero volume. Verify the behavior on TrimUI before changing those platforms.

Review comments:
LoveRetro#807 (comment)
LoveRetro#807 (comment)

Activity

  1. jan-wir commented on Sep 17, 2026

    @jan-wir

    Ran into this on a TrimUI Brick (NextUI 20260719, bluez 5.78, bluealsa 4.1.0) with AirPods Pro. They pair and connect fine but there's just nothing to hear. A different pair of headphones (AIAIAI TMA-2) works on the same box, which sent me down a few wrong paths first (codec, sniff mode, WiFi coexistence – none of it).

    What it turned out to be, at least here: the AirPods come up with their AVRCP absolute volume at 0 and wait for the source to set it. With bluealsa -p a2dp-source as started in bt_init.sh, the volume writes from msettings only change bluealsa's software gain, so the AirPods never get told anything. Reading MediaTransport1.Volume over dbus gave 0; setting it to 100 made them audible right away, and btmon shows the SetAbsoluteVolume being accepted.

    Works for me with two extra flags on the bluealsa line in .system/tg5040/etc/bluetooth/bt_init.sh:

    bluealsa -p a2dp-source --a2dp-volume --initial-volume=70 &
    After that the volume keys control the AirPods themselves and they come up audible on connect. The AVRCP channel appears a few seconds after the A2DP link, so a volume write done immediately after connect can get lost – probably what the retry logic in the H700 changes is about. Only tested on the Brick, not a Smart Pro.

  2. jan-wir commented on Sep 17, 2026

    @jan-wir

    Small correction to the above: they don't actually come up audible on connect – a volume key press is still needed the first time.

  3. pvaibhav commented on Sep 18, 2026

    @pvaibhav
    OwnerAuthor

    @jan-wir yep I encountered this also last year. After the H700 is merged upstream I will look into this. That's why I created this tracking task.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions