[Bug 128795] Re: [Gutsy] bluetooth device goes away after suspend or hibernate

BryanFRitt BryanFRitt at HotMail.com
Sat Jul 25 03:37:43 BST 2009


I found about this file from 
http://ubuntuforums.org/archive/index.php/t-944614.html
/usr/lib/pm-utils/sleep.d/20swapctl
You might have to have pm-utils installed for this to work

Upon hibernation, this fixes Bluetooth problem, and might fix an
external NTFS partition mount problem(uncomment lines and add mount
point, if you want to try it), and having data in swap(the
swapon/swapoff lines)[curious as to if adding this swap stuff really
helps/hurts, instead of just makes me feel better]

For this I took their code, modified it, and made the file executable,
[and used sudo] with the following in it:

#!/bin/bash

#/usr/lib/pm-utils/sleep.d/20swapctl
#MOUNTSPOT='If you choose to add this, Your mount spot goes here'

case "$1" in
hibernate|suspend)
#if mount | grep $MOUNTSPOT -m 1 > /dev/null
#then
#	umount $MOUNTSPOT;
#fi
/etc/init.d/bluetooth stop > /dev/null
swapoff -a;
swapon  -a;
;;
thaw|resume)
swapoff -a;
swapon  -a;
/etc/init.d/bluetooth start > /dev/null
#mount $MOUNTSPOT > /dev/null
;;
*)
;;
esac

-- 
[Gutsy] bluetooth device goes away after suspend or hibernate
https://bugs.launchpad.net/bugs/128795
You received this bug notification because you are a member of
Bluetooth, which is subscribed to bluez-utils in ubuntu.



More information about the Ubuntu-bluetooth mailing list