Changeset 5523

Show
Ignore:
Timestamp:
12/05/08 11:00:32 (6 years ago)
Author:
khali
Message:

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.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r5521 r5523  
    4444                  Always probe the SMBus on Asus and Tyan boards 
    4545                  Move IPMI interface detection to its own section 
     46                  Skip IPMI probing on laptops 
    4647  sensors-detect-stat.pl: Delete (functionality merged into sensors-detect) 
    4748 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5522 r5523  
    22152215} 
    22162216 
     2217sub is_laptop 
     2218{ 
     2219        return 0 unless $dmi{chassis_type}; 
     2220        return 1 if $dmi{chassis_type} =~ m/(Laptop|Notebook|Hand Held)/i; 
     2221        return 1 if $dmi{chassis_type} =~ m/^(9|10|11|14)$/; 
     2222        return 0; 
     2223} 
     2224 
    22172225################# 
    22182226# SYSFS HELPERS # 
     
    51755183                print "\n"; 
    51765184 
    5177                 print "Some systems (mainly servers) implement IPMI, a set of common interfaces\n". 
    5178                       "through which system health data may be retrieved, amongst other things.\n". 
    5179                       "We have to read from arbitrary I/O ports to probe for such interfaces.\n". 
    5180                       "This is normally safe. Do you want to scan for IPMI interfaces?\n". 
    5181                       "(YES/no): "; 
    5182                 unless (<STDIN> =~ /^\s*n/i) { 
    5183                         initialize_ioports(); 
    5184                         scan_isa_bus(\@ipmi_ifs); 
    5185                         close_ioports(); 
    5186                 } 
    5187                 print "\n"; 
     5185                unless (is_laptop()) { 
     5186                        print "Some systems (mainly servers) implement IPMI, a set of common interfaces\n". 
     5187                              "through which system health data may be retrieved, amongst other things.\n". 
     5188                              "We have to read from arbitrary I/O ports to probe for such interfaces.\n". 
     5189                              "This is normally safe. Do you want to scan for IPMI interfaces?\n". 
     5190                              "(YES/no): "; 
     5191                        unless (<STDIN> =~ /^\s*n/i) { 
     5192                                initialize_ioports(); 
     5193                                scan_isa_bus(\@ipmi_ifs); 
     5194                                close_ioports(); 
     5195                        } 
     5196                        print "\n"; 
     5197                } 
    51885198 
    51895199                printf "Some hardware monitoring chips are accessible through the ISA I/O ports.\n".