If you’re using Ubuntu on your laptop, do the following:
Go to “*System > Administration > Services*” in your menubar, and then enable “*Hard disk tuning*”.
Then (and this is just a bit more complex, but not very), type “*Alt + F2*” to bring up your “*Run Application*” dialog box, and type in “*sudo gedit /etc/hdparm.conf*”.
Then, scroll all the way to the bottom, and type in:
/dev/sda {
apm = 254
}
Save the file and then restart your computer. That is all.
[ Source ]