diff --git a/src/scripts/python/setupmonitor.py b/src/scripts/python/setupmonitor.py index e054156..0be74ca 100644 --- a/src/scripts/python/setupmonitor.py +++ b/src/scripts/python/setupmonitor.py @@ -68,9 +68,11 @@ def all_connected_monitor(): ) -def get_edid_name(drm_name): +def get_edid_name(drm_name: str): """Change eGalax DRM name to atom name""" - return "#TODO" + card_num, name = drm_name[4:].split("-", maxsplit=1) + first, second = name.rsplit("-", maxsplit=1) + return first + "-" + card_num + "-" + second def prepare_monitors(config):