How to fix the sleep problem on a G3 iBook2?
diabolo
ulist at gs1.ubuntuforums.org
Thu Dec 2 04:02:36 UTC 2004
dbus-1 needs to be stopped before sleep (then restarted after wake).
Here's how someone in the Ubuntu forums explained the fix:
(1) Created the file /etc/apm/scripts.d/dbus-1:
#!/bin/sh
# hald prevents proper resume after sleep-wake cycle
# stopping dbus at suspend and restarting at resume
# fixes this
INIT="/etc/init.d/dbus-1"
[ -x "${INIT}" ] || exit 0
case "${1},${2}" in
(suspend,*)
"${INIT}" stop
echo "stopped dbus-1"
;;
(resume,suspend)
"${INIT}" start
echo "started dbus-1"
;;
esac
exit 0
(2) Made the new file executable:
sudo chmod 755 /etc/apm/scripts.d/dbus-1
(3) Created a symlink from /etc/apm/suspend.d/98dbus-1 to
/etc/apm/scripts.d/dbus-1:
cd /etc/apm/suspend.d/
sudo ln -s /etc/apm/scripts.d/dbus-1 98dbus-1
(4) Created a symlink from /etc/apm/resume.d/01dbus-1 to
/etc/apm/scripts.d/dbus-1:
cd /etc/apm/resume.d/
sudo ln -s /etc/apm/scripts.d/dbus-1 01dbus-1
--
diabolo
More information about the ubuntu-users
mailing list