From 30b2bd0a7b549bf6da8f38bc32b9d61de83f1c81 Mon Sep 17 00:00:00 2001 From: sharpenedblade Date: Wed, 27 Mar 2024 19:53:05 -0700 Subject: [PATCH] Look in `gmux_backlight` for display backlight --- src/backlight.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backlight.rs b/src/backlight.rs index b155c8b..04b8c40 100644 --- a/src/backlight.rs +++ b/src/backlight.rs @@ -42,7 +42,7 @@ fn find_backlight() -> Result { fn find_display_backlight() -> Result { for entry in fs::read_dir("/sys/class/backlight/")? { let entry = entry?; - if ["apple_panel_bl", "intel_backlight"].iter().any(|s| entry.file_name().to_string_lossy().contains(s)) { + if ["apple_panel_bl", "gmux_backlight", "intel_backlight"].iter().any(|s| entry.file_name().to_string_lossy().contains(s)) { return Ok(entry.path()); } }