I'm using Debian Wheezy
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.3 (wheezy)
Release: 7.3
Codename: wheezy
$ uname -a
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
on Lenovo G580 with Seagate 1TB Hard Disk.
The problem I'm facing is that the hard disk spins down and up too frequently when on battery. I tried using hdparm and used the following commands, but that didn't work. Also installed laptop-mode and edited laptop-mode-conf to
LM_AC_HD_IDLE_TIMEOUT_SECONDS=2000
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=2000
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
after reading similar posts, but that too didn't work, and so, I uninstalled it.