Skip to content

ARM64 CPU model detection not working (Apple Silicon / Asahi Linux) #959

@Ito-69

Description

@Ito-69

Problem

Dockhand does not detect CPU model on ARM64 systems (Apple Silicon running Asahi Linux).

Environment:

  • Hardware: Apple M1 MacBook Pro
  • OS: Fedora Asahi Linux (ARM64 / aarch64)
  • Dockhand: latest (ghcr.io/acouvreur/dockhand:latest)

Expected behavior:
CPU model should be displayed in the dashboard (e.g., "Apple M1")

Actual behavior:
CPU model field is empty/missing

Root Cause

/proc/cpuinfo on ARM64 has a different format than x86_64:

x86_64:
model name : Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz

ARM64 (Apple Silicon):
CPU implementer : 0x61
CPU architecture: 8
CPU variant : 0x1
CPU part : 0x000

ARM64 does not have a model name field — Dockhand's CPU detection logic expects x86 format.

Suggested Fix

Add ARM64 detection fallback:

  1. Check for model name (x86)
  2. If missing, parse CPU implementer + CPU part and map to known models
  3. Fallback to "ARM64 Processor" if mapping unavailable

References

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