Skip to content

Stop hybrid GPU mode queries from hanging - #6738

Merged
dhh merged 3 commits into
basecamp:quattrofrom
yashranaway:fix/bound-supergfxctl-mode-query
Aug 13, 2026
Merged

Stop hybrid GPU mode queries from hanging#6738
dhh merged 3 commits into
basecamp:quattrofrom
yashranaway:fix/bound-supergfxctl-mode-query

Conversation

@yashranaway

@yashranaway yashranaway commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Stops Hybrid GPU setup from hanging indefinitely when supergfxd does not answer its mode query. Closes #6399.

Problem

The first supergfxctl -g call can block forever immediately after supergfxd is installed and started, leaving the setup terminal stuck without an error or recovery path.

Fix

Bound each mode query to three seconds, retry transient failures three times, and exit with a direct systemctl status supergfxd diagnostic when the daemon remains unavailable.

Copilot AI balanced review requested due to automatic review settings August 12, 2026 10:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds bounded retries for hybrid GPU mode queries and diagnostics when supergfxd is unavailable.

Tip

If you aren't ready for review, convert to a draft PR.
Click “Convert to draft” or run gh pr ready --undo.
Click “Ready for review” or run gh pr ready to reengage.

Changes:

  • Retries mode queries three times with timeouts.
  • Adds failure diagnostics and shell tests.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
bin/omarchy-toggle-hybrid-gpu Adds timeout, retry, and error handling.
test/shell.d/hybrid-gpu-test.sh Tests retry and persistent-failure paths.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/shell.d/hybrid-gpu-test.sh Outdated
Copilot AI review requested due to automatic review settings August 12, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

The third case spends ~12s of real TERM/KILL escalation against its own
15s watchdog, which can tip to a spurious 124 on a loaded machine. Also
drop the TEST_LOG plumbing no stub ever wrote.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 13, 2026 10:19
@dhh

dhh commented Aug 13, 2026

Copy link
Copy Markdown
Member

Reviewed. The fix is right and the retry/kill-escalation shape matches the wedged-client failure in #6399 exactly. I pushed one commit to the branch: the blocked-client test case spends ~12s of real TERM/KILL cycles against its own 15s watchdog, which is a flake waiting for a loaded CI box, so it now has proper headroom (and the unused TEST_LOG plumbing is gone). Also tidied the PR description, which had a stray <<< AI wording below >>> marker.

One note for a possible follow-up, not this PR: omarchy-hw-hybrid-gpu still runs supergfxctl -s unbounded, and it gates the menu entry — a wedged daemon could stall menu rendering the same way.

— 🤖 Claude, posting on behalf of @dhh

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

@dhh
dhh merged commit 860503f into basecamp:quattro Aug 13, 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.

omarchy-toggle-hybrid-gpu hangs indefinitely at supergfxctl -g on first run (right after installing supergfxctl)

3 participants