Comment 42 for bug 568120

Revision history for this message
daniel_L (daniel-das-grauen) wrote :

For now I use the following workaround to set the APM values after resuming from Suspend-To-RAM. I created /etc/pm/sleep.d/99_load_cycle_count_fix and made it executable and the inserted the following script:

#!/bin/bash
case "$1" in
        hibernate|suspend)
                echo "nothing to do"
                ;;
        thaw|resume)
  hdparm -B 254 /dev/sda
                ;;
        *)
                echo "no parameter given"
                ;;
esac