Skip to content

Bc250 gpu load - #1107

Closed
honorati wants to merge 2 commits into
mathoudebine:mainfrom
honorati:bc250-gpu-load
Closed

honorati wants to merge 2 commits into
mathoudebine:mainfrom
honorati:bc250-gpu-load

Conversation

@honorati

@honorati honorati commented Oct 9, 2026

Copy link
Copy Markdown

This pull request introduces significant improvements to AMD GPU load detection and adds a new "Steam OS" theme. The main focus is on making GPU utilization reporting for AMD GPUs on Linux more robust and accurate, especially when optional Python bindings are not available. The changes include a new GPU load sampler based on Linux DRM fdinfo counters, enhanced fallback logic in the AMD GPU sensor, and comprehensive tests for the new logic. Additionally, a new theme is introduced and set as the default.

AMD GPU load detection improvements:

  • Added DrmFdinfoSampler in gpu_fdinfo.py to read AMD GPU activity from Linux DRM fdinfo counters, enabling accurate GPU load measurement even when pyamdgpuinfo or pyadl are unavailable.
  • Updated GpuAmd in sensors_python.py to use a multi-tiered fallback for GPU load: first sysfs, then pyamdgpuinfo, then DRM fdinfo, and finally pyadl; now returns more accurate and robust stats.
  • Improved GpuAmd.is_available() to detect AMD GPUs even without optional bindings and to warm up the fdinfo sampler when sysfs load is unavailable.

Testing:

  • Added comprehensive tests for the new fdinfo sampler and the improved GPU load detection logic in test_gpu_fdinfo.py.

Theme and configuration changes:

  • Added a new "Steam OS" theme in res/themes/Steam OS/theme.yaml and set it as the default in config.yaml. [1] [2]

- Created a new theme.yaml file for Steam OS
- Defined display properties including size and orientation
- Configured static images and various system stats (CPU, GPU, Memory, Disk, Network, Date)
- Included customizable text properties such as font, size, color, and alignment for each stat
@honorati honorati closed this Oct 9, 2026
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