Skip to content

fix(bluetooth): register BlueZ pairing agent to support device pairing - #8

Open
Counta wants to merge 1 commit into
StatIndet:mainfrom
Counta:fix/bluetooth-pairing-agent
Open

fix(bluetooth): register BlueZ pairing agent to support device pairing#8
Counta wants to merge 1 commit into
StatIndet:mainfrom
Counta:fix/bluetooth-pairing-agent

Conversation

@Counta

@Counta Counta commented Aug 20, 2026

Copy link
Copy Markdown

Summary

Fixes an issue where Bluetooth devices fail to pair from the quick settings panel (Authentication Rejected / Authentication Failed from BlueZ).

Cause

“PIN配对在第二阶段支持”

Solution

  1. Added scripts/system/bluetooth-agent.py which implements a BlueZ pairing agent (DisplayYesNo capability) using python-dbus and GLib mainloop, with automatic re-registration if bluetoothd restarts.
  2. Spawned the agent daemon via Quickshell.Io.Process inside BluetoothService.qml.
  3. Ensured the default adapter's pairable state is enabled on service start.

Testing

  • Tested pairing and connecting with Bluetooth devices on Arch Linux + Niri + Clavis.
  • Verified automatic lifecycle management on shell start/stop.

@StatIndet StatIndet added the bug Something isn't working label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants