Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: USB (apparently) Not Resuming After Sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB (apparently) Not Resuming After Sleep



We're aware of problems in this area, the clues are the following lines in the log:

701.871 [1] AppleUSBEHCI[0x4138000]::DeviceRequest - dmaCommand (0x4171400) already had memory descriptor (0x5201500) - clearing
701.871 [1] AppleUSBEHCI[0x4138000]::DeviceRequest - buffer dmaCommand (0x4171300) already had memory descriptor (0x50b5b00) - clearing


This is likely a new problem introduced with new USB power management in Leopard.

Unfortunately, we don't know when an update with the fix will be available. You might try disabling Bluetooth (if you don't need it) and see if that helps.

Meanwhile, it sounds like you have a work-around with using a USB hub.

David Ferguson
Apple


On Nov 15, 2007, at 10:15 AM, Mark Duxbury wrote:


Greetings again,

I had posted last week with a question about usb ports not resuming correctly after sleep, since then I have had a chance to do a little more research into the problem, and I'm hoping this additional information may allow someone on this list to possibly point me in the correct direction. Although a longtime engineer, I am new to the Mac. This one (24 inch 2.8Ghz intel iMac w/ 10.5 installed from the disk included in the box with the Mac) is brand new (a couple of weeks old) and nothing has been done to it. It has no third party drivers installed (I had installed MS IntelliPoint for better mouse control, but uninstalled it after I first noticed this problem. It didn't make any difference.) It is literally about like it was when I opened the box.

To Recap:

The problem seems to occur only when all three physical usb ports on the Mac itself are used. It doesn't mater what is plugged into them as long as all three are used. The ports fail sequentially, one after each sleep (see below). If I only use two of them, and it doesn't seem to matter which two, all is good. It looks from the outside as if the failed ports have been suspended by the host.

I can, however, plug all the usb things I want into an external hub (I have five things plugged into the hub right now and everything is working fine) as long as I don't have more than two things plugged directly into the Mac itself. To Sum Up:

With (any) three usb things plugged directly into the Mac itself:

Boot - All good.
Sleep/Wake - Rightmost (looking at back of Mac) port not working.
Sleep/Wake again - Middle port now also not working.
Sleep/Wake again - Leftmost port now also not working. Keyboard/ mouse now dead so have to use power switch to....
Reboot - All good again.


With two or fewer things plugged into the Mac itself, sleep/wake works fine.

The failed ports cannot be brought back to life externally; disconnecting/connecting a device from a failed port has no effect.

With the right port = LaserJet, middle port = flash drive, and left port = powered hub with keyboard, mouse, and external hard drive, here is what the logs say...

After first sleep after reboot:

system.log
Nov 11 15:35:08 Macintosh kernel[0]: USB caused wake event (EHCI)
Nov 11 15:35:19 Macintosh kernel[0]: AppleUSBHub::setPowerState (0x4189400, 2 -> 4) timed out after 10345 ms


A usb bus probe reports:

High Speed device @ 3 (0xFA400000): ............................................. HP Color LaserJet 2605dn (did not respond to inquiry - 0xe0004057, might be Suspended)

And the usb logger (level 7) says:

701.771 [1] ControlTransaction: control packet 1 error 0xe0004057
701.871 [1] AppleUSBEHCI[0x4138000]::DeviceRequest - dmaCommand (0x4171400) already had memory descriptor (0x5201500) - clearing
701.871 [1] AppleUSBEHCI[0x4138000]::DeviceRequest - buffer dmaCommand (0x4171300) already had memory descriptor (0x50b5b00) - clearing
701.871 [1] ControlTransaction: control packet 1 error 0xe0004057
701.971 [1] AppleUSBHub[0x418a200]::SuspendPort - expected port to be suspended for conversion, but it is not!!


Putting it the Mac to sleep and waking it a second time causes the middle port to fail and once again produces this in the system.log:

Nov 11 15:48:05 Macintosh kernel[0]: USB caused wake event (EHCI)
Nov 11 15:48:15 Macintosh kernel[0]: AppleUSBHub::setPowerState (0x4189400, 2 -> 4) timed out after 10461 ms


A bus probe now reports:

High Speed device @ 2 (0xFA200000): ............................................. Storage Media (did not respond to inquiry - 0xe00002ed, might be Suspended)
High Speed device @ 3 (0xFA400000): ............................................. HP Color LaserJet 2605dn (did not respond to inquiry - 0xe0004051, might be Suspended)


And the usb logger (level 7) says:

1086.158 [1] AppleUSBEHCI[0x4138000]::SuspendUSBBus - port 2 was NOT already suspended (as it should have been) PROBLEMS AHEAD
1314.464 [1] AppleUSBEHCI[0x4138000]::ControlPacketHandler - unexpected command BufferMemoryDescriptor(0x50b5a80)
1571.791 [1] ControlTransaction: control packet 1 error 0xe0004057


After a third sleep, the left port has apparently failed and since the keyboard and mouse are connected on that port I can't get any additional information from the computer after that. The hard drive connected to the hub on the left port is also spun down and appears suspended. I have to reboot the Mac using the power switch, but then everything is fine again.

I am stumped, and a (rather long) drive to an Apple Store didn't resolve the problem. For the time being I am using the Mac with only two of its usb ports in use, everything else is plugged into an external hub. But I really need to get this problem resolved. Is it a hardware problem? A driver/OS bug? Something we can fix here? I really need to know. Any help would be very greatly appreciated.


Thanks in advance, Mark _______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >USB (apparently) Not Resuming After Sleep (From: Mark Duxbury <email@hidden>)
 >Re: USB (apparently) Not Resuming After Sleep (From: Mark Duxbury <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.