From 3c9d9b3c67a7aa9376c8563d28ac824be9195702 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 21 Jul 2024 12:44:31 +0800 Subject: [PATCH] Brightness (Linux): use `brightness` instead of `actual_brightness` `actual_brightness` are above `max_brightness` on asahi. See also https://bugzilla.kernel.org/show_bug.cgi?id=203905 --- src/detection/brightness/brightness_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/brightness/brightness_linux.c b/src/detection/brightness/brightness_linux.c index de105504b..435f4e11b 100644 --- a/src/detection/brightness/brightness_linux.c +++ b/src/detection/brightness/brightness_linux.c @@ -29,7 +29,7 @@ static const char* detectWithBacklight(FFlist* result) continue; ffStrbufAppendS(&backlightDir, entry->d_name); - ffStrbufAppendS(&backlightDir, "/actual_brightness"); + ffStrbufAppendS(&backlightDir, "/brightness"); if(ffReadFileBuffer(backlightDir.chars, &buffer)) { double actualBrightness = ffStrbufToDouble(&buffer);