computer will not wake up from suspend using USB devices

Bug #603467 reported by Shock
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am unable to get the computer to wake up from suspend using a USB device. I have turned legacy USB devices suspend support in the BIOS off, plug & play OS: on, suspend state: s3 only.

In ubuntu I have done the following:

shock@shock:~$ cat /proc/acpi/wakeup | awk '/disabled/ { print $1 }' | while read lala; do sudo -s "echo $lala > /proc/acpi/wakeup"; done
[sudo] password for shock:
shock@shock:~$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
P0P2 S4 enabled pci:0000:00:01.0
P0P1 S4 enabled pci:0000:00:1e.0
UAR1 S4 enabled pnp:00:06
PS2K S4 enabled pnp:00:0c
EUSB S4 disabled pci:0000:00:1d.7
USBE S4 disabled pci:0000:00:1a.7
P0P4 S4 enabled pci:0000:00:1c.0
P0P5 S4 enabled
P0P6 S4 enabled
P0P7 S4 enabled
P0P8 S4 enabled pci:0000:00:1c.4
P0P9 S4 enabled pci:0000:00:1c.5
USB0 S4 enabled pci:0000:00:1d.0
USB1 S4 enabled pci:0000:00:1d.1
USB2 S4 enabled pci:0000:00:1d.2
USB3 S4 enabled
USB4 S4 enabled pci:0000:00:1a.0
USB5 S4 enabled pci:0000:00:1a.1
shock@shock:~$

I don't know why EUSB and USBE can't be enabled.

Now onto /sys/devices/.../power/wakeup:

shock@shock:~$ find /sys -name wakeup -print0 | xargs -0 grep -il bled | while read lala; do sudo -s "echo enabled > ${lala}"; done
shock@shock:~$ find /sys -name wakeup -print0 | xargs -0 grep -i bled
/sys/devices/platform/serial8250/tty/ttyS1/power/wakeup:enabled
/sys/devices/platform/serial8250/tty/ttyS2/power/wakeup:enabled
/sys/devices/platform/serial8250/tty/ttyS3/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:01.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.0/usb3/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.1/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.1/usb4/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.7/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.7/usb1/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1b.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.4/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.5/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.5/0000:02:00.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.0/usb5/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-1/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.1/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.1/usb6/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.2/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.2/usb7/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.7/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.7/usb2/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1e.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1e.0/0000:05:03.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1e.0/0000:05:04.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1f.2/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1f.5/power/wakeup:enabled
/sys/devices/pnp0/00:03/power/wakeup:enabled
/sys/devices/pnp0/00:06/power/wakeup:enabled
/sys/devices/pnp0/00:06/tty/ttyS0/power/wakeup:enabled
/sys/devices/pnp0/00:0c/power/wakeup:enabled
shock@shock:~$

After doing this, when I suspend the USB mouse loses pover so I can't wake the system up using it.
The StreamZap PC Remote also doesn't wake up the system.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-24-generic 2.6.32-24.38
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-24.38-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: shock 2243 F.... pulseaudio
 /dev/snd/controlC0: shock 2243 F.... pulseaudio
 /dev/snd/controlC1: shock 2243 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Audigy2'/'SB Audigy 4 [SB0610] (rev.0, serial:0x10211102) at 0xbc00, irq 22'
   Mixer name : 'SigmaTel STAC9750,51'
   Components : 'AC97a:83847650'
   Controls : 202
   Simple ctrls : 37
Card1.Amixer.info:
 Card hw:1 'FM1083'/'FORTEMEDIA FM1083 at usb-0000:00:1d.0-2, full speed'
   Mixer name : 'USB Mixer'
   Components : 'USB138c:0001'
   Controls : 4
   Simple ctrls : 2
Card2.Amixer.info:
 Card hw:2 'Intel'/'HDA Intel at 0xfebf8000 irq 22'
   Mixer name : 'Analog Devices AD1988B'
   Components : 'HDA:11d4198b,104381f6,00100200'
   Controls : 48
   Simple ctrls : 26
Date: Fri Jul 9 09:33:43 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
MachineType: System manufacturer System Product Name
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.32-24-generic root=UUID=873afc52-012a-44b9-9289-52fc1abb051d ro splash vga=789 quiet quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.1
RfKill:

