mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4430] [GUI] Fix energy monitoring when a GPU lacks power readings #5044
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5044
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4430
Author: @jun76
Created: 10/28/2026
Status: 🔄 Open
Base:
main← Head:gui-fix-energy-when-gpu-power-unavailable📝 Commits (1)
4cb31c1[GUI] Fix energy monitoring when a GPU lacks power readings📊 Changes
3 files changed (+28 additions, -2 deletions)
View changed files
📝
apps/host/server/energy-meter.mjs(+6 -0)📝
apps/host/server/monitor.mjs(+2 -2)➕
apps/host/tests/energy-meter.test.mjs(+20 -0)📄 Description
Problem and result
On a Windows PC with an RTX 5090 and Intel UHD Graphics 770, the desktop Monitor stayed at
0.0 Wh: the RTX reported power, but the Intel GPU did not. The host discarded the total when any detected GPU lacked a power reading.The host now sums valid power readings for its power display and energy meter. Other GPU metrics are unchanged.
Approach
Use reported GPU power and power-limit readings for those two totals. Add a regression test for a metered GPU beside an unmetered iGPU, multiple metered GPUs, and no available readings.
Validation
Tested on Strata 0.2.7 base plus
4cb31c1a, Windows, RTX 5090 and Intel UHD Graphics 770.Passed:
node --test tests/energy-meter.test.mjs tests/monitor-dashboard.test.mjs tests/monitor-host-sensors.test.mjs tests/sensor-pace.test.mjsinapps/host(22 tests);npm run typecheck;npm run build; desktop app built withnpm run dev. In the desktop Monitor, energy rose from0.5to0.9to1.2 Whwhile the RTX reported power and the Intel GPU reported none.Failed: Full
npm teston Windows: 1,123 passed, 1 failed, 102 skipped. Inpowershell-utf8.test.mjs, Node crashes (0xC0000409) while removing a Cyrillic-named temporary folder. The same failure reproduces on unchanged upstream5e8a4ccaunder the same conditions.Not run: Other GPU combinations or model inference. No native engine code changed, so backend builds were not run.
Limits
Energy remains an estimate from sampled GPU power. It covers only GPUs with available readings and resets when the host restarts.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.