openmixer — generated API reference
    Preparing search index...

    Interface GpuProbes

    Injectable reads so the detector runs deterministically in tests.

    interface GpuProbes {
        listDrm(): string[];
        nvidiaSmi(): string | null;
        readDrm(relPath: string): string | null;
    }
    Index
    • Entries of /sys/class/drm (default: real sysfs; [] when it does not exist).

      Returns string[]

    • nvidia-smi -L output, or null when the tool is absent.

      Returns string | null

    • A trimmed file under /sys/class/drm, e.g. card0/device/vendor; null if unreadable.

      Parameters

      • relPath: string

      Returns string | null