Ubuntu Hibernation on AMD Duron
Raphael Derosso Pereira
raphaelpereira at gmail.com
Sun Sep 11 13:52:26 CDT 2005
Hello,
I would like to tell you that Ubuntu Hoary Hibernation wasn't working on my
ADM Duron.
It showed up the "Schedule while atomic" message and didn't execute the
resume.sh script.
I digged the problem down and found a workaround that I want to share with
you.
The patch is just below. In essence, it just put the hibernation call on
another exclusive bash. That isolates the atomic scheduling problem, and
guarantees the execution of resume script.
Besides this patch, I also needed to add the resume=<my_swap_partition> on
grub kernel options.
I'm not subscriber of this list, so if you want to reach me, please send it
privatelly.
Hope I helped!
diff -Nur /etc/acpi-orig/hibernate_real.sh /etc/acpi/hibernate_real.sh
--- /etc/acpi-orig/hibernate_real.sh 1969-12-31 21:00:00.000000000 -0300
+++ /etc/acpi/hibernate_real.sh 2005-08-10 02:36:45.277671304 -0300
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+echo -n $HIBERNATE_MODE >/sys/power/disk
+echo -n "disk" >/sys/power/state
+
diff -Nur /etc/acpi-orig/hibernate.sh /etc/acpi/hibernate.sh
--- /etc/acpi-orig/hibernate.sh 2005-08-10 02:30:23.888651000 -0300
+++ /etc/acpi/hibernate.sh 2005-08-10 02:37:00.163408328 -0300
@@ -19,7 +19,8 @@
. /usr/share/acpi-support/screenblank
fi
-echo -n $HIBERNATE_MODE >/sys/power/disk
-echo -n "disk" >/sys/power/state
+/bin/bash /etc/acpi/hibernate_real.sh &
+
+sleep 10
. /etc/acpi/resume.sh
P.S.: The sleep 10 could be reduced... I haven't tried, but I think 2 might
do the job...
--
Raphael Derosso Pereira
icq: 4517421
msn: rderossopereira at hotmail.com
Phone: +55 41 3013-3867
_____________________
Turn Information into Productivity
_____________________
http://www.thyamad.com
http://concis.us
http://thyapi.thyamad.com
http://www.eaccelerator.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20050911/992873ce/attachment.htm
More information about the ubuntu-devel
mailing list