Skip to content

feat(bluetooth): persist adapter state across sessions#191

Open
xdvi wants to merge 1 commit into
snowarch:mainfrom
xdvi:feat/bluetooth-persistence
Open

feat(bluetooth): persist adapter state across sessions#191
xdvi wants to merge 1 commit into
snowarch:mainfrom
xdvi:feat/bluetooth-persistence

Conversation

@xdvi

@xdvi xdvi commented Jun 27, 2026

Copy link
Copy Markdown

Summary

This PR adds support for persisting the Bluetooth adapter state (on/off) across system restarts, shutdowns, logouts, and shell reloads.
It introduces two new configuration keys:

  • bluetooth.persistState: determines if the state should be saved/restored (defaults to true).
  • bluetooth.lastState: stores the last state of the default Bluetooth adapter.

It dynamically monitors the default adapter status and updates the configuration in real-time, restoring the last saved state when the Bluetooth service starts up.

Testing

  • inir restart && inir logs — no errors
  • Tested the specific feature path that changed (toggled Bluetooth, verified config update, and confirmed state persistence on reload)

@xdvi xdvi changed the title feat(bluetooth): persist adapter state across reboots feat(bluetooth): persist adapter state across sessions Jun 27, 2026
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.

1 participant