Skip to content

Commit

Permalink
Look in gmux_backlight for display backlight
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Mar 28, 2024
1 parent e8542b0 commit 30b2bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn find_backlight() -> Result<PathBuf> {
fn find_display_backlight() -> Result<PathBuf> {
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());
}
}
Expand Down

0 comments on commit 30b2bd0

Please sign in to comment.