Hi,
I just want to tell laptop users how they can protect their hdd from heavy load cycle count (spin up/down of the hdd) when using battery.
If you are not sure then just type this command several times in interval of 1-2 minutes, and you will see how much the hdd head spins down, and up:
Code:
sudo smartctl --all /dev/sda | grep -i load_cycle
Change /dev/sda with appropriate hdd path for your pc.
If you notice spin difference in this time interval, then you have a problem.
Just do the following:
Create a file named 95hdparm-apm under /etc/pm/power.d/
Code:
#!/bin/sh
hdparm -B 254 /dev/sda
Change /dev/sda appropriately to your hdd.
Save it and do a
Code:
sudo chmod u+rwx,g+rx,o+rx /etc/pm/power.d/95hdparm-apm
Now you can put your laptop to sleep, and wake it up to see if this is working.
Just type
Code:
sudo hdparm -I /dev/sda | grep -i "Advanced power management level"
Change /dev/sda appropriately.
It should say 254, and not 128.
Bookmarks