From 0ab92a178ca1bacb0422e3c5193687f0ee51a87c Mon Sep 17 00:00:00 2001 From: Ali Hatami Tajik Date: Sat, 11 Mar 2023 13:52:36 +0330 Subject: [PATCH] Add get_edid_dev_path function --- src/scripts/python/util/x.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/scripts/python/util/x.py b/src/scripts/python/util/x.py index a9cdba7..d07f72c 100644 --- a/src/scripts/python/util/x.py +++ b/src/scripts/python/util/x.py @@ -75,3 +75,11 @@ def create_master(name: str = "touch"): def map_to_output(output, device_id): # TODO pass + + +def get_edid_dev_path(): + """returns iterator of pathes of devices with edid + + devices which has EDID are monitors. + """ + return Path("/sys/devices").rglob("edid")