Package: laptop-mode-tools
Version: 1.47-1
Followup-For: Bug #495036

        I have a similar issue on a Thinkpad Z61t.  When I plug/unplug the
AC adapter, laptop_mode is not invoked to change the power settings.  Since
/proc/acpi/event (and therefore 'acpid') is deprecated, everything's moving
to pm-utils.

        Attached is a quick bash script I wrote that plugs in to the
pm-utils framework and runs laptop_mode when the power state changes.  It
should be placed in  /etc/pm/power.d .  You may wish to add it or its moral
equivalent to the laptop-mode-tools distribution.

                                        Thanks,
                                        Schwab

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

Kernel: Linux 2.6.26 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages laptop-mode-tools depends on:
ii  lsb-base                      3.2-20     Linux Standard Base 3.2 init scrip
ii  psmisc                        22.6-1     Utilities that use the proc filesy
ii  util-linux                    2.13.1.1-1 Miscellaneous system utilities

Versions of packages laptop-mode-tools recommends:
pn  acpid | apmd | pbbuttonsd | <none>       (no description available)
ii  ethtool                     6+20080913-1 display or change Ethernet device 
ii  hal                         0.5.11-8     Hardware Abstraction Layer
ii  hdparm                      8.9-3        tune hard disk parameters for high
ii  sdparm                      1.02-1       Output and modify SCSI device para

laptop-mode-tools suggests no packages.

-- no debconf information
#!/bin/sh
#
# 51laptop-mode: Apply laptop mode tools settings on power change.
#
# Leo L. Schwab						2009-02-16
#
LAPTOP_MODE=/usr/sbin/laptop_mode

if [ -x "$LAPTOP_MODE" ]; then
	case "$1" in
	true|false)
		$LAPTOP_MODE auto
		;;
	esac
else
	# laptop-mode-tools not installed.
	exit $NA
fi

exit 0

Reply via email to