aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xmonitor-probe2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index c85235b..f20cf4c 100644
--- a/NEWS
+++ b/NEWS
@@ -50,6 +50,9 @@
- monitor-probe-using-X:
o accept EDID data that contains extension blocks
+- monitor-probe:
+ o do not probe using X if DMI probe was successful
+
Version 2.5 - 18 October 2009, by Anssi Hannula
- monitor-probe-using-X:
diff --git a/monitor-probe b/monitor-probe
index e41578c..e9cc27f 100755
--- a/monitor-probe
+++ b/monitor-probe
@@ -27,7 +27,7 @@ fi
monitor-edid --try-in-console $opt_v && exit 0
[ -n "$opt_v" ] && echo "probing DMI" 1>&2
-lspcidrake | sed -n 's/^\(Resolution\|Diagonal_size\):\([^:]*\):.*/\1: \2/p'
+lspcidrake | sed -n 's/^\(Resolution\|Diagonal_size\):\([^:]*\):.*/\1: \2/p' | grep . && exit 0
[ -n "$opt_v" ] && echo "probing using X" 1>&2
monitor-probe-using-X $X_driver && exit 0