Add resume hook for lm_sensors

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

 



Hi.

When system is resumed from suspend or hibernate all sensors limits are
got reset. This could lead to wrong alarms, etc.
To prevent this, simple resume hook doing "sensors -s" could be put in
/usr/lib/pm-utils/sleep.d/99lm_sensors.
This file could be put into distribution to be reused.
 uyh
Alexey

---
#!/bin/sh
# Set sensors limits after resume

. "${PM_FUNCTIONS}"

[ -f /usr/bin/sensors ] || exit $NA

case "$1" in
        hibernate|suspend)
                ;;
        thaw|resume)
                /usr/bin/sensors -s
                ;;
        *) exit $NA
                ;;
esac





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

  Powered by Linux