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
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
hibernate| suspend)
echo "nothing to do"
thaw|resume)
echo "no parameter given"
case "$1" in
;;
hdparm -B 254 /dev/sda
;;
*)
;;
esac