diff --git a/lib/chips.c b/lib/chips.c index e910d190..d01a7868 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -2892,6 +2892,10 @@ static sensors_chip_feature eeprom_features[] = { SENSORS_EEPROM_VAIO_SERIAL+31, "serial32", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, EEPROM_SYSCTL14, VALUE(16), 0 }, +/* for monitor's edid */ + { SENSORS_EEPROM_EDID_HEADER, "EDID header", + SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, + SENSORS_MODE_R, EEPROM_SYSCTL1, VALUE(1), 0 }, { 0 } }; diff --git a/lib/chips.h b/lib/chips.h index be06493f..45c824e0 100644 --- a/lib/chips.h +++ b/lib/chips.h @@ -1194,6 +1194,9 @@ #define SENSORS_EEPROM_VAIO_SERIAL 160 /* 161 to 191: reserved, do not use! */ +#define SENSORS_EEPROM_EDID_HEADER 32 +/* 33 to 39: reserved, do not use! */ + /* Analog Devices LM87 chips */ #define SENSORS_LM87_PREFIX "lm87" diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index 7215f918..3abca8de 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -2965,14 +2965,14 @@ void print_eeprom(const sensors_chip_name *name) if (!sensors_get_feature(*name, SENSORS_EEPROM_ROWADDR, &a) && !sensors_get_feature(*name, SENSORS_EEPROM_COLADDR, &b) && !sensors_get_feature(*name, SENSORS_EEPROM_NUMROWS, &c) - && !sensors_get_feature(*name, SENSORS_EEPROM_VAIO_NAME, &d)) { + && !sensors_get_feature(*name, SENSORS_EEPROM_EDID_HEADER, &d)) { if (((int) a) != 255 || ((int) b) != 255 || ((int) c) != 255 || ((int) d) != 0) printf("Unknown EEPROM type (255).\n"); else if (name->addr == 0x50) - /* must be a real EDID EEPROM */ + /* must be an EDID EEPROM */ printf("Either use the ddcmon driver instead of the eeprom driver,\n" - "or run the decode-edid script.\n"); + "or run the decode-edid.pl script.\n"); } else printf("ERROR: data EDID\n"); return;