Automatic fallback to Alacritty for legacy GPUs when install Omarchy #3711
+18
−0
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.
Description:
Closes #3581
Context
Ghostty requires modern GPU acceleration (OpenGL/Vulkan) which is often unstable or missing on legacy hardware, specifically pre-GCN AMD GPUs using the
radeonkernel driver. On these systems, Ghostty may crash immediately, rendering the system difficult to use post-install.ghostty_bug.mp4
Changes
This PR implements an automatic detection and fallback mechanism:
Detection:
Added
bin/omarchy-detect-legacy-gpuwhich checks for the presence of theradeondriver in/sys/class/drm. This script is designed to be extensible for other legacy drivers in the future.Fallback:
Added
install/config/hardware/legacy-gpu-terminal.shwhich runs during installation. If legacy hardware is detected, it callsomarchy-install-terminal alacrittyto set Alacritty as the default terminal.Package:
Added
alacrittytoinstall/omarchy-base.packagesto ensure the fallback terminal is always available.Hook:
Wired up the new configuration script in
install/config/all.shVerification