Repository navigation
fix(hw): a missing libusb-1.0 means no lighting, not a crash loop - #34
Merged
Merged
Conversation
pyusb raises NoBackendError (a ValueError, not a USBError) when the system libusb-1.0 is absent. Nothing caught it, so cryod exited with status 1 and systemd restarted it forever, even on hardware it would otherwise report as unsupported. It now reads as "no ELC", the same degraded path as a machine without the controller. Found while testing the release installer in clean containers. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_0137cahar5LBoYMf2fiDkt4v
3 tasks done
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Without the system
libusb-1.0, pyusb raisesNoBackendErrorwhen cryod looks for the AlienFX lighting controller. That exception is aValueError, not aUSBError, so nothing caught it: cryod exited with status 1 and systemd restarted it every three seconds, forever. On a machine that is simply unsupported this also hid the real answer (exit status 78).The lookup now treats a missing libusb as "no lighting controller", the same degraded path as a machine without the device. Lighting is unavailable until libusb is installed; everything else runs.
Type
Bug fix (hw). One file plus a test.
Checklist
uv run pytest -q: 138 passed (137 existing, 1 new)Verification
usb.core.findraiseNoBackendErrorand requiresElcNotFound, whichEffects.available()already turns into "no lighting".Breaking changes
None.
🤖 Generated with Claude Code