[Bug 59695] Re: High frequency of load/unload cycles on some hard disks may shorten lifetime

Steve Langasek steve.langasek at canonical.com
Sat Jan 10 07:37:23 UTC 2009


On Sat, Jan 10, 2009 at 03:41:18AM -0000, Nick B. wrote:
> I am very sure. I've never had a problem with suspend on Intrepid. It's
> always worked perfectly. After updating acpi-support it doesn't resume
> properly after invoked from the power manager. I downgrade the package
> and it works fine again.

But is the problem reproducible again if you re-upgrade?

The code that acpi-support runs on resume as a result of this update is:

  # Get the power state into STATE
  getState;
  
  for dev in /dev/sd? /dev/hd? ; do
    if [ -b $dev ] ; then
      # Check for APM support; discard errors since not all drives
      # support HDIO_GET_IDENTITY (-i).    
      if hdparm -i $dev 2> /dev/null | grep -q 'AdvancedPM=yes' ; then
        if [ $STATE = "BATTERY" ] ; then
          hdparm -B 128 $dev
        else
          hdparm -B 254 $dev
        fi
      fi
    fi
  done

it's not clear to me why any of this should trigger a hang on resume.  Are
you knowledgeable with shell that you could try commenting out parts of this
code in /etc/acpi/resume.d/90-hdparm.sh, to find out which part is
responsible for the hang?

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org

-- 
High frequency of load/unload cycles on some hard disks may shorten lifetime
https://bugs.launchpad.net/bugs/59695
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux-meta in ubuntu.




More information about the kernel-bugs mailing list