Bug 617559 - IR receiver cannot wake machine
Summary: IR receiver cannot wake machine
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 613401 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-23 12:35 UTC by Pierre Ossman
Modified: 2010-09-14 02:47 UTC (History)
9 users (show)

Fixed In Version: kernel-2.6.33.8-149.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-23 22:08:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pierre Ossman 2010-07-23 12:35:23 UTC
I have a Microsoft/Philips IR remote receiver hooked up to my machine and it has the functionality to wake the machine out of suspend. This is fairly important feature when using the machine as a HTPC. Unfortunately something is buggy in the F13 kernel so it's not working properly. It seems to be fixed upstream though as I've been messing with some graphics issues and have therefore tried drm-next. With that kernel, the receiver can properly wake the machine.

To enable wakeup I'm doing this from sleep.d:

		for node in /sys/bus/usb/devices/*/power/wakeup; do
			echo enabled > $node
		done

The proper power/wakeup node exists on both kernels and doing a cat on it shows that it has accepted the "enabled" value. The system behaves as if I never enabled the device though.

Since it is fixed upstream, I'm hoping there is some ACPI fix that can be backported.

Comment 1 Chuck Ebbert 2010-07-23 17:05:49 UTC
Can you try kernel-2.6.34.1-29.fc13 from koji? It has backports of the ACPI GPE fixes from 2.6.35-rc in it.

Comment 2 Pierre Ossman 2010-07-24 16:14:34 UTC
Unfortunately not, because of bug 617561.

Comment 3 Pierre Ossman 2010-07-24 17:57:24 UTC
(With the "nomodeset" test in bug 617561, the machine still didn't resume when triggered by the remote)

Comment 4 Pierre Ossman 2010-07-24 18:09:47 UTC
Need to do a correction above. drm-next seems to be based on 2.6.35-rc5, not 2.6.34-rc5. I got confused by the git-describe tag: v2.6.34-rc5-10857-g7d8d9ac.

Comment 5 Pierre Ossman 2010-07-24 20:33:12 UTC
FYI, vanilla 2.6.34 has the bug and vanilla 2.6.35-rc5 doesn't. Fedora lirc patch applied in both cases.

Comment 6 Pierre Ossman 2010-07-24 22:29:21 UTC
I've been testing kernels and whatever fixed this was introduced between rc3 and rc4. I'll see if I can find the exact commit.

Comment 7 Pierre Ossman 2010-07-25 11:47:00 UTC
Bisected and found the commit that makes things work. Fairly obvious when you read the commit message:

commit 48826626263d4a61d06fd8c5805da31f925aefa0
Author: Alan Stern <stern.edu>
Date:   Tue Jun 22 16:14:48 2010 -0400

    USB: obey the sysfs power/wakeup setting
    
    This patch (as1403) is a partial reversion of an earlier change
    (commit 5f677f1d45b2bf08085bbba7394392dfa586fa8e "USB: fix remote
    wakeup settings during system sleep").  After hearing from a user, I
    realized that remote wakeup should be enabled during system sleep
    whenever userspace allows it, and not only if a driver requests it
    too.
    
    Indeed, there could be a device with no driver, that does nothing but
    generate a wakeup request when the user presses a button.  Such a
    device should be allowed to do its job.
    
    The problem fixed by the earlier patch -- device generating a wakeup
    request for no reason, causing system suspend to abort -- was also
    addressed by a later patch ("USB: don't enable remote wakeup by
    default", accepted but not yet merged into mainline).  The device
    won't be able to generate the bogus wakeup requests because it will be
    disabled for remote wakeup by default.  Hence this reversion will not
    re-introduce any old problems.
    
    Signed-off-by: Alan Stern <stern.edu>
    Cc: stable <stable> [.34]
    Signed-off-by: Greg Kroah-Hartman <gregkh>

Backport, pretty please? :)

Comment 8 Chuck Ebbert 2010-07-25 20:27:54 UTC
2.6.3[23] backport of that patch is here:

  http://www.spinics.net/lists/linux-usb/msg33736.html

Comment 9 Pierre Ossman 2010-07-25 21:34:28 UTC
Awesome. Should be harmless enough to be put into the Fedora 13 kernel I hope? :)

Comment 10 Chuck Ebbert 2010-07-26 18:39:01 UTC
Fixed in 2.6.32.16-152.fc12 and 2.6.34.1-30.fc13

Comment 11 Fedora Update System 2010-08-07 05:00:44 UTC
kernel-2.6.34.2-34.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/kernel-2.6.34.2-34.fc13

Comment 12 Fedora Update System 2010-08-07 23:28:42 UTC
kernel-2.6.34.2-34.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kernel'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/kernel-2.6.34.2-34.fc13

Comment 13 Fedora Update System 2010-08-10 23:53:44 UTC
kernel-2.6.34.3-37.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/kernel-2.6.34.3-37.fc13

Comment 14 Fedora Update System 2010-08-11 07:26:04 UTC
kernel-2.6.34.3-37.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kernel'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/kernel-2.6.34.3-37.fc13

Comment 15 Chuck Ebbert 2010-08-18 09:42:58 UTC
2.6.34 kernel has been withdrawn. This will be fixed in a 2.6.33 update kernel.

Comment 16 Fedora Update System 2010-08-18 10:19:07 UTC
kernel-2.6.33.8-149.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/kernel-2.6.33.8-149.fc13

Comment 17 Pierre Ossman 2010-08-18 20:44:13 UTC
Confirmed working with 2.6.33.8-149.fc13.x86_64. Thank you for including this.

Comment 18 Fedora Update System 2010-08-20 01:26:18 UTC
kernel-2.6.33.8-149.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kernel'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/kernel-2.6.33.8-149.fc13

Comment 19 Fedora Update System 2010-08-23 22:08:35 UTC
kernel-2.6.33.8-149.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Chuck Ebbert 2010-08-28 23:30:15 UTC
*** Bug 613401 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.