Repository navigation
fix(frontend): stop UI freeze from blocking GPU-temp poll (NEEDS hardware test) - #21
Merged
Merged
Conversation
The socket client serialises all calls on one connection, and GET_GPU_TEMP makes the backend run 'timeout 3 nvidia-smi' when the dGPU is awake, so the four blocking .get()s in update_fan_speeds (called from a 2s g_timeout) froze the UI for up to ~3s per tick. Move the round-trips to a worker thread and marshal the label writes back via g_idle_add; a refresh_in_flight guard prevents overlapping workers when a tick runs long. NOTE: compiles clean and warning-free, but NOT validated on hardware (no display or NVIDIA GPU available). Needs an on-device smoke test before merge. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
🤖 Hi @Batuhan4, I've received your request, and I'm working on it now! You can track my progress in the logs for more details. |
Batuhan4
marked this pull request as draft
July 15, 2026 10:25
|
🤖 I'm sorry @Batuhan4, but I was unable to process your request. Please see the logs for more details. |
Owner
Author
|
Thanks i will look into that soon and i will open the issues tab :) |
@Batuhan4 Does disabling it by |
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.

Stacked on top of #20. Fixes the one known caveat from #20: the 2 s fan/temp refresh does its blocking socket
.get()s on the GTK main thread, andGET_GPU_TEMPmakes the backend runtimeout 3 nvidia-smiwhen the dGPU is awake — freezing the UI up to ~3 s per tick.Fix: run the round-trips on a worker thread and marshal the label writes back with
g_idle_add; arefresh_in_flightatomic prevents overlapping workers on slow ticks.Base is the combined branch (#20) so the diff shows only this change; retarget to
mainonce #20 merges.🤖 Generated with Claude Code