You are not logged in.

#1 2014-01-15 05:37:44

snovik
Member
Registered: 2012-05-06
Posts: 140

Disable hdd standby on boot

My laptop hdd started to go into standby without me doing anything. Based on noise it stands by after just a couple of seconds of inactivity. hdparm -S says bad or missing value. After setting it to 0 it all works fine until next reboot. How can I make it persistent?

Offline

#2 2014-01-15 05:48:41

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Disable hdd standby on boot

I think what you are looking for is Advanced Power Management (APM) settings.  This is controled with '-B <value>' where <value> is a number between 1 and 254.  See the hdparm man page for more info.

Offline

#3 2014-01-15 05:51:02

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: Disable hdd standby on boot

I tried this as well disabling all power management but it is still reset on reboot

Offline

#4 2014-01-15 05:56:28

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Disable hdd standby on boot

Oh, you should make a udev rule then.  Otherwise, you can write a systemd service that will set it on boot.  Just beware that there is a good chance that these setting will be lost after suspend.

Offline

#5 2014-01-15 05:58:53

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: Disable hdd standby on boot

Oh, this then kind of s...s. It's a laptop and I suspend it all the time. It all worked fine since ever but somehow changed recently, like a couple of weeks ago. I used to do "hdparm -S 0" but it is really annoying. I wonder what has happened

Offline

#6 2014-01-15 06:04:56

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Disable hdd standby on boot

Not sure what happened in your case.  But the suspend thing can be easily worked around.  Just make a systemd service that both runs on boot as a oneshot, then also hook it into the suspend.target.

Offline

Board footer

Powered by FluxBB