Re: hibernate does not power down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hmmm with bluetooth device equipped I assume. :)

Already discuss about suspending on laptops in this mail list. I use
this script for suspending laptops.
It is tested against F16 on asus laptops.
========== /etc/pm/sleep.d/custom-ehci-hcd =====================
#!/bin/sh
# inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
#

VERSION=1.1.1a
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

==========================end of script ======================================


On 16 June 2012 00:47, JD <jd1008@xxxxxxxxx> wrote:
> On 06/15/2012 03:34 PM, Kernel Guardian wrote:
>>
>> laptop or desktop? at least my 3 desktops hibernate with power off at the
>> end. laptops is different story.
>> F16 with latest updates on all comps.
>> seems that kernel couldn't power off some device. on laptops have problems
>> with usb hubs and usb devices.
>>
>>
>> On 15 June 2012 23:57, JD <jd1008@xxxxxxxxx <mailto:jd1008@xxxxxxxxx>>
>> wrote:
>>
>>    f16 hibernate halts the machine but
>>    leaves it powered on.
>>    Is there a workaround?
>>
>
> It is indeed a laptop with a USB mouse and kb, and
> usb tethering to my android phone.
>
>
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux