Spindown setting not applied on resume from sleep

Bug #1225169 reported by Alain Miltenburg
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
hdparm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am running pm-utils version 1.4.1-9git1ubuntu0.1 on Ubuntu 13.04.

I have configured my hard disks to spin down in /etc/hdparm.conf. These settings are working when the system is booted from S5 or when the system is rebooted. However, when the system is resumed from S3 or S4 the hard disks will never spin down.

I did some research and I found out the spin down settings are normally reapplied after resume by the script '/usr/lib/pm-utils/power.d/95hdparm-apm'.
The function 'resume_hdparm_spindown()' within this script checks if a device supports APM in line 65, before setting the spin down option. This is what is causing the problem on my system, which uses Western Digital WD20EARX hard disk drives. These drives do not support APM, but they actually do support spin down settings!

As a workaround I have copied the '95hdparm-apm' file to '/etc/pm/sleep.d/95hdparm-apm' and commented out the APM check.

Revision history for this message
Ivan Lucchese (ivan-lucchese) wrote :

I'm running a fresh installation of Ubuntu 13.10 amd64.
I have this same bug with a Seagate Barracuda 7200.12 ST3500418AS 500GB hard disk, which doesn't support APM but supports spin-down setting.
But I wonder why this bug was reported under pm-utils and not under hdparm, the package /usr/lib/pm-utils/power.d/95hdparm-apm belongs to ...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pm-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Alain Miltenburg (alain-miltenburg) wrote :

Hi Ivan, You are right. The 'pm-utils' part in the path mislead me. I will report this bug under hdparm.

affects: pm-utils (Ubuntu) → hdparm (Ubuntu)
Revision history for this message
Mike Olson (mike-olson3) wrote :

I'm getting this same bug even though my hard drive DOES support AdvancedPM...

Revision history for this message
xraynorm (xraynorm) wrote :

I have this bug on 14.04 LTS

Revision history for this message
Vladimir (volnes88) wrote :

bug the same here on 14.04 LTS

Changed in hdparm (Ubuntu):
assignee: nobody → Vladimir (volnes88)
assignee: Vladimir (volnes88) → nobody
Revision history for this message
Graeme Hewson (ghewson) wrote :
Revision history for this message
Jeremy Sanders (jeremysanders) wrote :

Also an issue for my old Seagate ST3500641AS in Ubuntu Bionic 18.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.