Brightness (Linux): use display model name as a fallback if we fail to match the display with edid
This commit is contained in:
1 parent
da4ec98f47
commit
d3d121a965
1 file changed
+4
@@ -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