Bug 798018

Summary: X53SV AC Powered suspend works, battery suspend hangs
Product: [Fedora] Fedora Reporter: shamim.islam
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 16CC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-28 04:30:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description shamim.islam 2012-02-27 20:44:48 UTC
Description of problem:
Unable to suspend laptop when not plugged in, which is exactly when suspend is most useful.

Laptop: ASUS X53SV core i7 (2.9GHz w/ Turbo), 8G RAM, 1TB Spinpoint, NVIDIA GE GT240M
Video Drivers: NVIDIA + Optimus using bumblebee


Version-Release number of selected component (if applicable):
3.1.0-7.fc16.x86_64


How reproducible:
Always


Steps to Reproduce:
1.Power up laptop plugged in or not
2.Wait for desktop
3.Unplug laptop if plugged in
4.Hit sleep button.
  
Actual results:
1 line of text output and the laptop hangs. (If plugged in, see Expected results)

Expected results:
4-6 lines of output and the laptop sleeps. (Shows this when plugged in).

Additional info:
/etc/pm/sleep.d/20_custom-ehci_hcd
#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
case "${1}" in
hibernate|suspend)
# Unbind ehci_hcd for first device 0000:00:1a.0:
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
# Unbind ehci_hcd for second device 0000:00:1d.0:
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
;;
resume|thaw)
# Bind ehci_hcd for first device 0000:00:1a.0:
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
# Bind ehci_hcd for second device 0000:00:1d.0:
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
;;
esac 


/etc/pm/sleep.d/10_bumblebee
#!/bin/sh
case "$1" in
  hibernate|suspend)
    service bumblebee stop
    rmmod nvidia
    ;;
  thaw|resume)
    modprobe nvidia
    service bumblebee start
    ;;
  *) exit
     ;;
esac

Comment 1 shamim.islam 2012-02-28 04:30:33 UTC
Nm. Found the problem. Set the power button on battery operation to hibernate. Need to wait for the hibernate to take effect.

This is not a bug. My apologies.