[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#328551: xresprobe: lcd reported as crt in ddcpobe.sh. with patch.



Package: xresprobe
Version: 0.4.18-1
Severity: normal

*** Please type your report below this line ***

xresprobe (using /usr/share/xresprobe/ddcprobe.sh) misdetects
my lcd monitor as a crt.

In order to find out if a monitor is an lcd or a crt, ddcprobe.sh
tries to find "^input: digital" in /usr/sbin/ddcpobe output.

however, when run on my monitor, dccprobe returns
'input: separate sync, composite sync, digital signal.'

The following patchlet to /usr/share/xresprobe/ddcprobe.sh
corrects this problem by changing the regex used.

--- ddcprobe-orig.sh    2005-09-15 21:53:56.000000000 +0200
+++ ddcprobe.sh 2005-09-15 21:54:14.000000000 +0200
@@ -33,7 +33,7 @@
   exit 0
    fi

    -if (echo "$DDCPROBE" | egrep "^input: digital"); then
    +if (echo "$DDCPROBE" | egrep "^input: .*digital"); then
       SCREENTYPE="lcd"
        else
	   SCREENTYPE="crt"
	   


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-powerpc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages xresprobe depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an

Versions of packages xresprobe recommends:
ii  laptop-detect                 0.12.1     attempt to detect a laptop

-- no debconf information



Reply to: