Standby problem with ubuntu 10.10 64bit

Asked by Fariborz Nassermostofi

hi,

i own a laptop Lenovo 3000 N500 with nvidia graphic card 4 gig of memory and 320gig hard disc.

i had ubuntu 32 bit on my laptop from version 9.4 until now and had no problem with standby and hybernate.

since i installed the ubuntu 10.10 64 bit version on this laptop following problem occoured.

1. standby
 the system will go to standby but the resume cause the system to reboot.

2. hybernate
  the system reboots directly.

i have found this solution on internet and putt it in the file "/etc/pm/sleep.d/20_custom-ehci_hcd" but it didn't work on my laptop.

#!/bin/sh

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

can any one help me plz??

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu acpi Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Log a regression bug

Revision history for this message
Fariborz Nassermostofi (fariborz) said :
#2

Thanks actionparsnip, that solved my question.

Revision history for this message
Fariborz Nassermostofi (fariborz) said :
#3

@actionparsnip

How can i do that??

Revision history for this message
delance (olivier-delance) said :
#4

You should have a button to submit bug at bottom of page.

Can you help with this problem?

Provide an answer of your own, or ask Fariborz Nassermostofi for more information if necessary.

To post a message you must log in.