Zdravim vsechny, rad bych se s Vami podelil o reseni problemu, kdy notebooky po uspani do pameti nenabehnou do systemu, nebot jim zustane vypnuty display - pozadavek na reseni se tu objevuje docela casto. Nize prilozeny (a prelozeny) navod pochazi z
http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug#header-0.
Je potreba vytvorit skript, zadejte tedy do terminalu (otevre se stisknutim
Ctrl + Alt + t) prikaz
gksudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd
Do otevreneho souboru vlozte text:
#!/bin/sh
#inspirováno http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...a http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
# vypiloval tqzzaa :)
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
for driver in $DRIVERS; do
DDIR=$DRIVERS_DIR/${driver}_hcd
for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do
echo -n "$dev" > $DDIR/unbind
echo "$driver $dev" >> $DEV_LIST
done
done
}
bindDev() {
if [ -s $DEV_LIST ]; then
while read driver dev; do
DDIR=$DRIVERS_DIR/${driver}_hcd
while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do
echo -n "$dev" > $DDIR/bind
if [ ! -L "$DDIR/$dev" ]; then
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
Ulozte zmeny a zavrete
gedit. Nyni uz je jenom potreba povolit spousteni souboru jako programu, coz ucinime zadanim
sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd
do terminalu.
Nyni by melo vse fungovat.
Pozitivni zkusenosti hlasi uzivatele 10.10 a 10.04, zejmena znacky Asus, Dell a zadarilo se i na HP/Compaq. Doufam, ze poslouzi i dalsi uzivatelum Ubuntu.