Package: laptop-mode-tools Version: 1.27-1 Severity: normal Tags: patch Hello,
When laptop-mode is activated and battery power is plentiful, laptop-mode disables write caching regardless of the settings in the configuration file. The following patch fixes the problem. Thanks, Ken --- /usr/sbin/laptop_mode 2006-02-19 10:10:02.000000000 -0500 +++ /usr/sbin/laptop_mode 2006-02-19 10:09:41.000000000 -0500 @@ -1239,10 +1239,12 @@ if [ $CONTROL_HD_WRITECACHE -eq 1 ] ; then # The writecache may only be enabled when data-loss sensitive # features are active. - if [ "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq 0 ] ; then - HD_WRITECACHE=0 - elif [ "$ACTIVATE" -eq 1 ] ; then - HD_WRITECACHE=$LM_HD_WRITECACHE + if [ "$ACTIVATE" -eq 1 ] ; then + if [ "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq 0 ] ; then + HD_WRITECACHE=0 + else + HD_WRITECACHE=$LM_HD_WRITECACHE + fi else if [ $ON_AC -eq 1 ] ; then HD_WRITECACHE=$NOLM_AC_HD_WRITECACHE -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15 Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8) laptop-mode-tools depends on no packages. Versions of packages laptop-mode-tools recommends: ii acpid 1.0.4-5 Utilities for using ACPI power man ii apmd 3.2.2-5 Utilities for Advanced Power Manag ii hdparm 6.3-3 tune hard disk parameters for high ii sdparm 0.96-1 Output and modify SCSI device para -- no debconf information -- Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig Q. What do you call a sheep covered in chocolate? A. ... A ... Chocolate ... BAA!!!
signature.asc
Description: Digital signature