From 0667ca0f41696a59f2d67b811fc4b641801a3ce5 Mon Sep 17 00:00:00 2001 From: Gert-Jaap Glasbergen Date: Wed, 26 Feb 2020 08:22:34 +0100 Subject: [PATCH] Also detect 3D controllers --- util/gpus.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/gpus.go b/util/gpus.go index de8b31a0..b8f6ebad 100644 --- a/util/gpus.go +++ b/util/gpus.go @@ -95,6 +95,11 @@ func GetGPUs() []GPU { if vgaIdx > -1 { gpus = append(gpus, l[vgaIdx+27:]) } + + vgaIdx = strings.Index(l, "3D controller: ") + if vgaIdx > -1 { + gpus = append(gpus, l[vgaIdx+15:]) + } } } else if runtime.GOOS == "darwin" { Info := exec.Command("system_profiler", "SPDisplaysDataType")