I'm running Fedora 8 with the latest stable kernel on an HP dv2715nr laptop (AMD Turion64 X2, 2GB RAM, nVidia GeForce 7150M) and using KDE.
First, a little background. I have one of those laptops where some pretty aggressive settings are causing the hard-disk read-head to park repeatedly. The laptop is barely 6 months old and I'm already at 100000 parks (thank you smartctl). This is bad.
A temporary solution is to run:
# hdparm -B 254 /dev/sda
and the parking pretty much stops. Note: completely disabling APM with -B 255 doesn't stop the parking, but -B 254 is the least aggressive setting. Anyway, this solution is great and all, but I need to do it every time I reboot (which really isn't an issue since you can run it from rc.local). The problem is, how can I run this same command automatically when I resume from suspending to RAM? Is there a resume script somewhere that I can stick this command into?
Thanks for any help!