Skip to content

[Bug]: Diagnostics CPU speed limit and thermal state stay unknown on Linux #28502

Closed

Description

@Snehit70

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Run T3 Code desktop on Fedora Linux (reproduced on 0.1.5 AppImage).
  2. Open Settings → Maintenance → Diagnostics.
  3. Leave the resource monitor sampling.

The host has live sysfs data:

  • /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = cpuinfo_max_freq (100% advertised cap)
  • /sys/class/thermal/thermal_zone7 (x86_pkg_temp) around 51°C
  • AC power, unlocked session, native monitor HEALTHY

Expected behavior

CPU SPEED LIMIT shows the OS advertised cap as a percent (100 when scaling_max_freq == cpuinfo_max_freq). Thermal shows a real state (nominal / fair / serious / critical) derived from thermal-zone temps and trip points. Background policy can then treat serious/critical as thermal pressure.

Actual behavior

Those tiles stay Unknown / unknown thermal state. Host state Thermal and Low power mode are also unknown. Power source, idle, lock, CPU %, memory, and I/O populate normally.

DesktopTelemetryPublisher seeds thermalState from electron.powerMonitor.getCurrentThermalState() and speedLimitPercent from speed-limit-change. Electron documents both as macOS (speed-limit also Windows). On Linux, thermal is always "unknown" and the speed-limit event never fires, so speedLimitPercent stays none(). The native sidecar already reads cpufreq/scaling_cur_freq for current frequency; it does not feed these two fields.

Impact

Minor bug or occasional failure

Thermal-aware background sampling never engages on Linux. The Diagnostics tiles are also blank even when sysfs has the values.

Version or commit

T3 Code 0.1.5 desktop AppImage (desktop-last-started-version). Same gap is in current main (DesktopTelemetryPublisher.ts initializes speedLimitPercent: Option.none() and only fills it from Electron).

Environment

Fedora Linux, T3 Code desktop 0.1.5, Intel Core i5-6300U, intel_pstate active, Node from the AppImage.

Logs or stack traces

electron.powerMonitor.getCurrentThermalState() → "unknown"   # macOS-only API
electron.powerMonitor 'speed-limit-change' never emits        # macOS/Windows API
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq=3000000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq=3000000
/sys/class/thermal/thermal_zone7/type=x86_pkg_temp
/sys/class/thermal/thermal_zone7/temp=51000

Workaround

Ignore those two tiles on Linux. Current CPU, memory, and I/O still come from t3-resource-monitor.

Activity

  1. locked and limited conversation to collaborators on Nov 1, 2026
  2. converted this issue into a discussion #28503 on Nov 1, 2026
  3. added 2 commits that reference this issue on Nov 1, 2026
    f6f8d51
    9b33ccd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions