summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-11-30 20:05:46 +0000
committerPeter Jones <pjones@redhat.com>2006-11-30 20:05:46 +0000
commit44a852c154905bfbdf71001e8fa1e815a6bc5a7c (patch)
treeb94c43fc48f93d696c434c1d77ef5daf90e1f125 /pm
parentff1c00e625db258eb0537f285f382c52366e598c (diff)
- don't stop services or remove modules during suspend, just turn off the
device. (This needs some more work on non-thinkpad machines, I think...)
Diffstat (limited to 'pm')
-rwxr-xr-xpm/hooks/49bluetooth21
1 files changed, 1 insertions, 20 deletions
diff --git a/pm/hooks/49bluetooth b/pm/hooks/49bluetooth
index 17d9e41..1ae8211 100755
--- a/pm/hooks/49bluetooth
+++ b/pm/hooks/49bluetooth
@@ -4,28 +4,16 @@
suspend_bluetooth()
{
- stopservice dund
- stopservice pand
- stopservice hidd
- stopservice bluetooth
-
if [ -f /proc/acpi/ibm/bluetooth ]; then
savestate ibm_bluetooth $(awk '{ print $2 ; exit; }' /proc/acpi/ibm/bluetooth)
+ echo disable > /proc/acpi/ibm/bluetooth
else
savestate ibm_bluetooth missing
fi
-
- for x in rfcomm hidp l2cap ohci1394 ieee1394 hci_usb bluetooth ; do
- modunload $x
- done
}
resume_bluetooth()
{
- for x in bluetooth hci_usb ieee1394 ohci1394 l2cap hidp rfcomm ; do
- modreload $x
- done
-
case "$(restorestate ibm_bluetooth)" in
enabled)
echo enable > /proc/acpi/ibm/bluetooth
@@ -33,14 +21,7 @@ resume_bluetooth()
disabled)
echo disable > /proc/acpi/ibm/bluetooth
;;
- *)
- ;;
esac
-
- restartservice bluetooth
- restartservice hidd
- restartservice pand
- restartservice dund
}
case "$1" in