Cannot suspend with a USB3 port (HP8540w)

Bug #562484 reported by Gabou
60
This bug affects 11 people
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: pm-utils

Description: Ubuntu lucid (development branch)
Release: 10.04 (Installed from beta1)
pm-utils: Installed: 1.3.0-1
What I expect: To go in suspend mode
What happened: I see the "user locked" screen, I'm back on my session after entering my password

When I try to suspend the computer on 10.4 beta 2, I see the Login Screen after a few seconds.

Using dmesg -c I see some interesting lines >>>
 pm_op(): usb_dev_suspend+0x0/0x10 returns -2
 Device usb3 failed to suspend: error -2
 Some devices failed to suspend <<<

I have fixed this issue by creating this script
/etc/pm/sleep.d/05_xhci
#!/bin/sh
# Fix some issues with USB3

if [ "$1" = "suspend" ]
then
        modprobe -r xhci
fi

if [ "$1" = "resume" ]
then
        modprobe xhci
fi

Please note that this script load "xhci" even if not necessary.
(http://ubuntuforums.org/showthread.php?t=1444822)

I have an HP 8540w, people seams to have similar problems on the Asus N61J Laptop (and probably some other laptops with USB3 ports)

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: pm-utils 1.3.0-1
ProcVersionSignature: Ubuntu 2.6.32-20.30-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-20-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
CheckboxSubmission: 7b40c317966bb3fa11e2c94388e42597
CheckboxSystem: b845c366ea09c60efa3a45c1b5b21525
Date: Tue Apr 13 20:20:04 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: pm-utils

Revision history for this message
Gabou (gabriel-public-3) wrote :
Revision history for this message
Andrew Tipton (kiwidrew) wrote :

I have a Fujitsu SH760, and this issue also affects me. Removing the xhci module allows the suspend to happen, so this is definitely the culprit. Details of my USB3 controller (from lspci -v) are:

20:00.0 USB Controller: NEC Corporation Device 0194 (rev 03) (prog-if 30)
        Subsystem: Fujitsu Limited. Device 1591

20:00.0 0c03: 1033:0194 (rev 03) (prog-if 30)
        Subsystem: 10cf:1591
        Flags: fast devsel, IRQ 19
        Memory at f2200000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [50] Power Management version 3
        Capabilities: [70] Message Signalled Interrupts: Mask- 64bit+ Queue=0/3 Enable-
        Capabilities: [90] MSI-X: Enable- Mask- TabSize=8
        Capabilities: [a0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [140] Device Serial Number ff-ff-ff-ff-ff-ff-ff-ff
        Capabilities: [150] #18
        Kernel modules: xhci

Revision history for this message
Adamo Ferro (adamo-ferro) wrote :

Hi all,

same problem on a HP8540p, also for hibernation.
Based on the solution proposed above, I wrote this script that also allows to hibernate:
For instance, I called it
/etc/pm/sleep.d/01fix_usb3

#!/bin/sh
# Fix USB3 suspend and hibernate problems
case $1 in
hibernate)
modprobe -r xhci
;;
suspend)
modprobe -r xhci
;;
thaw)
modprobe xhci
;;
resume)
modprobe xhci
;;
*) echo "USB3 fix script: wrong argument!"
;;
esac

Remember to give to the script execute rights (http://www.disi.unitn.it/~ferro/index.php/linux).
Hope it helps!
Adamo

Revision history for this message
FiX (fix-kowalski) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pm-utils (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.