Skip to content

bluetooth: harden interactive controller power handling - #560

Merged
Bhargav-qcom (bhargav0610) merged 1 commit into
qualcomm-linux:mainfrom
smuppand:fix/bluetooth-interactive-power-handling
Sep 1, 2026
Merged

bluetooth: harden interactive controller power handling#560
Bhargav-qcom (bhargav0610) merged 1 commit into
qualcomm-linux:mainfrom
smuppand:fix/bluetooth-interactive-power-handling

Conversation

@smuppand

@smuppand Srikanth Muppandam (smuppand) commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #559
BlueZ on Debian and Ubuntu can ignore or defer controller power requests when bluetoothctl is driven through a plain stdin pipe, although the same command succeeds in a manual interactive session.

  • Use an expect PTY for Bluetooth power operations when available.
  • Wait for BlueZ’s power-change acknowledgement and require stable Powered=yes/no verification.
  • Add bounded power request and verification retries with diagnostics.
  • Try the PTY-based scanner before the existing scan fallback.
  • Ensure rfkill and expect are provisioned through the package provider on Debian and Ubuntu.
  • Preserve Yocto’s default-controller and non-PTY fallback behavior.

BlueZ on Debian and Ubuntu can ignore or defer power requests when bluetoothctl is driven through a plain stdin pipe, even though the same command succeeds in a manual terminal session. Use an expect PTY when available, wait for the BlueZ acknowledgement, and require a stable Powered state before declaring success.

Prepare rfkill and expect through the package provider on Debian-family images, and use the PTY scanner as the first scan fallback. Keep the established default-controller and non-PTY fallbacks for Yocto and minimal images.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@bhargav0610
Bhargav-qcom (bhargav0610) merged commit 6b2c826 into qualcomm-linux:main Sep 1, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Observing BT test failures in Ubuntu/Debian

3 participants