diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-10 20:17:35 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-10 20:17:35 +0100 |
commit | 3af89b858c7d86cb23bb75a68a3643449a4b15c3 (patch) | |
tree | c6cc9f27b28fb92d8e4e34c18a88f055640a1062 /examples/crtc-searching | |
parent | update todo (diff) | |
download | blueshift-3af89b858c7d86cb23bb75a68a3643449a4b15c3.tar.gz blueshift-3af89b858c7d86cb23bb75a68a3643449a4b15c3.tar.bz2 blueshift-3af89b858c7d86cb23bb75a68a3643449a4b15c3.tar.xz |
add EDID support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/crtc-searching')
-rw-r--r-- | examples/crtc-searching | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/crtc-searching b/examples/crtc-searching index 9633b2a..521ffc5 100644 --- a/examples/crtc-searching +++ b/examples/crtc-searching @@ -40,6 +40,7 @@ parser = ArgParser('Colour temputare controller', parser.add_argumentless(['-h', '-?', '--help'], 0, 'Print this help information') parser.add_argumented(['-n', '--name'], 0, 'NAME', 'Select output by name') +parser.add_argumented(['-e', '--edid'], 0, 'EDID', 'Select output by monitor extended display information data') parser.add_argumented(['-s', '--size'], 0, 'WIDTH_MM:HEIGHT_MM', 'Select output by monitor size') parser.parse(conf_opts) @@ -59,6 +60,11 @@ if parser.opts['--name'] is not None: for name in parser.opts['--name']: outputs += screens.find_by_name(name) +# Find CRTC:s by monitor extended display infomation data. +if parser.opts['--edid'] is not None: + for edid in parser.opts['--edid']: + outputs += screens.find_by_edid(edid) + # Find CRTC:s by monitor size. if parser.opts['--size'] is not None: for size in parser.opts['--size']: |