Pm-utils-1.4.0-1: aggressive hard drive power saving (often spin-up)

[sorry, misplaced post. this issue is for package from extra repo]
Hi all,
after upgrading from pm-utils-1.3.0-2 to pm-utils-1.4.0-1 I noticed that hard drive on my laptop is stopped and spinned up again too often.
The reason for this is script introduced in pm-utils-1.4 /usr/lib/pm-utils/power.d/harddrive that activates aggressive power saving. pm-powersafe is triggered after suspend wake-up in my case.
I noticed that
# hdparm -B /dev/sda
/dev/sda:
APM_level = 1
in case when laptop runs on battery power, and
APM_level = 254
when on AC. And I'm rarely use AC
Positive effect of this aggressive hard drive power saving is really doubtful as it can shorten your hard drive life significantly and cause apps hung till spin up very often.
I don't want to bring up a big discussion here, almost the same problem was discussed by ubuntu community
"Ubuntu's Laptop Killing Bug":
http://it.slashdot.org/article.pl?sid=0 … 4&from=rss
Currently I manually disabled power saving on hard drive by
# hdparm -B 255 /dev/sda
/dev/sda:
setting Advanced Power Management level to disabled
APM_level = off
and disabled /ur/lib/pm-utils/power.d/harddrive by resetting execution flag.
I monitored spin up cycles count by
# smartctl -a /dev/sda | grep Start_Stop_Count
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 4715
It grew significantly before I noticed the problem
Last edited by basilgor (2010-07-23 12:36:32)

I have
hdparm -B 255 /dev/sda
in /etc/rc.local to apply this after boot and
#!/bin/sh
# Use a less aggressiv hard disk power management in order to get
# rid of clicking noise which occurs when the drive is parking its heads
. "${PM_FUNCTIONS}"
case "$1" in
thaw|resume)
hdparm -B 255 /dev/sda
esac
exit $NA
in /etc/pm/sleep.d/00-hdd to apply it after resume from suspend, but when resuming APM is not set since recent version of pm-utils
Last edited by EVRAMP (2010-08-06 10:30:58)