SourcePackage: linux
dmi.bios.date: 11/23/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1226
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5B-Deluxe
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1226:bd11/23/2007:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5B-Deluxe:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Shock (mmiron) wrote :
Revision history for this message
Shock (mmiron) wrote :

I may have been wrong about the mouse losing power when the system enters standby. On windows xp the mouse light turns off when it goes into s3 but I am able to wake up the system by clicking the mouse button so clearly the mouse light is no indication of power loss.

Shock (mmiron)
description: updated
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Shock,

If you could also please test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-suspend
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Shock (mmiron) wrote :
Download full text (3.3 KiB)

New testing results:

shock@shock:~$ uname -a
Linux shock 2.6.35-999-generic #201007211008 SMP Wed Jul 21 10:09:49 UTC 2010 x86_64 GNU/Linux
shock@shock:~$ cat /proc/acpi/wakeup | awk '/disabled/ { print $1 }' | while read lala; do sudo -s "echo $lala > /proc/acpi/wakeup"; done
[sudo] password for shock:
shock@shock:~$
shock@shock:~$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
P0P2 S4 *enabled pci:0000:00:01.0
P0P1 S4 *enabled pci:0000:00:1e.0
UAR1 S4 *enabled pnp:00:06
PS2K S4 *enabled pnp:00:0c
EUSB S4 *disabled pci:0000:00:1d.7
USBE S4 *disabled pci:0000:00:1a.7
P0P4 S4 *enabled pci:0000:00:1c.0
P0P5 S4 *enabled
P0P6 S4 *enabled
P0P7 S4 *enabled
P0P8 S4 *enabled pci:0000:00:1c.4
P0P9 S4 *enabled pci:0000:00:1c.5
USB0 S4 *enabled pci:0000:00:1d.0
USB1 S4 *enabled pci:0000:00:1d.1
USB2 S4 *enabled pci:0000:00:1d.2
USB3 S4 *enabled
USB4 S4 *enabled pci:0000:00:1a.0
USB5 S4 *enabled pci:0000:00:1a.1

At this point I suspended the computer and tried to wake it up using the USB mouse but it didn't work. Continuing...

shock@shock:~$ find /sys -name wakeup -print0 | xargs -0 grep -il bled | while read lala; do sudo -s "echo enabled > ${lala}"; done
shock@shock:~$ find /sys -name wakeup -print0 | xargs -0 grep -i bled
/sys/devices/platform/serial8250/tty/ttyS1/power/wakeup:enabled
/sys/devices/platform/serial8250/tty/ttyS2/power/wakeup:enabled
/sys/devices/platform/serial8250/tty/ttyS3/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:01.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.0/usb3/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.1/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.1/usb4/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.7/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1a.7/usb1/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1b.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.4/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.5/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1c.5/0000:02:00.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.0/usb5/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.1/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.1/usb6/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.1/usb6/6-1/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.2/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.2/usb7/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.7/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1d.7/usb2/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1e.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1e.0/0000:05:03.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1e.0/0000:05:04.0/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1f.2/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:1f.5/power/wakeup:enabled
/sys/devices/pnp0/00:0...

Read more...

tags: removed: needs-upstream-testing
Shock (mmiron)
Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Shock (mmiron) wrote :

I just retested this today with up-to-date kernel and now seems to work. Feel free to close this bug.

FYI:
shock@shock:~$ uname -a
Linux shock 2.6.32-25-generic #43-Ubuntu SMP Wed Sep 1 09:46:13 UTC 2010 x86_64 GNU/Linux

Changed in linux (Ubuntu):
status: New → Fix Released
Revision history for this message
Shock (mmiron) wrote :

My kernel is from lucid-proposed.

shock@shock:~$ apt-cache policy "linux-image-`uname -r`"
linux-image-2.6.32-25-generic:
  Installed: 2.6.32-25.43
  Candidate: 2.6.32-25.43
  Version table:
 *** 2.6.32-25.43 0
        500 http://archive.ubuntu.com/ubuntu/ lucid-proposed/main Packages
        100 /var/lib/dpkg/status

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.