From: Simon Piriou Date: Mon, 17 May 2021 09:52:46 +0000 (+0200) Subject: Add an option to match profiles based on edid X-Git-Tag: 1.12~5^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2194455d6fa136462f373a6153dae9a22192a449;p=deb_pkgs%2Fautorandr.git Add an option to match profiles based on edid In some cases the display names change so the profile matching fails. This commit introduces the "--match-edid" option, that allows one to specify that the profiles matching should be done based on display edid. This is done by updating the profiles after loading, based on current display name/edid mapping requested using xrandr. --- diff --git a/autorandr.1 b/autorandr.1 index d268822..698ac7c 100644 --- a/autorandr.1 +++ b/autorandr.1 @@ -50,6 +50,9 @@ Don't change anything, only print the xrandr commands .BR \-\-fingerprint Fingerprint the current hardware setup .TP +.BR \-\-match-edid +Match displays based on edid instead of name +.TP .BR \-\-force Force loading or reloading of a profile .TP diff --git a/autorandr.py b/autorandr.py index 25b0f53..6ebd552 100755 --- a/autorandr.py +++ b/autorandr.py @@ -80,6 +80,7 @@ Usage: autorandr [options] --detected only list detected (available) configuration(s) --dry-run don't change anything, only print the xrandr commands --fingerprint fingerprint your current hardware setup +--match-edid match diplays based on edid instead of name --force force (re)loading of a profile / overwrite exiting files --skip-options