diff options
author | Anssi Hannula <anssi@mandriva.org> | 2010-01-03 11:06:56 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2010-01-03 11:06:56 +0000 |
commit | b2259d6682dcc9324300ee088cb448d14a42b7ab (patch) | |
tree | de06a123161349ffa367231f95c72e1854b5f93c | |
parent | f97dbb043f3d4709c32b259b180d5121fb6e399a (diff) | |
download | monitor-edid-b2259d6682dcc9324300ee088cb448d14a42b7ab.tar monitor-edid-b2259d6682dcc9324300ee088cb448d14a42b7ab.tar.gz monitor-edid-b2259d6682dcc9324300ee088cb448d14a42b7ab.tar.bz2 monitor-edid-b2259d6682dcc9324300ee088cb448d14a42b7ab.tar.xz monitor-edid-b2259d6682dcc9324300ee088cb448d14a42b7ab.zip |
monitor-edid:
get VBE info only once even when probing multiple ports
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | monitor-edid | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -35,6 +35,7 @@ o do not get duplicate EDIDs if the same EDID is available via multiple methods o allow retrieval of multiple EDIDs via VBE + o get VBE info only once even when probing multiple ports - monitor-edid: o add --first support for stopping processing after one EDID has been diff --git a/monitor-edid b/monitor-edid index b77f02b..54d41a4 100755 --- a/monitor-edid +++ b/monitor-edid @@ -88,13 +88,15 @@ sub get_edids { if (my $cmd = get_using_vbe()) { my $min_port = $opt{'vbe-port'} || 0; my $max_port = $opt{'max-vbe-port'} || $opt{'vbe-port'} || 2; + my $skip_vbe; foreach my $port ($min_port .. $max_port) { warn "probing EDID using VBE (port $port)\n" if $opt{verbose}; - my $edid = `$cmd --port $port`; + my $edid = `$cmd --port $port $skip_vbe`; if ($? >> 8 == 2) { warn "VBE info call failed, skipping all ports\n" if $opt{verbose}; last; } + $skip_vbe = "--skip-vbe-check"; # VBE call ok, skip that for other ports is_edid_possibly_valid($edid) or next; next if grep { $_->[1] eq $edid } @l; |