Skip to content

Fix native Linux system monitor CPU brand and temperature - #339

Merged
Legendarylibr merged 2 commits into
mainfrom
fix/native-linux-system-monitor
Jul 15, 2026
Merged

Fix native Linux system monitor CPU brand and temperature#339
Legendarylibr merged 2 commits into
mainfrom
fix/native-linux-system-monitor

Conversation

@Legendarylibr

Copy link
Copy Markdown
Owner

Summary

  • Read CPU brand from /proc/cpuinfo on native Linux when py-cpuinfo is missing (stop showing x86_64 as the brand).
  • Expand live CPU temperature sensors to include AMD k10temp / zenpower and prefer package labels (Tctl, Package id 0).
  • Add unit tests for brand/temp selection; verified on host (Ryzen 7 7700X + RTX 4090).

Test plan

  • pytest tests/test_hardware_platforms.py tests/test_hardware.py -q
  • Local hardware_profile() / live_metrics() on native Linux: brand = AMD Ryzen…, cpu_temp_c from k10temp Tctl, GPU metrics unchanged via nvidia-smi
  • Restart Forge and confirm Dashboard / SystemMonitor show correct CPU brand and temp

On bare-metal Linux without py-cpuinfo, CPU brand fell back to the
arch string (x86_64) instead of /proc/cpuinfo model name. Live metrics
also only checked Intel/Apple thermal sensors, so AMD k10temp (Tctl)
left cpu_temp_c null. Ground brand and package temp in host-readable
sources that work across Intel, AMD, and common ARM setups.
Sort platform test imports for ruff I001. Pin setuptools>=83 in
dev deps so pip-audit no longer fails on PYSEC-2026-3447.
@Legendarylibr
Legendarylibr merged commit 1dcf914 into main Jul 15, 2026
8 checks passed
@Legendarylibr
Legendarylibr deleted the fix/native-linux-system-monitor branch July 15, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant