Hi Lea,

Lea Wiemann wrote:
> /etc/acpi/*/90-hdparm.sh sets the APM mode to 254 or 128 (-B 128 / -B
> 254).  This fails in VMware guests, for both SCSI and IDE devices.  I
> suggest you apply the attached patch to 90-hdparm.sh, which prevents
> the APM mode from being set if Linux is running on a virtual machine.
> 
> Also, there are 4 copies of 90-hdparm.sh in /etc/acpi:
> 
> ac.d/90-hdparm.sh
> battery.d/90-hdparm.sh
> resume.d/90-hdparm.sh
> start.d/90-hdparm.sh
> 
> I suggest you either apply the patch to all four, or you apply it to
> one of them and turn the other three scripts into symlinks.

Interesting. Could you do a hdparm -i on a VM's hard drive and show me
the results? The line:

  if hdparm -i $dev | grep -q 'AdvancedPM=yes' ; then

is supposed to filter out hard drives that can't handle it. It might be
that VMWare's drives say they do AdvancedPM and then fail anyway if you
try it.

BTW, why are you running the acpi-support package on a VM? The
acpi-support package basically does suspend (which VMWare does very well
without OS support) and laptop hotkey translation, so either this is by
accident, or you have some special reason that I would definitely like
to know about.

It's a bit late to make the scripts symlinks now, so if I apply the
patch, they will need to be applied to all four. I think there was
originally a reason for not making them symlinks, I just can't remember
what that reason was. Maybe it was just that there is no "script
repository" directory in acpi-support, like there is for init scripts in
/etc/init.d/. I would have had to make a folder /etc/acpi/scripts.d. Too
much work at the time for just a single script, I guess. :-)

Cheers,
Bart



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to