Skip to content

Power off controllers after USB host shutdown - #315

Closed
safijari with Copilot wants to merge 1 commit into
mainfrom
copilot/291
Closed

safijari with Copilot wants to merge 1 commit into
mainfrom
copilot/291

Conversation

Copilot AI commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #291 by powering controllers off when the host shuts down without reporting USB suspend.

Changes

  • Detect a sustained USB unmount after OpenPuck has previously mounted.
  • Retain suspend detection, the four-second debounce, VBUS guard, and one-shot shutdown behavior.

Validation

  • make check passed.
  • make build could not run because arduino-cli is unavailable.
  • CodeQL reported no alerts; code review tool was unavailable.

Co-authored-by: safijari <5191844+safijari@users.noreply.github.com>
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.

[Bug?] Controller shut-down sequence isn't triggered on system shutdown (Bazzite)

2 participants