diff options
author | Peter Jones <pjones@redhat.com> | 2006-11-30 20:05:46 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-11-30 20:05:46 +0000 |
commit | 44a852c154905bfbdf71001e8fa1e815a6bc5a7c (patch) | |
tree | b94c43fc48f93d696c434c1d77ef5daf90e1f125 /pm | |
parent | ff1c00e625db258eb0537f285f382c52366e598c (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-x | pm/hooks/49bluetooth | 21 |
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 |