Similar Messages

  • In disk utility, it shows that my external hard drive is somehow unmounted and I can't access it in finder or repair it in Disk Utility. How can I get this working without losing my important data?

    In disk utility, it shows that my external hard drive is somehow unmounted and I can't access it in finder or repair it in Disk Utility. How can I get this working without losing my important data?
    Thank you!

    When you erased the disk did you select Mac OS Extended Journaled as the format option?

  • Disk Utility can't verify or repair hard drive

    I started up my Tibook using the install disk and ran disk utility to try and repair my hard drive and it went through the verification process and then said that there was an error and it could not repair the disk. It says that it needs repaired, any suggestions?
    Also, when I come back to my computer after being gone several hours, I'm having trouble getting the computer to respond. It's not supposed to go to sleep or go to screen saver, but when I come back, the programs take a long time to respond - any ideas on how to fix this?
    thanks in advance.

    This is what Disk Utility says when I try to verify:
    Verifying volume “Hard Drive”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Overlapped extent allocation (file 479297)
    Overlapped extent allocation (file Overlapped extent allocation (file plications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs/eco85.html)
    Overlapped extent allocation (file 640270 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs/eco9.html)
    Overlapped extent allocation (file 640272 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/dev.html)
    Overlapped extent allocation (file 640273 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/dw.html)
    640273 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/dw.html
    ped extent allocation (file %@)",1)
    640274 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/kbshortcuts.html
    Overlapped extent allocation (file 640275 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/la.html)
    Overlapped extent allocation (file 640276 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/sp.html)
    Overlapped extent allocation (file Overlapped extent allocation (file Japanese.lproj/Backup Help/pgs2/tips.html)
    Overlapped extent allocation (file 640278 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/toc01.html)
    Overlapped extent allocation (file 640279 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/toc02.html)
    Overlapped extent allocation (file 640280 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/toc03.html)
    640280 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/toc03.html
    640281 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/toc04.html
    Overlapped extent allocation (file 640282 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/toc06.html)
    Overlapped extent allocation (file 640283 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/pgs2/tocstart.html)
    Overlapped extent allocation (file Overlapped extent allocation (file /wn.html)
    Overlapped extent allocation (file 640286 /Applications/Backup.app/Contents/Resources/Japanese.lproj/Backup Help/shrd/nav.js)
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Volume Bit Map needs minor repair
    Checking volume information.
    Invalid volume free block count
    (It should be 2799915 instead of 2799941)
    Volume Header needs minor repair
    The volume Hard Drive needs to be repaired.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    Volume needs repair

  • Currently have 30K pics on PC Win. 7 laptop using  PSE 8, corrected issues and did full backup on portable hard drive plus saved (Extensive) Keyword tags to file.  Installed PSE 13 on PC Win 8.1 laptop.  Will attach same portable Hard drive to new laptop.

    Currently have 30K pics on PC Win. 7 laptop using  PSE 8, corrected issues and did full backup on portable hard drive plus saved (Extensive) Keyword tags to file.  Installed PSE 13 on PC Win 8.1 laptop.  Will attach same portable Hard drive to new laptop. How do I import prev Keyword Tags from file and Restore catalog from port. HD to new PC and in what order?  I have not opened PSE 13 on new PC yet. Would like to do it right the first time!

    No importing needed.
    See these instructions: Use Backup, Restore to move catalog | Organizer | Elements 6 or later

  • [solved][laptop-mode-tools] hard drive power settings not applied

    I've used the laptop-mode-tools now for quite some time. However, recently the power management settings are not applied anymore. Possibly since updating to systemd...
    My laptop-mode.conf looks as follows:
    CONTROL_HD_POWERMGMT=1
    # Power management for HD (hdparm -B values)
    BATT_HD_POWERMGMT=254
    LM_AC_HD_POWERMGMT=254
    NOLM_AC_HD_POWERMGMT=254
    However, even after doing a systemctl restart laptop-mode-tools.service I always get
    $ sudo hdparm -B /dev/sda
    /dev/sda:
    APM_level = 96
    Setting it manually works:
    $ sudo hdparm -B 254 /dev/sda
    /dev/sda:
    setting Advanced Power Management level to 0xfe (254)
    APM_level = 254
    $ sudo hdparm -B /dev/sda
    /dev/sda:
    APM_level = 254
    Of course, the settings are lost upon rebooting in this case.
    Any idea where the problem could be?
    Last edited by rggjan (2012-10-08 12:25:04)

    I apologize if it is bad style to answer to a post marked as [solved] but:
    Same problem here!
    HDParm-settings are not applied on boot by LMT.
    laptop-mode.conf:
    # Should laptop mode tools control the hard drive power management settings?
    # Set to 0 to disable
    CONTROL_HD_POWERMGMT="auto"
    # Power management for HD (hdparm -B values)
    BATT_HD_POWERMGMT=100
    LM_AC_HD_POWERMGMT=200
    NOLM_AC_HD_POWERMGMT=254
    # hdparm -B /dev/sda
    /dev/sda:
    APM_level = 96
    Any ideas or solutions on this so far?
    And why is this post marked as 'solved'?
    edit:
    1.) manual set hdparm-settings survive reboot but not suspend!
    2.) no difference between CONTROL_HD_POWERMGMT="auto" or "1"
    3.)
    # systemctl status laptop-mode
    laptop-mode.service - Laptop Mode Tools
    Loaded: loaded (/usr/lib/systemd/system/laptop-mode.service; enabled)
    Active: active (exited) since Do 2013-01-24 14:05:20 CET; 8min ago
    Process: 664 ExecStart=/usr/sbin/laptop_mode init auto (code=exited, status=0/SUCCESS)
    4.) pointed out that this seems to be a bug: https://bugs.archlinux.org/task/33262 as systemd does not restore apm values on wake up.
    Last edited by renegat (2013-03-09 11:01:42)

  • Hard drive power cable

    I bought a graphite imac and need a hard drive power cable.Will any cable from a slot loading crt imac work?Whats the part #?I do have one for a tray loading imac but its different.Thanks!

    Nope I'm wrong. It appears to be the same width as a SCSI cable at the logic end (I've got a SCSI and it plugs in fine) and IDE on the HD end.
    You could actually make it work with the IDE part of that tray loaders cable. I have both there and will test if you like. Only the HD would work.
    I may have some spares here if you need one.
    Richard

  • Disk Utility and DiskWarrior trouble with external hard-drive.

    I got an external hard-drive that doesn't show up on finder. On both Disk Utility and DiskWarrior it keeps mounting and unmounting. Disk Utility when trying to repair, spits this out when it unmounts...
    2011-07-28 22:43:43 -0700: Problems were encountered during repair of the partition map
    2011-07-28 22:43:43 -0700: Error: Some information was unavailable during an internal lookup.
    2011-07-28 22:43:43 -0700: : Some information was unavailable during an internal lookup.
    2011-07-28 22:43:43 -0700: [DUDiskController mountDisk] expecting DUDisk, but got nil
    On DiskWarrior it simply says 'Directory cannot be rebuilt due to disk hardware failure (-36,2747)
    Earlier today it would stay mounted and Disk Utility would spit out...
    Verify and Repair volume “Back-up Hard Drive”
    Checking file systemChecking Journaled HFS Plus volume.
    Checking extents overflow file.
    Checking catalog file.
    Invalid sibling link
    Rebuilding catalog B-tree.
    Invalid node structure
    The volume Back-up Hard Drive could not be repaired.
    Volume repair complete.
    Updating boot support partitions for the volume as required.
    Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    while DiskWarrior would try to fix it, but on
    Step 5: Locating directory date...
    Speed reduced by disk malfunction: 339,474, er make that 340,239, er make that 341,327
    and I finally gave up there.
    I try to fix the Invalid sibling link error via Terminal and I get this...
    imac-2:~ Migrated$ fsck_hfs -r /dev/disk2s2
    ** /dev/rdisk2s2 (NO WRITE)
    Can't open /dev/rdisk2s2: Resource busy
    Is there ANY THING I can do to get it to stay mounted and possibly fix this? This is my back-up hard-drive!!

    It's the cord that's being used that decides if it shows up, or if it shows up and then goes away over and over. Using a cord where it stays on in the programs, when I run Disk Utility of the darked out part of the hard-drive, it spits out...
    Verifying and repairing partition map for “MICRONET”
    Checking prerequisites
    Checking the partition list
    Checking for an EFI system partition
    Checking the EFI system partition’s size
    Checking the EFI system partition’s file system
    Checking all HFS data partition loader spaces
    Reviewing boot support loaders
    Checking Core Storage Physical Volume partitions
    Updating Windows boot.ini files as required
    The partition map appears to be OK
    while the part of the disk just below it that's light spits out
    Verifying volume “Back-up Hard Drive”
    Checking file system
    Error: This disk needs to be repaired. Click Repair Disk.
    Verify and Repair volume “Back-up Hard Drive”
    Starting repair tool:
    Checking file system
    Volume repair complete.
    Updating boot support partitions for the volume as required.
    Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    Disk Utility stopped repairing “Back-up Hard Drive”: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    while DiskWarrior tries to rebuild it and spits out a memory error.

  • Disk utility recomends backing up files after hard drive can not be repaired?

    My Mac mini will not complete the boot process. I am able to get to the disk utility by using the Snow Lepard disk that I recently purchased and pressing the option key. Disk utility is telling be that my disk can not be repaired and I should back up as much data as I can and reload the software.
    Is there another disk repair program that could possibly fix what disk utility can not? Is it worth a try?
    If not...
    How do I back up data on the mounted disk since I can not access it? Do you recommend a perticular external hard drive and software to manage my backups?
    Thank you.

    Welcome to Apple Support Communities allensood!
    You will get a wider audience and won't confuse the original poster with solutions that don't apply to them, if you start your own topic here
    https://discussions.apple.com/community/desktop_computers/mac_mini?view=discussi ons
    Unless you have a solution to try for the original poster, it is always best if you start your own topic.

  • Disk Utility does not show my internal hard drive.

    Recently, my Macbook Pro crashed.
    THE PROBLEM
    1. I turn it on, it starts normally at first, the Apple Logo Shows for several seconds
    2. It changes to a no-smoking sign without the cigarette
    3. If I try to boot safe mode, a folder appears with a question mark
    4. If I try the internet recovery, I get to the part where I can restore OSX, use disk utility, etc.
    5. When I try to restore OSX, it doesn't show my hard drive as avilable to install upon - no drives are shown
    6. When I try to use disk utility, it only shows my Mac Base System, totaling 2GB, I cannot do anything.
    THE QUESTIONS
    1. What do I do? Thoughts? How do I recover my hard drive data before sending this computer to Apple to fix?
    2. How can I use an external enclosure to recover my data using my desktop? What cords do I need? What is a good drive? Is it hard?
    3. My SD card slot shows, could I install OSX on that and try to load my OSX to gain access to my harddrive that's missing?
    4. Why would my main hard drive not show? I'm supposed to have a 250GB hard drive.
    5. Is there anything I can do on Terminal to try to make my full hard drive appear? Or gain access?
    6. What will Apple do with my RAM that I installed? I upgraded to 8GB? Will they just return as is?
    Thank you.
    Model: MBP from Mid-2010 13" running OSX Mountain Lion 250GB HD

    Youre working the wrong end trying to revive a dying drive, a replacement is only $65
    Did you have a backup of your vital data?
    Terminal isnt going to do anything to help your HD.
    questions:
    1.  get a new HD, install OS........recovery internal HD data using another computer and throwing the internal HD into a USB enclosure to extract data......however depending on the HD, data extraction may prove futile.
    2. external USB enclosure, comes with USB cable....takes 3 mins to put internal HD into enclosure.
    3. no,...... installing OS on a dying drive is beating a dead horse,...
    4. because its dead/ dying.
    5. no
    6. Yes, they wont mess with your RAM.
    Contact Apple for fix, of if you have the skills you can install a new HD yourself

  • Disk utility won't restore to external hard drive.

    I recently installed Leopard on my Imac G5. I tried to "restore" the HD to a USB external hard drive. It said it would take 15 hours and when I came back - the time machine window was up and had a failure message as did the disk utility for the restore. Does the time machine need to be turned off to successfully restore the HD to an external hard drive?

    Also worth noting that, if your drive has a FireWire interface, use that instead of USB. While the theoretical max speed of USB2 is faster than FireWire 400, in real-world conditions FW will blow the socks off USB. And if you're purchasing an external drive, it repays on the long run to pay a little more to purchase one with FW. And, of course, if FW400 is faster, FW800 is out of sight.

  • Disk Utility says I have a corrupt hard drive...

    Had a problem with an application and was advised to run Repair Permissions in Disk Utility (it was fixed when I did that).
    Out of curiosty I ran Verify Disc on my hard drive and was shocked to find the following message:
    ...In valid directory count
    ...The volume Macintosh HD was found corrupt and needs to be repaired
    ..."This disk needs to be repaired. Start up your computer with another disk (such as your Mac OS X installation disc), and then use Disk Utility to repair this disk."
    I'm unsure how to proceed. The iMac didn't come with a installation disc.
    How can I repair this?
    Thanks

    Repair the Hard Drive and Permissions - Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    To boot from the Recovery HD restart the computer. After the chime hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.

  • Disk utility / Startup disk is full when hard drive is more than 400 GB available

    Hello, I have an iMac and I want to sell it, I wiped it out and reset to factory settings, so it has more than 450GB free, I am running the disk utility to Erase Free Space and to make sure the personal info its completely remove, but it's telling me half way through that my start up disk is full and then the Disk Utility just stops and it wont finish the process, I have to force quit disk utilities
    Does someone know how can I fix this? Thank you so much

    I was trying to clean up my hard drive and did the same thing.  Do you have a file that was created to clean up in your trash?  That may be why your hard drive is now full.  I am in the process of trying to empty my trash to get rid of that file and the system won't let it erase all the way.  I have a question out there for that as well.

  • Using Disk Utility Restore function to clone external hard drives

    Hi all,
    I have a WD 3Tb My Book external hard drive which I want to use as a replacement for an older WD 1Tb My Book external hard drive. I would like to use Disk Utility's built-in Restore function to clone my old external hard drive onto my new external hard drive. Unfortunately, Disk Utility will not allow me to drag the new drive to the "Destination" box; I can drag the old drive to the "Source" box just fine. Why is this? Am I doing something wrong?
    It might be important to note that my old external drive is formated to FAT32, whereas the new drive came pre-formatted to NTFS. Do I need to reformat the new drive to FAT32 before dragging the disk to the "Destination" box? In other words, do the source and destination drives need to be the same format in order to use Disk Utility's Restore function?
    Thanks very much in advance.

    Are these drives being used on Windows machines? If so then you will need to create a new partition from the Partition Scheme dropdown menu after which you can set the scheme to MBR. If the drives are being used only on the Mac then you have to prep the new drive as follows:
    Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (for Intel Macs) or APM (for PPC Macs) then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    After you copy your files from the old drive to the new one you want to repartition and reformat the old drive in the same way as outlined immediately above.

  • External hard drive will not stop spinning even after partition

    Just been on to WD   As i had a 320 passport that would not stop spinning ,
    After contacting them i discovers all 5 are doing the same. Other brands too.  They get hot, The 320 I did a full mac HD disc utility check, partitioned , All fine , but the Ext HD still keeps spinning, WD company said its a problem with the computer,
    So i have done the same test and repair on permissions on the main internal mac drive.
    So what’s Causing this ?  WD do there own diagnostics, Only on windows.
    I have read the other forum here on the matter  but could not make any sence of it,
    A resolve would be good , thank you

    Perhaps some application is using the hard drives... check "Activity Monitor" in Applications>Utilities and see if you can figure out what might be doing it.
    Some ideas are any virus scanning program, any hard disk monitoring program, and spotlight. You could try going to Spotlight Preferences (in System Preferences) and adding your hard drives to the Privacy tab.
    Hope this helps!
    www.briancometa.com

  • Everything is in slow motion and the hard drive doesn't stop spinning

    Against my better judgement I finally upgraded to Maverick on my iMac thinking the bugs would be worked out.  I upgraded on my MacBook Air on day one and that turned out to be a huge mistake.  It is taking Mail 30 minutes to load, the hard drive doesn't stop, and it takes seconds for each movement once I click on something.  Anything I can do to get back the performance?  I understand it is too late to go back to Mountain Lion.

    If you don't have one already, make a backup of all your data right away.
    While most bugs in 10.9 Mavericks have been taken care of this does not stop your system from corrupting or bringing out already present issues when upgrading. Your system was likely already having problems (even if you did not know about it), an update/upgrade will bring those out.
    Once you have a backup, restart your Mac from the recovery partition (restart, hold down the 'Option' key when you hear the chime and select the recovery partition, then hit enter) and open Disk Utility. In Disk Utility, select your 'Macintosh HD' in the left column and click "verify disk" on the right. If issues are found run the 'repair disk' command. Also run the 'repair permissions' command (no need to verify).
    If you see 'Macintosh HD' in red lettering in the left column it means your hard drive is failing and needs to be replaced.

Maybe you are looking for