From 82719188cd3c0d01d7eadd5c7e782e59393f8434 Mon Sep 17 00:00:00 2001 From: Chris Sherwood Date: Sat, 24 Jan 2026 22:47:49 -0800 Subject: [PATCH] fix(benchmark): Extract iGPU from AMD APU CPU name as fallback When systeminformation doesn't detect graphics controllers (common on headless Linux), extract the integrated GPU name from AMD APU CPU model strings like "AMD Ryzen AI 9 HX 370 w/ Radeon 890M". Co-Authored-By: Claude Opus 4.5 --- admin/app/services/benchmark_service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/admin/app/services/benchmark_service.ts b/admin/app/services/benchmark_service.ts index e37b38c..f19672d 100644 --- a/admin/app/services/benchmark_service.ts +++ b/admin/app/services/benchmark_service.ts @@ -249,6 +249,16 @@ export class BenchmarkService { gpuModel = discreteGpu?.model || graphics.controllers[0]?.model || null } + // Fallback: Extract integrated GPU from CPU model name (common for AMD APUs) + // e.g., "AMD Ryzen AI 9 HX 370 w/ Radeon 890M" -> "Radeon 890M" + if (!gpuModel) { + const cpuFullName = `${cpu.manufacturer} ${cpu.brand}` + const radeonMatch = cpuFullName.match(/w\/\s*(Radeon\s+\d+\w*)/i) + if (radeonMatch) { + gpuModel = radeonMatch[1] + } + } + return { cpu_model: `${cpu.manufacturer} ${cpu.brand}`, cpu_cores: cpu.physicalCores,