Enabling wakeup on the USB Root Controller prevents computer from suspending

Bug #1168255 reported by Sparhawk
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Steps to reproduce:
1) As root: # echo enabled > /sys/bus/usb/devices/2-1/power/wakeup
2) Attempt to suspend computer.

Expected results:
Computer should suspend.

Observed results
Computer goes into suspend then immediately wakes up. There is nothing informative in /var/log/pm-suspend.log

Background:
This bug was discovered by a udev script that I wrote to allow waking my computer up from suspension by attached USB devices. This is the script:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="15d9", ATTRS{idProduct}=="0a4d" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

A recent regression meant that this now prevents the computer from suspending as above. This script now writes "enabled" to both /sys/bus/usb/devices/2-1/power/wakeup and /sys/bus/usb/devices/2-1/2-1.1/power/wakeup . I'm not sure if the regression was that it now writes to the former as well as the latter, or if it always has written to both, and a regression in pm-suspend now cannot deal with the former. If I write "disabled" to the former, I can suspend as normal.

More information:
$ lsusb -t
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
        |__ Port 1: Dev 5, If 0, Class=HID, Driver=usbhid, 1.5M
        |__ Port 5: Dev 3, If 0, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M
        |__ Port 5: Dev 3, If 1, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: pm-utils 1.4.1-9
ProcVersionSignature: Ubuntu 3.5.0-27.46-generic 3.5.7.7
Uname: Linux 3.5.0-27-generic x86_64
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Fri Apr 12 16:32:39 2013
InstallationDate: Installed on 2012-12-16 (116 days ago)
InstallationMedia: Kubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: pm-utils
UpgradeStatus: Upgraded to quantal on 2013-01-31 (71 days ago)

Revision history for this message
Sparhawk (sparhawkthesecond) 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
Revision history for this message
penalvch (penalvch) wrote :

Sparhawk, thank you for reporting this bug to Ubuntu. Quantal reached EOL on May 16, 2014.
See this document for currently supported Ubuntu releases: https://wiki.ubuntu.com/Releases

Is this reproducible in the latest release of Ubuntu via http://cdimage.ubuntu.com/daily-live/current/ ?

If so, please execute the following via a terminal in order for the necessary debugging information to be attached:
apport-collect 1168255

affects: pm-utils (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Sparhawk (sparhawkthesecond) wrote :

I've moved to Arch Linux (which works fine), so this bug can be closed. I can see that (at least) two other people were affected, so they are welcome to refile this bug.

Revision history for this message
Sparhawk (sparhawkthesecond) wrote :

No longer using Ubuntu.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
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.