Results 1 to 3 of 3

Thread: USB HDD power management / spindown settings

  1. #1
    Join Date
    Feb 2010
    Location
    /proc/sys
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Question Disabling USB HDD power management / spindown settings

    Please help... I'm looking for a way to change the USB HDD spin down time setting, or to disable USB power management altogether.

    Basically, my new Western Digital USB HDD spins down too soon and often. As a result the Load Cycle Count is increasing too fast - four times faster than my 2 years old laptop's drive!

    I searched the forums and have found this thread:

    Code:
    http://ubuntuforums.org/showpost.php?p=5031046&postcount=3
    it suggests using hdparm -B 255 which did the trick on internal ATA/SATA/SCSI drives... unfortunately it doesn't work on USB HDDs

    I also tried passing usbcore.autosuspend=-1 as a kernel parameter but it didn't seem to do anything (apart from the fans spinning at max?)

    I know there is a configurable /sys/bus/usb/devices/*/power/level but I'm not sure if I'm supposed to change those, or... maybe there is a simpler way.

    Any help would be greatly appreciated!
    Last edited by 9tails; February 19th, 2010 at 06:39 PM.

  2. #2
    Join Date
    Feb 2010
    Location
    /proc/sys
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: USB HDD power management / spindown settings

    Nevermind. I managed to disable automatic standby and the usb drive power management (apm) feature, but the load cycles count keeps increasing...

    Anyway, in case you're reading this thread looking for a way to disable apm on usb drives, or the automatic spindown feature, here's how I did it.

    If you want to disable spindown, run:

    sudo sdparm -a /dev/sda
    if the STANDBY attribute is set, change it to 0 using sdparm.

    If you want to disable apm for an usb drive:

    cd /sys/bus/usb/devices

    Look for the directories containing a file called "product". If the file contains the string "Portable USB drive" or similar, that's the one you're looking for. Just do a sudo echo "on" > ./power/level and you have disabled apm for that drive.

  3. #3
    Join Date
    Jun 2010
    Beans
    3

    Re: USB HDD power management / spindown settings

    Quote Originally Posted by 9tails View Post
    Nevermind. I managed to disable automatic standby and the usb drive power management (apm) feature, but the load cycles count keeps increasing...

    Anyway, in case you're reading this thread looking for a way to disable apm on usb drives, or the automatic spindown feature, here's how I did it.

    If you want to disable spindown, run:

    sudo sdparm -a /dev/sda
    if the STANDBY attribute is set, change it to 0 using sdparm.

    If you want to disable apm for an usb drive:

    cd /sys/bus/usb/devices

    Look for the directories containing a file called "product". If the file contains the string "Portable USB drive" or similar, that's the one you're looking for. Just do a sudo echo "on" > ./power/level and you have disabled apm for that drive.
    Would you mind explaining the last bit more clearly? Do I add that exact line to the product file? If that's a command, I'm fuzzy on what it will do.

    *EDIT* I found the autosuspend file was set to 2. I was able to change it to 1 which is supposed to disable that feature. Level was already set to "on". I'm hoping this will take care of the problem. This was helpful!
    Last edited by Guiness6; June 2nd, 2010 at 10:27 PM. Reason: Figured it out.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •