|
Replies
:
10
-
Pages
:
1
-
Last Post
:
Jan 2, 2009 2:18 AM
by: Andreascy
|
|
|
Posts:
68
From:
Arizona, USA
Registered:
Mar 19, 2007
|
|
|
|
hdapm - How do I do this?
Posted:
Feb 1, 2008 5:11 PM
|
|
|
I am trying to use hdapm to keep the new hitachi drive I put in my MBP from parking the heads so often and noisily. Anyhoo, I put the two files into the suggested locations (quadruple checked), restarted, and nothing seemed to happen. There wasnt anything in my /var/log/system.log indicating the program had run. The developer said I should see something like:
Dec 15 01:20:06 BryceBook hdapm51: disk0: WDC WD2500BEVS-22UST0
Dec 15 01:20:06 BryceBook hdapm51: Setting APM level to 0xfe:
Dec 15 01:20:06 BryceBook hdapm51: Success
Now he is saying to run it from terminal, but I really dont know how. I dont have much time to learn about terminal right now, though I'd like to, but I do really want my drive to be quieter and I'm hoping this'll work. Any help on getting this to run would be most appreciated.
Thanks
installation instructions from read me file with hdapm download:
Installation
Copy hdapm to somewhere on your system - I suggest /usr/local/bin. If you want to have hdapm run automatically at startup, also copy the hdapm.plist to /Library/LaunchDaemons
Note that you may need to edit hdapm.plist with your desired settings. By default it assumes you installed the hdapm binary in /usr/local/bin, and will set the primary drive (disk0) to the maximum performance APM level.
Usage
hdapm device level
Example: hdapm disk0 max
Message was edited by: solar servant
MBP C2D 15" 2.16/3GB/250GB
Mac OS X (10.4.11)
XP SP2 iMac G4 700/512MB, MB C2D 2.0/1.5GB
|
|
Posts:
131
Registered:
Aug 18, 2007
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Apr 6, 2008 9:55 AM
in response to: solar servant
|
|
|
Hi
Don't know if this will help, but it worked for me:
There is no way to fix this through System Preferences. Unchecking "Put the hard disks to sleep when possible" has no effect, nor does pushing the slider to never sleep.
The fix is unfortunately a little long winded but it works, and I'm ecstatic. Here it is:
Hard drive behaviour must be modified at a lower level, i.e. power management.
hdapm is the answer.
1) Enable root user: Open Directory Utility located in Application » Utilities. You may have to unlock Directory Utility to make changes. Once it's unlocked, go to Edit » Enable Root User, and then type in a password for your root user. Now logout and there will be an option for Other user. Log in as "root" and use your root user password.
2) Create usr/local/bin folder :
/usr/local/bin doesn't exist by default. You have to create it.
To create the folder (if it doesn't exist already) and open a Finder window:
In the terminal... (Utilities/Terminal) enter these 3 commands in succession
sudo mkdir -p /usr/local/bin
cd /usr/local/bin
open .
3) Download hdapm, a command line utility for hard drive power management, here: http://mckinlay.net.nz/hdapm/
4) Drag and drop hdapm executable into usr/local/bin and hdam.plist into Library/LaunchDaemons (to enable hdapm to run at every startup)
Reboot. Your hard drive is now running at maximum power settings.
FIXED! NO MORE CLINKING/CHIRPING NOISES
Disable root user
Mac Pro 8-Core 5GB RAM 4TB, Eizo S2411W, 2.4 SR MBP Glossy 7200, MB 2.16 2GB
Mac OS X (10.5.2)
|
|
Posts:
54
Registered:
Jan 11, 2006
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Jun 5, 2008 11:52 AM
in response to: solar servant
|
|
|
A slightly less intrusive way of doing the stuff mentioned by gasboy. This works when your user account is an administrator on the system.
Open the diskimage and copy the files to your home directory (with the house icon). Open Terminal (find it with Spotlight). You will need to copy the lines the begin with the $-sign to the Terminal, don't copy the $ itself though.
$ sudo mkdir /usr/local/bin
It will ask for your password. And might lecture you a bit about admin rights. After that it will make the required directory for the program to live in.
$ sudo ~/hdapm disk max
This will set your main disk disk to maximum performance == no clicks
$ sudo cp ~/hdapm /usr/local/bin/
$ sudo cp ~/hdapm.plist /Library/LaunchDaemons/
This will install the program and run it every boot.
Message was edited by: Henk Poley
Mac Mini 1.25GHz 1GB & MacBook CD 2GHz 2GB
Mac OS X (10.5.3)
|
|
Posts:
9,714
From:
San Jose, CA
Registered:
Mar 13, 2002
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Jun 5, 2008 1:01 PM
in response to: gasboy
|
|
|
1) Enable root user:
There is no need to do this, especially since in step 2 you:
sudo mkdir -p /usr/local/bin
If you're logged in as root, you don't use sudo. If you're not logged in as root, sudo temporarily elevates your privileges to let you do things that normally only root could do.
Mac OS X (10.5.2)
|
|
Posts:
83
From:
Minnesota
Registered:
Nov 16, 2007
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Aug 24, 2008 3:37 PM
in response to: Henk Poley
|
|
|
Has anyone noticed that with hdapm tool running, the OS won't let your system sleep? I have my MacBook Pro set to sleep after 45 minutes, but it never does. Is there a way around this?
MacBook Pro 2.4
Mac OS X (10.5.1)
200GB 7200rpm Hitachi
|
|
Posts:
7
From:
UK
Registered:
Nov 7, 2008
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Nov 7, 2008 2:08 PM
in response to: solar servant
|
|
|
I've installed this an it seems to have stopped the horribly clicking coming from my new MacBook's HDD. Is this safe to do then? What does it actually DO ?
MacBook 5,1
Mac OS X (10.5.5)
|
|
Posts:
4
From:
Coventry. Uk
Registered:
Nov 18, 2008
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Nov 18, 2008 12:07 PM
in response to: Henk Poley
|
|
|
Thanks for the responses. Thought I'd try Henk Poley's way as it looked a bit easier. As mentioned my user account is an administrator. I got as far as the first line in terminal, then it warned me about data loss and asked me for the password. After that it wont allow me to input anything. This is also as far as I got after trying Gasboys method. (Managed to enable root user and assign password, but fell over with password in terminal) Any ideas?
13" Macbook Titanium
Mac OS X (10.5.5)
|
|
Posts:
6,673
From:
London
Registered:
Apr 30, 2002
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Nov 18, 2008 3:04 PM
in response to: Chrisl46
|
|
|
Thought I'd try Henk Poley's way … I got as far as the first line in terminal, then it warned me about data loss and asked me for the password. After that it wont allow me to input anything. This is also as far as I got after trying Gasboys method.
What Henk failed to mention is that when it asks for your password, it also turns off echoing back what you type (not even asterisks) for security reasons: just type your password and press return. gasboy didn't even mention the password.
So try again, and don't make a typo!
iBook dual USB (10.4.11), MacBook
Mac OS X (10.5.5)
|
|
Posts:
79
Registered:
Mar 9, 2008
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Nov 25, 2008 12:30 AM
in response to: ojhaslam
|
|
|
this seems to be a huge issue.
linux folks have been aware of this for a long time.
read this 90 page thread.
http://ubuntuforums.org/showthread.php?t=591503
similar issue is going on here.
my guess is that apple thinks replacing a HDD every year (or every 6 months) is less important than heat issues........
|
|
Posts:
1
From:
Russia
Registered:
Dec 10, 2008
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Dec 10, 2008 8:04 AM
in response to: solar servant
|
|
|
You may have problem with permissions. Apple documentation states that daemons and their property lists must be owned by root user and must not be group or world writable.
Mac.*
Mac OS X (10.5.5)
|
|
Posts:
13
From:
Cyprus
Registered:
Nov 11, 2008
|
|
|
|
Re: hdapm - How do I do this?
Posted:
Jan 2, 2009 2:18 AM
in response to: Andrey Afanasiev
|
|
|
i followed all instructions for installing hdapm. i restart my macbook alu and i continue hearing the clicking sound.
what to do?
i have western digital black scorpio 7200
macbook 13 aluminum
Mac OS X (10.5.6)
|
|
|