You are not logged in.

#1 2015-01-07 21:39:11

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

different apm level for disk after suspend

Right after boot:

sudo hdparm -B /dev/sdb
/dev/sdb:
 APM_level	= 254

I didn't change anything with this setting but after waking up from suspend it is:

sudo hdparm -B /dev/sdb
/dev/sdb:
 APM_level	= 96

Not a big problem but kind of annoying. I would expect it to stay the way it was before suspend. I don't have lmt or pm-utils installed. I have tlp installed though, but its systemd services are disabled.
Do you have any tips on where to look for the one who changes values?


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#2 2015-01-07 21:52:15

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: different apm level for disk after suspend

For whatever it is worth, I'm used to setting it again after resuming on my netbook (in which a drive otherwise goes to sleep after 5 seconds of inactivity). I guess laptop-mode-tools and tlp do this for you, you could also make systemd-sleep run it.

Last edited by lucke (2015-01-07 21:52:33)

Offline

#3 2015-01-10 11:21:03

linrunner
Member
Registered: 2013-04-21
Posts: 56

Re: different apm level for disk after suspend

dice wrote:

I have tlp installed though, but its systemd services are disabled.

Then enable the services, they are necessary.

Offline

#4 2015-01-10 23:33:59

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: different apm level for disk after suspend

They are necessary to use TLP. But if I disable them TLP should not have any effect on the apm_level of the disk.
I am not trying to find out how to use tlp. I am wondering why the disk's apm_level is changed when suspending to ram.


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#5 2015-01-11 15:33:54

linrunner
Member
Registered: 2013-04-21
Posts: 56

Re: different apm level for disk after suspend

Hypothesis 1: HDD power supply is cut upon suspend --> the hardware forgets the APM settings; what you see is the hw default
Hypothesis 2: BIOS applies the shown setting on resume

Anyway: why not let TLP do the correct setting upon resume?

Offline

Board footer

Powered by FluxBB