Package: acpi-support
Version: 0.103-5
Severity: normal
Tags: patch

/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.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages acpi-support depends on:
ii  acpi-support-base             0.103-5    scripts for handling base ACPI eve
ii  acpid                         1.0.4-7.1  Utilities for using ACPI power man
ii  dmidecode                     2.9-1      Dump Desktop Management Interface 
ii  finger                        0.17-12    user information lookup program
ii  hdparm                        8.6-1      tune hard disk parameters for high
ii  laptop-detect                 0.13.6     attempt to detect a laptop
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  lsb-base                      3.2-11     Linux Standard Base 3.2 init scrip
ii  nvclock                       0.8b3-1    Allows you to overclock your nVidi
ii  powermgmt-base                1.30       Common utils and configs for power
ii  radeontool                    1.5-5      utility to control ATI Radeon back
ii  toshset                       1.73-2     Access much of the Toshiba laptop 
ii  vbetool                       1.0-3      run real-mode video BIOS code to a
ii  x11-xserver-utils             7.3+2      X server utilities

acpi-support recommends no packages.

-- no debconf information
--- 90-hdparm.sh~       2007-12-13 14:35:00.000000000 -0500
+++ 90-hdparm.sh        2008-05-17 17:22:27.000000000 -0400
@@ -15,6 +15,9 @@
     DO_HDPARM=n
   fi
 fi
+if [ "`which vmware-checkvm`" -a vmware-checkvm > /dev/null ]; then
+  DO_HDPARM=n
+fi
 
 if [ $DO_HDPARM = y ] ; then
   AC_POWER=$( /usr/bin/on_ac_power; echo $? )

Reply via email to