diff --git a/PowerControl/Helpers/AMD/VangoghGPU.cs b/PowerControl/Helpers/AMD/VangoghGPU.cs index 05f3141..88b043d 100644 --- a/PowerControl/Helpers/AMD/VangoghGPU.cs +++ b/PowerControl/Helpers/AMD/VangoghGPU.cs @@ -37,10 +37,15 @@ namespace PowerControl.Helpers.AMD public static bool Detect() { - var discoveredDevices = DeviceManager.GetDevices(DeviceManager.GUID_DISPLAY).ToDictionary((pnp) => + var discoveredDevices = new Dictionary(); + + foreach (var pnp in DeviceManager.GetDevices(DeviceManager.GUID_DISPLAY) ?? new string[0]) { - return DeviceManager.GetDeviceDesc(pnp) ?? ""; - }); + // Properly support many devices with the same name (pick the first one) + var name = DeviceManager.GetDeviceDesc(pnp); + if (name is not null && !discoveredDevices.ContainsKey(name)) + discoveredDevices[name] = pnp; + } foreach (var device in SupportedDevices) {