sensors.conf: explain how to enable/disable beeps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 12, 2004 at 02:12:45PM -0700, Philip Pokorny wrote:
> bash can handle bit operations just fine.
> 
> bash$ echo $(( 7 & 2 ))
> 2
> bash$ echo $(( 8 & 2 ))
> 0

Heh, you can tell I am not a good bash programmer :)

> So that shouldn't be a concern.

Ok, nevermind.

> I'd like to make another suggestion.  Put meaningful text strings as the 
> contents of the _status file:
> 
>   LOW  (for low alarm)
>   HIGH  (for high alarm)
>   FAIL  (for diode failure)
>   ALARM  (for generic alarm)
>   HIGH, FAIL  (for multiple alarms)
>   ""  (null string for no alarm)
> 
> Then the sensors library and other tools/languages can just "cat" the 
> contents to get the status and test for non-null string to see if there 
> is an active alarm or not.

Ah, I like this even better.  We would never need to display more than
one status at a time per device, right?

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux