Skip to content

feat(#210): remove hardcoded hci0 bluetooth adapter - #501

Merged
cachebag merged 1 commit into
freedesktop-rs:masterfrom
morehwachege:feat/dynamically-fetch-adapter
Jul 27, 2026
Merged

feat(#210): remove hardcoded hci0 bluetooth adapter#501
cachebag merged 1 commit into
freedesktop-rs:masterfrom
morehwachege:feat/dynamically-fetch-adapter

Conversation

@morehwachege

Copy link
Copy Markdown
Contributor

Closes #210
This issue was my starting point. Identifying the issue as hardcoded hci0 rather than finding the adapter in use on the device. My proposed fix on this PR was to query DBus for the adapter. It could be better or made reusable.

I've not tagged #481 to be closed since I don't completely understand add_and_activate_connection. The changes on this PR do affect core/custom_connection.rs in relation to the asyc bluez_device_path fn

requesting feedback

I'm open to suggestions if there's a more idiomatic or reusable way to discover the active Bluetooth adapter, or if there is a preferred approach within the project for solving this issue.

@cachebag cachebag changed the title [FEAT]: Remove hardcoded hci0 Bluetooth adapter feat(#210): remove hardcoded hci0 bluetooth adapter Jul 16, 2026
@cachebag cachebag added feature New feature or request refactor Change or improve code bluetooth Bluetooth device/adapter management labels Jul 16, 2026

@cachebag cachebag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your help on this! I think you are on the right track actually. Let me know if you have further questions, I am happy to answer them.

Comment thread nmrs/src/util/utils.rs Outdated
Comment thread nmrs/src/util/utils.rs Outdated
Comment thread nmrs/src/util/utils.rs Outdated
Comment thread nmrs/src/util/utils.rs Outdated
Comment thread nmrs/src/util/utils.rs Outdated
@cachebag

Copy link
Copy Markdown
Member

Ping? @morehwachege

@morehwachege

Copy link
Copy Markdown
Contributor Author

@cachebag thanks for the prompt review... Will definitely make the updates and update this pr for a secondary as soon as possible.

@cachebag

Copy link
Copy Markdown
Member

@morehwachege Take your time :] just checking in

@morehwachege
morehwachege had a problem deploying to self-hosted-pr-integration July 20, 2026 16:08 — with GitHub Actions Failure
@morehwachege
morehwachege had a problem deploying to self-hosted-pr-integration July 20, 2026 19:37 — with GitHub Actions Failure
@morehwachege
morehwachege requested a deployment to self-hosted-pr-integration July 25, 2026 03:02 — with GitHub Actions Waiting
@morehwachege
morehwachege requested a deployment to self-hosted-pr-integration July 25, 2026 03:19 — with GitHub Actions Waiting
@morehwachege
morehwachege requested a deployment to self-hosted-pr-integration July 25, 2026 03:21 — with GitHub Actions Waiting
@morehwachege
morehwachege requested a deployment to self-hosted-pr-integration July 25, 2026 03:45 — with GitHub Actions Waiting
@morehwachege
morehwachege requested a deployment to self-hosted-pr-integration July 25, 2026 22:01 — with GitHub Actions Waiting
@morehwachege
morehwachege requested a deployment to self-hosted-pr-integration July 25, 2026 22:02 — with GitHub Actions Waiting
Co-authored-by: Antony <antony123muriithi@gmail.com>
@cachebag
cachebag force-pushed the feat/dynamically-fetch-adapter branch from 08f7dac to d6cfe3d Compare July 27, 2026 13:07
@cachebag
cachebag temporarily deployed to self-hosted-pr-integration July 27, 2026 13:07 — with GitHub Actions Inactive

@cachebag cachebag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this started and working through the feedback.

Since I am planning to cut a release soon, I’ve went ahead and took over. Let me know if you have any questions on anything!

@cachebag
cachebag merged commit c314e8f into freedesktop-rs:master Jul 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bluetooth Bluetooth device/adapter management feature New feature or request refactor Change or improve code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Remove hardcoded hci0 Bluetooth adapter

2 participants