Changes between Version 18 and Version 19 of FAQ/Chapter3

Show
Ignore:
Timestamp:
02/10/12 09:22:27 (16 months ago)
Author:
khali
Comment:

Add a FAQ entry for clearing the chassis intrusion alarm

Legend:

Unmodified
Added
Removed
Modified
  • FAQ/Chapter3

    v18 v19  
    771771whether sysfs is mounted or not. This is fixed in lm-sensors 3.3.2. For older versions you 
    772772must backport r6017. 
     773 
     774== How do I clear the chassis intrusion alarm? == 
     775 
     776You could add a set statement in your configuration file, for example: 
     777 
     778{{{ 
     779chip "w83795adg-*" 
     780 
     781   set intrusion0_alarm 0 
     782 
     783}}} 
     784 
     785But that would unconditionally reset the alarm whenever "{{{sensors -s}}}" is run, which may not be desirable. 
     786If you only want to clear the alarm once, the easiest way is to write to the sysfs attribute directly. 
     787Assuming you have a single intrusion detection switch in the system, the following should do: 
     788 
     789{{{ 
     790$ echo 0 > /sys/class/hwmon/hwmon*/device/intrusion0_alarm 
     791}}} 
     792 
     793In the future, we may add an option to {{{sensors}}} or write a separate tool to let the users deal with 
     794intrusion alarms in a more friendly way.