From d99a4929662497256c84707f3da483aaf0f6381c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 24 Aug 2003 13:22:22 +0000 Subject: [PATCH] Fix data block length (128 bytes instead of 256). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1973 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/eeprom/decode-edid.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/prog/eeprom/decode-edid.pl b/prog/eeprom/decode-edid.pl index fe00c48e..6c143a2c 100755 --- a/prog/eeprom/decode-edid.pl +++ b/prog/eeprom/decode-edid.pl @@ -19,6 +19,8 @@ # Version 0.1 2003-07-17 Jean Delvare # Version 0.2 2003-07-22 Jean Delvare # Use print instead of syswrite. +# Version 0.3 2003-08-24 Jean Delvare +# Fix data block length (128 bytes instead of 256). # # EEPROM data decoding for EDID. EDID (Extended Display Identification # Data) is a VESA standard which allows storing (on manufacturer's side) @@ -96,7 +98,7 @@ sub edid_decode delete $SIG{__WARN__}; binmode PIPE; - for (my $i=0; $i<=0xf0; $i+=0x10) + for (my $i=0; $i<=0x70; $i+=0x10) { my $file = sprintf '%02x', $i; my $output = ''; @@ -113,7 +115,6 @@ sub edid_decode print PIPE $output; } - print PIPE "\n"; # keep the customer satifsied close PIPE; } @@ -132,7 +133,7 @@ if ( defined $bus && -r "/proc/sys/dev/sensors/eeprom-i2c-$bus-$address" ) { print STDERR - "decode-edid: decode-edid version 0.1\n"; + "decode-edid: decode-edid version 0.3\n"; edid_decode ($bus, $address); } else