Re: APM on new iBook G3 HD
At Sat, 12 Aug 2006 00:30:40 +0200, Johannes Volkmann wrote:
>
> I have an iBook G3 700 Mhz here, running an 2.6.17.6 and a debian
> sid. Runs fine so far, sleepmode works etc. Unfortunately I had an
> HD failure and had to replace the HD. I bought an SAMSUNG MP0804H
> and replaced it. I have not been able to stop this disk from running
> so far!
>
> If I try to enable apm via hdparm, it gets me no errors:
> # hdparm -k 1 -B 150 /dev/hda
>
> /dev/hda:
> setting keep_settings to 1 (on)
> setting Advanced Power Management level to 0x96 (150)
> keepsettings = 1 (on)
>
> It prints no errors, neither on the terminal, nor in any logfile I
> checked. But still, it doesn't change the setting, the harddisk is
> running all the time and hdparm shows me, it changed nothing:
> # hdparm -i /dev/hda
>
> /dev/hda:
>
> Model=SAMSUNG MP0804H, FwRev=UE100-19, SerialNo=S042J10L253128
> [...]
> AdvancedPM=yes: disabled (255) WriteCache=enabled
> [...]
Did this work with your previous harddrive?
The harddrive in my iBook G4 (Toshiba) also lets me adjust the
setting, but when using the '-i' option, I get this:
AdvancedPM=yes: unknown setting WriteCache=enabled
But I've never actually used the "-B" option. I always use the "-S"
option of hdparm to specify a timeout for the drive to spin down after
a given period of inactivity.
> What can I do about it? It is not very healthy for the hd to run all
> the time, I can hear it scratching if I move the machine.
Are you using journalled file systems? If so, then it's possible that
the harddrive never gets a chance to spin down, because the journal is
committed regularly. You can try to explicitly specify the commit
interval as a mount option. Or you can check out laptop-mode-tools:
this is a script that relies on the laptop-mode feature in the Linux
kernel to delay and group disk writes, so as to minimise the time that
the disk is spun up.
Ruben
Reply to: