Skip to content

Commit 069c20b

Browse files
committed
Brightness: don't make DDC/CI a slow operation
1 parent c7f0172 commit 069c20b

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/detection/brightness/brightness_apple.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ const char* ffDetectBrightness(FFlist* result)
108108

109109
detectWithDisplayServices(displayServer, result);
110110

111-
if (instance.config.allowSlowOperations && displayServer->displays.length > result->length)
111+
#ifdef __aarch64__
112+
if (displayServer->displays.length > result->length)
112113
detectWithDdcci(result);
114+
#endif
113115

114116
return NULL;
115117
}

src/detection/brightness/brightness_linux.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,9 @@ const char* ffDetectBrightness(FFlist* result)
139139
detectWithBacklight(result);
140140

141141
#ifdef FF_HAVE_DDCUTIL
142-
if (instance.config.allowSlowOperations)
143-
{
144-
const FFDisplayServerResult* displayServer = ffConnectDisplayServer();
145-
if (result->length < displayServer->displays.length)
146-
detectWithDdcci(result);
147-
}
142+
const FFDisplayServerResult* displayServer = ffConnectDisplayServer();
143+
if (result->length < displayServer->displays.length)
144+
detectWithDdcci(result);
148145
#endif
149146

150147
return NULL;

src/detection/brightness/brightness_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const char* ffDetectBrightness(FFlist* result)
7676
if (hasBuiltinDisplay(displayServer))
7777
detectWithWmi(result);
7878

79-
if (instance.config.allowSlowOperations && result->length < displayServer->displays.length)
79+
if (result->length < displayServer->displays.length)
8080
detectWithDdcci(displayServer, result);
8181
return NULL;
8282
}

0 commit comments

Comments
 (0)