From 96c7c2966dddb1bdadac8046416b64255e0abb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 18 Oct 2025 01:11:03 +0800 Subject: [PATCH] =?UTF-8?q?Brightness=20(macOS):=20prioritizes=20DDC/CI=20?= =?UTF-8?q?reply=20over=20simple=20I=C2=B2C=20transaction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/detection/brightness/brightness_apple.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/detection/brightness/brightness_apple.c b/src/detection/brightness/brightness_apple.c index 7d91e8ebf..3b5116e58 100644 --- a/src/detection/brightness/brightness_apple.c +++ b/src/detection/brightness/brightness_apple.c @@ -140,15 +140,11 @@ static IOOptionBits getSupportedTransactionType(void) { int64_t types = 0; ffCfNumGetInt64(IOI2CTransactionTypes, &types); - /* - We want DDCciReply but Simple is better than No-thing. - Combined and DisplayPortNative are not useful in our case. - */ if (types) { - if ((1 << kIOI2CSimpleTransactionType) & (uint64_t) types) - return kIOI2CSimpleTransactionType; if ((1 << kIOI2CDDCciReplyTransactionType) & (uint64_t) types) return kIOI2CDDCciReplyTransactionType; + if ((1 << kIOI2CSimpleTransactionType) & (uint64_t) types) + return kIOI2CSimpleTransactionType; if ((1 << kIOI2CCombinedTransactionType) & (uint64_t) types) return kIOI2CCombinedTransactionType; if ((1 << kIOI2CDisplayPortNativeTransactionType) & (uint64_t) types)