summaryrefslogtreecommitdiff
path: root/kvmd/apps/edidconf
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-02-03 13:22:21 +0200
committerMaxim Devaev <[email protected]>2024-02-03 13:22:21 +0200
commit272e3bf5e95ed9ad8e304f51c3f62ada53faaa63 (patch)
tree95c5c85df704d8da257ac9179364c5f003c68301 /kvmd/apps/edidconf
parent0a0581e71a55150a2bc1858a672cdc5351e108c1 (diff)
edidconf: Fixed --import + --apply usage
Diffstat (limited to 'kvmd/apps/edidconf')
-rw-r--r--kvmd/apps/edidconf/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/apps/edidconf/__init__.py b/kvmd/apps/edidconf/__init__.py
index c42f4c91..cd570450 100644
--- a/kvmd/apps/edidconf/__init__.py
+++ b/kvmd/apps/edidconf/__init__.py
@@ -216,6 +216,7 @@ def main(argv: (list[str] | None)=None) -> None: # pylint: disable=too-many-bra
help="The video device", metavar="<device>")
options = parser.parse_args(argv[1:])
+ orig_edid_path = options.edid_path
if options.imp:
options.export_hex = options.edid_path
options.edid_path = options.imp
@@ -259,7 +260,7 @@ def main(argv: (list[str] | None)=None) -> None: # pylint: disable=too-many-bra
subprocess.run([
"/usr/bin/v4l2-ctl",
f"--device={options.device_path}",
- f"--set-edid=file={options.edid_path}",
+ f"--set-edid=file={orig_edid_path}",
"--fix-edid-checksums",
"--info-edid",
], stdout=sys.stderr, check=True)