Skip IPMI probing on laptops. IPMI is almost exclusively implemented on

servers, I've never seen it on a laptop and I don't really expect this
to ever happen.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5523 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-12-05 10:00:32 +00:00
1 parent 2ed59ceadc
commit 4f17a30d9a
2 files changed
+21 -10

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ SVN-HEAD
Gather DMI data and print it at start-up
Always probe the SMBus on Asus and Tyan boards
Move IPMI interface detection to its own section
Skip IPMI probing on laptops
sensors-detect-stat.pl: Delete (functionality merged into sensors-detect)
3.0.3 (2008-09-28)
+20 -10
View File
@@ -2214,6 +2214,14 @@ sub dmi_match
return 0;
}
sub is_laptop
{
return 0 unless $dmi{chassis_type};
return 1 if $dmi{chassis_type} =~ m/(Laptop|Notebook|Hand Held)/i;
return 1 if $dmi{chassis_type} =~ m/^(9|10|11|14)$/;
return 0;
}
#################
# SYSFS HELPERS #
#################
@@ -5174,17 +5182,19 @@ sub main
}
print "\n";
print "Some systems (mainly servers) implement IPMI, a set of common interfaces\n".
"through which system health data may be retrieved, amongst other things.\n".
"We have to read from arbitrary I/O ports to probe for such interfaces.\n".
"This is normally safe. Do you want to scan for IPMI interfaces?\n".
"(YES/no): ";
unless (<STDIN> =~ /^\s*n/i) {
initialize_ioports();
scan_isa_bus(\@ipmi_ifs);
close_ioports();
unless (is_laptop()) {
print "Some systems (mainly servers) implement IPMI, a set of common interfaces\n".
"through which system health data may be retrieved, amongst other things.\n".
"We have to read from arbitrary I/O ports to probe for such interfaces.\n".
"This is normally safe. Do you want to scan for IPMI interfaces?\n".
"(YES/no): ";
unless (<STDIN> =~ /^\s*n/i) {
initialize_ioports();
scan_isa_bus(\@ipmi_ifs);
close_ioports();
}
print "\n";
}
print "\n";
printf "Some hardware monitoring chips are accessible through the ISA I/O ports.\n".
"We have to write to arbitrary I/O ports to probe them. This is usually\n".