mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Brightness (Linux): use display model name as a fallback if we fail to match the display with edid
This commit is contained in:
@@ -146,6 +146,10 @@ static const char* detectWithDdcci(FFlist* result)
|
||||
if (ffStrbufStartsWithS(&brightness->name, "card"))
|
||||
ffStrbufSubstrAfterFirstC(&brightness->name, '-');
|
||||
}
|
||||
else
|
||||
{
|
||||
ffStrbufAppendS(&brightness->name, display->model_name);
|
||||
}
|
||||
}
|
||||
ffddca_close_display(handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user