voxtype install silently leaves the CPU backend: 'voxtype setup gpu --enable' runs without sudo
What happened
omarchy voxtype install calls voxtype setup gpu --enable without sudo. That
command rewrites the /usr/bin/voxtype symlink, which needs root, so it fails:
✓ Setup complete!
Error: Failed to remove existing /usr/bin/voxtype (need sudo?): Permission denied (os error 13)
Try: sudo voxtype setup gpu --enable
The installer does not check the exit status (the call ends in || true), so the
install reports success and finishes with the "Voxtype Dictation Ready"
notification. Dictation then works — but silently on the CPU build.
The failure is easy to miss: it is one line in the middle of a long install, and nothing afterwards indicates the GPU step did not take effect.
What was expected
On a machine where omarchy-hw-vulkan succeeds, the install should leave
/usr/bin/voxtype pointing at voxtype-vulkan.
Steps to reproduce
- On a machine with a Vulkan-capable GPU, run
omarchy voxtype install - Accept the prompt and let it finish
ls -la /usr/bin/voxtype
Actual: -> /usr/lib/voxtype/voxtype-avx2 (CPU)
Expected: -> /usr/lib/voxtype/voxtype-vulkan
Cause
In omarchy-voxtype-install:
if omarchy-hw-vulkan; then
voxtype setup gpu --enable || true
fi
The script runs as the user. omarchy-pkg-add elevates on its own, but this call
does not, so it cannot write to /usr/bin. Running sudo voxtype setup gpu --enable afterwards works immediately:
Switched to GPU (Vulkan) backend.
and the daemon then loads onto the GPU:
whisper_backend_init_gpu: found GPU device 0: Vulkan0
whisper_model_load: Vulkan0 total size = 1623.92 MB
INFO Model loaded in 0.74s
nvidia-smi confirms the VRAM is actually held (/usr/bin/voxtype, 1564 MiB).
Suggested fix
Add sudo to that call. The script already declares
# omarchy:requires-sudo=true, so the credential is cached and this should not
prompt again:
sudo voxtype setup gpu --enable || true
Dropping the || true, or warning when the step fails, would also stop a silent
CPU fallback from looking like a clean install.
Impact
Any user with a Vulkan-capable GPU who installs dictation through Omarchy gets
the CPU backend without being told. On this machine the difference is
voxtype-avx2 vs voxtype-vulkan — large-v3-turbo loads in 0.74s on the GPU and
is comfortably real-time; the CPU build is much slower for the same model.
System
| Omarchy | 4.0.2-1 |
| voxtype-bin | 1.0.1-1 |
| CPU | 12th Gen Intel Core i7-12700F |
| GPU | NVIDIA GA102 [GeForce RTX 3080] |
| NVIDIA driver | 610.57.04 (open) |
| Kernel | 7.1.9-arch1-2 |
Happy to attach omarchy debug output if useful.
This looks like the same root cause as #7099 — voxtype setup gpu --enable runs without sudo in omarchy-voxtype-install, can't repoint the root-owned /usr/bin/voxtype symlink, and the failure is swallowed by || true.
A fix is already proposed in #7129, which runs the GPU setup with sudo and adds a migration to repair installs that silently stayed on the CPU backend.
Thanks for the thorough report, @RonildoBraga. This is the same bug as #7099: the same symptom (Permission denied (os error 13) on /usr/bin/voxtype, dictation left on the CPU build), the same cause (voxtype setup gpu --enable run as the user, its failure swallowed by || true), and the same fix (run it with sudo). #7099 is older and already carries the diagnosis, reproduced on a disposable Omarchy VM, and the two open pull requests that fix it: #12901, which already says it fixes this issue too, and #13508. The maintainer is choosing between them.
It is still present on quattro (be7c7bf3). #14552 moved the installer to bin/omarchy-install-dictation-voxtype, and line 24 there still runs voxtype setup gpu --enable || true without sudo. Both open fixes edit the old bin/omarchy-voxtype-install, so whichever is chosen has to be brought across to the new file.
What was checked: this report against #7099, the installer on current quattro, and the open pull requests that touch it. Nothing was run, since the bug was already reproduced for #7099. Reviewed by Claude Opus 5.5. The second opinion, Codex Medium, could not be asked whether the two reports are the same: today's review allowance is spent. Closing an item as a duplicate needs that check, so this stays open for now, and it is waiting on the maintainer to close it in favour of #7099 or on the fix landing.