The driver sbp2 may be the culprit, yet I created a work around for my
problem. In /usr/lib/pm-utils/sleep.d I added a file which does the
following when hibernate state is entered:
- find all partitions on fire wire disks
- terminate all processes accessing these partitions
- unmount these partition
The file is called "65FirewireDisks" and looks like this (without the ======
markers, of course):
=========================================================================================
#!/bin/sh
unmount_fwdisks()
{
DEVICELIST=`hwinfo --disk |grep -A 3 -e 'Driver Modules:.*sbp2' |grep
'Device File:' |awk '{print $3}' |sort |uniq`
for DEVICE in $DEVICELIST ; do
PARTITIONS=`mount |grep $DEVICE | awk '{print $1}'|sort|uniq`
for FS in $PARTITIONS ; do
fuser -m -k $FS
umount $FS
done
done
return 0
}
mount_fwdisks()
{
return 0
}
case "$1" in
hibernate|suspend)
unmount_fwdisks
;;
thaw|resume)
mount_fwdisks
;;
*) exit $NA
;;
esac
========================================================================================
After creating this file and making it executable, I had to create one more
file which tells the system to
unload the sbp2 module before attempting to hibernate. For this I created the
file named
01suspend_modules in the directory /etc/pm/config.d with the following content:
========================================================================================
SUSPEND_MODULES=sbp2
========================================================================================
Done. My system goes into hibernate state now, the only problem is that I can
not leave processes alive
which actually access files on the fire wire disk while I enter hibernate.
Needless to say it is not a good
idea to use this fix if essential system services access the fire wire disks!
I hope this work around helps some folks with the same problem.
--
hibernate hangs, when firewire disk is plugged in
https://bugs.launchpad.net/bugs/509302
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs