Thread: Suspend fix for Asus U36JC (k)ubuntu 12.04
found working suspend fix asus u36jc;
sudo nano /etc/pm/sleep.d/20_custom-ehci_hcdcode:#!/bin/sh version=1.1 dev_list=/tmp/usb-dev-list drivers_dir=/sys/bus/pci/drivers drivers="ehci xhci" # ehci_hcd, xhci_hcd hex="[[:xdigit:]]" max_bind_attempts=2 bind_wait=0.1 unbinddev() { echo -n > $dev_list 2>/dev/null driver in $drivers; ddir=$drivers_dir/${driver}_hcd dev in `ls $ddir 2>/dev/null | egrep "^$hex+:$hex+:$hex"`; echo -n "$dev" > $ddir/unbind echo "$driver $dev" >> $dev_list done done } binddev() { if [ -s $dev_list ]; while read driver dev; ddir=$drivers_dir/${driver}_hcd while [ $((max_bind_attempts)) -gt 0 ]; echo -n "$dev" > $ddir/bind if [ ! -l "$ddir/$dev" ]; sleep $bind_wait else break fi max_bind_attempts=$((max_bind_attempts-1)) done done < $dev_list fi rm $dev_list 2>/dev/null } case "$1" in hibernate|suspend) unbinddev;; resume|thaw) binddev;; esac
paste script above , save. make executable.
sudo chmod +x /etc/pm/sleep.d/20_custom-ehci_hcd
suspend should work![]()
fantastic! works treat on asus x73s. thanks.
edit: found original post here:
http://thecodecentral.com/2011/01/18...ot-working-bug
lots of people commented saying fixed problem. question new ubuntu user:
how bug not fixed in 12.04 when has been happening > 18 months , affects many people???
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Hardware [ubuntu] Suspend fix for Asus U36JC (k)ubuntu 12.04
Ubuntu
Comments
Post a Comment