Bug 102471
Summary: | Hard disk apm setting reset after suspend | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | szunti |
Component: | Serial ATA | Assignee: | Tejun Heo (tj) |
Status: | NEW --- | ||
Severity: | low | CC: | szg00000, tom.ty89 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Linux version 4.1.4 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
szunti
2015-08-07 21:58:43 UTC
This is not a bug but rather it's just normal (or at most, hardware-specific) behaviour. I actually wonder if any ATA drives can perserve those settings over power cycle. In my case, my internal SATA SSD preserves the settings over reboot but not poweroff or suspend (yes S3 does cut power down more drastically then reboot AFAIK). In another SATA SSD connected with an USB adapter, the settings are preserved over a poweroff IF I enabled "USB charging in S5" but NOT if have that disabled. Also see this similar issue and my reply if you're interested: https://bugzilla.kernel.org/show_bug.cgi?id=105281 Thanks for the nice answer. I was confused why hdparm -Y preserve it, but the suspend not. But I can't say I understand what's happening. If you say it's normal, than it's fine. I hoped I can assume that after suspend everything will be in the same state I left, but I can understand if it's not only the kernel's task. I am not sure about what you mean by "hdparm -Y preserve it", but from the man page what it does is "Force an IDE drive to immediately enter the lowest power consumption sleep mode, causing it to shut down completely. A hard or soft reset is required before the drive can be accessed again...", so do you actually just mean that the settings survives a reboot? Also if sda is the only drive you have, `hdparm -Y /dev/sda` shouldn't really be able to do its job. It should only be able to put the drive to "standby" (but not "sleep") mode for a short while (even shorter than -y) at most in such case. And it doesn't seem to me that `sdparm --command=stop /dev/sda` would even work for ATA drives. Is there anything which assures you that it does make some changes to the drive? You are right with everything, Only drive. With hdparm I just hear it spindown. And indeed sdparm doesn't even do that. |