@shakedko
IF AN EXPERT SAYS IT CAN'T BE DONE GET ANOTHER EXPERT.
- DAVID BEN-GURION

Fedora Core 14 - 64 Bit - Asus N53J - installation & configuration

So last time I wrote about Fedora configuration issues, I mentioned Suspend & Hibernate problems. I searched all over google and ask about those issues via IRC (#Fedora on freenode), they told me that this is a known issue and there is not much to do for now. I really trust those guys, but I was sure that I could find a solution for this issue, at least one of them.

After -very- long googling, I found the following solution Here.

  • Notice that this solution has been written for Ubuntu on Asus laptops.
  • This solution worked for me only for Suspend mode, Hibernate mode Doesn't work (yet).ย 

Step 1:

Create a script under /etc/pm/sleep.d/. It can be any name, but to ensure the load order, use the prefix 20_. sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd &

Step 2:

Insert this into 20_custon-ehci_hcd

TMPLIST\_E=/tmp/ehci-dev-list
TMPLIST\_X=/tmp/xhci-dev-list
E\_DIR=/sys/bus/pci/drivers/ehci\_hcd
X\_DIR=/sys/bus/pci/drivers/xhci\_hcd
E\_BIND=\$E\_DIR""/bind
E\_UNBIND=\$E\_DIR""/unbind
X\_BIND=\$X\_DIR""/bind
X\_UNBIND=\$X\_DIR""/unbind
\#param1 = temp file, param2 = device dir, param3 = unbind
unbindDev (){
\#inspired by
http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
echo -n '' \> \$1
for i in \`ls \$2 | egrep '[0-9a-z]+:[0-9a-z]+:.\*\$'\`; do
echo -n "\$i" | tee \$3
echo "\$i" \>\> \$1
done
}
\#param1 = tem file, param2 = bind
bindDev(){
[ -f \$1 ] || return
for i in \`cat \$1\`; do
echo -n "\$i" | tee \$2
done
rm \$1
}
case "\${1}" in
hibernate|suspend)
unbindDev \$TMPLIST\_E \$E\_DIR \$E\_UNBIND
unbindDev \$TMPLIST\_X \$X\_DIR \$X\_UNBIND
;;
resume|thaw)
bindDev \$TMPLIST\_E \$E\_BIND
bindDev \$TMPLIST\_X \$X\_BIND
;;
esac

Step 3:

Add executable permission:

sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd

Result

Your suspend/hibernate mode should work now as expected. Suggestions on improving this script are welcome onย http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug/comment-page-2. You may leave your comments here as well.ย 

Have fun !

Work In Progress ๐Ÿšง
Discipline