/etc/hdparm.conf is ignored after resuming from hibernation or sleep in 15.04
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | hdparm (Debian) |
Fix Released
|
Unknown
|
||
| | hdparm (Ubuntu) |
Medium
|
Unassigned | ||
Bug Description
I have
/dev/sda {
apm = 255
apm_battery = 255
}
in the /etc/hdparm.conf file because otherwise the disk parks every ~10 seconds. And after upgrading to 15.04 it no longer works after resuming from hibernation, APM level is set to 1 every time.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: hdparm 9.43-1ubuntu3
ProcVersionSign
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Sun Apr 26 00:07:24 2015
Dependencies:
gcc-5-base 5.1~rc1-0ubuntu1
libc6 2.21-0ubuntu4
libgcc1 1:5.1~rc1-0ubuntu1
multiarch-support 2.21-0ubuntu4
powermgmt-base 1.31+nmu1
SourcePackage: hdparm
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
| Serhiy Zahoriya (xintx-ua) wrote : | #1 |
| Serhiy Zahoriya (xintx-ua) wrote : Re: /etc/hdparm.conf is ingored after resuming from hibernation in 15.04 | #3 |
No, it's really ignored after resuming from hibernation.
| Changed in hdparm (Ubuntu): | |
| status: | Invalid → New |
| summary: |
- /etc/hdparm.conf is ingored in 15.04 + /etc/hdparm.conf is ingored after resuming from hibernation in 15.04 |
| description: | updated |
| Launchpad Janitor (janitor) wrote : | #4 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in hdparm (Ubuntu): | |
| status: | New → Confirmed |
| Changed in hdparm (Ubuntu): | |
| importance: | Undecided → Medium |
| tags: | added: systemd-boot |
| summary: |
- /etc/hdparm.conf is ingored after resuming from hibernation in 15.04 + /etc/hdparm.conf is ignored after resuming from hibernation in 15.04 |
| Serhiy Zahoriya (xintx-ua) wrote : | #5 |
It's also reset after putting machine to sleep.
| summary: |
- /etc/hdparm.conf is ignored after resuming from hibernation in 15.04 + /etc/hdparm.conf is ignored after resuming from hibernation or sleep in + 15.04 |
| Martin Pitt (pitti) wrote : | #6 |
Just about the only thing that would call hdparm on resuming is /usr/lib/
| Changed in hdparm (Ubuntu): | |
| status: | Confirmed → Triaged |
| Serhiy Zahoriya (xintx-ua) wrote : | #7 |
Workaround:
Adding /lib/systemd/
with
#!/bin/sh
/usr/lib/
and making it executable worked, thanks.
| Serhiy Zahoriya (xintx-ua) wrote : | #8 |
Somehow the workaround no longer works.
| no longer affects: | hdparm |
| Changed in hdparm (Debian): | |
| status: | Unknown → New |
| Milon Krejca (irox-lp) wrote : | #9 |
I confirm the problem on Ubuntu 15.10.
In my case I solved it by:
cd /lib/systemd/
vi hdparm_set
>
#!/bin/sh
hdparm -B 254 /dev/sda
>
chmod +x hdparm_set
Check by:
journalctl -u systemd-
| Changed in hdparm (Debian): | |
| status: | New → Fix Released |
| ChristianEhrhardt (paelzer) wrote : | #10 |
FYI the Debian upload has this and many more issues fixed (package was out of maintainer for a while).
Eventually they picked the solution to:
* d/hdparm.install: Install systemd sleep and udev scripts,
thanks to Michael Biebl, Closes: #725284
Too bad it is so late in the cycle while we at least have no delta on this package.
Maybe picking "just" the part that fixes the bug is the safer option?
| Changed in hdparm (Ubuntu): | |
| status: | Triaged → Fix Committed |
| Changed in hdparm (Ubuntu): | |
| status: | Fix Committed → Fix Released |


Changed the config to
/dev/sda {
apm = 255
apm_battery = 255
}
and it worked.