[ltp] thinkpad t43 suspend

Thomas Roessler linux-thinkpad@linux-thinkpad.org
Fri, 12 Aug 2005 13:29:32 +0200


On 2005-08-08 10:31:27 +0200, Hilmar Simon wrote:

> does your bluetooth work after wakeup? Which Kernel do you use?

To get bluetooth to work after wakeup, make sure you remove your usb
modules before suspend, and re-add them afterwards.

(See below for my suspend script.)

--=20
Thomas Roessler =B7 Personal soap box at <http://log.does-not-exist.org/>.



#!/bin/sh

/usr/bin/dbus-send --system --dest=3Dorg.freedesktop.NetworkManager \
	--type=3Dmethod_call \
	/org/freedesktop/NetworkManager \
	org.freedesktop.NetworkManager.sleep

/sbin/service mDNSResponder stop
/sbin/service ntpd stop
/sbin/hwclock --systohc --utc

echo disable > /proc/acpi/ibm/bluetooth
/sbin/rmmod uhci_hcd
/sbin/rmmod ehci_hcd
/sbin/rmmod hci_usb

echo -n mem > /sys/power/state

/sbin/modprobe uhci_hcd
/sbin/modprobe ehci_hcd
/sbin/modprobe hci_usb
echo enable > /proc/acpi/ibm/bluetooth




/sbin/hwclock --hctosys --utc
/sbin/chkconfig ntpd && /sbin/service ntpd start
/sbin/chkconfig mDNSResponder && /sbin/service mDNSResponder start

/usr/bin/dbus-send --system \
	--dest=3Dorg.freedesktop.NetworkManager \
	--type=3Dmethod_call \
	/org/freedesktop/NetworkManager \
	org.freedesktop.NetworkManager.wake

for if in `tail +3 /proc/net/wireless | awk -F: '{print $1}'`; do
	iwconfig $if power on
done

/sbin/chkconfig irda && /sbin/service irda restart