Package: laptop-mode-tools
Version: 1.32-1
Severity: normal
Tags: patch
On my iBook, if I suspend and then resume, laptop-mode no longer works.
Running '/etc/init.d/laptop-mode restart' does the trick, so I've
included a patch to etc/power/scripts.d/laptop-mode that makes it
recognize a 'resume' argument and run the above command. (This might
need to happen on other architectures as well; I don't have another
laptop that actually suspends properly so I'm not sure.)
Thanks,
John
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2jsw1-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages laptop-mode-tools depends on:
ii lsb-base 3.1-15 Linux Standard Base 3.1 init scrip
Versions of packages laptop-mode-tools recommends:
ii apmd 3.2.2-8 Utilities for Advanced Power Manag
ii hdparm 6.8-1 tune hard disk parameters for high
ii pbbuttonsd 0.7.5-2 PBButtons daemon to handle special
pn sdparm <none> (no description available)
-- no debconf information
=== modified file 'etc/power/scripts.d/laptop-mode'
--- etc/power/scripts.d/laptop-mode 2006-11-12 09:03:52 +0000
+++ etc/power/scripts.d/laptop-mode 2006-11-12 09:06:19 +0000
@@ -27,6 +27,9 @@
performance)
$LMODE "stop"
;;
+ resume)
+ /etc/init.d/laptop-mode restart
+ ;;
esac
elif [ -x logger ]; then
logger -p daemon.error -t laptop-mode "Laptop-mode support missing in
kernel."