Subscribe to our RSS news feed
AAPL 275.62 (0.56)

USB sleep then wake "Device Removal" problem
*
  • Group: Members
  • Posts: 11
  • Joined: 10-March 06
  • Member No.: 27,733
I'm new to this forum, but I have been active in OSX86 development for some time. I'm trying to solve a problem with USB on an otherwise perfect OSX86 system. It involves sleep functionality on the EHCI USB bus. Upon wake from sleep, if a USB drive has been attached, the system displays the "Device Removal" warning dialog. I have tried everything on the internet available for this problem, including Slice's kexts, AnV's kexts, teh EHCISleepEnabler.kext, variois IOPCIFamily.kexts, BIOS settings, all to no avail. USB is working absolutly perfect except for this issue, as is the rest of the system. It seems to me that the problem (at least on this MB, and probably other ICH10R MBs) is related to how the USB drivers initialize the ports, and thus determine their power management (sleep) capabilities. On this system, the EHCI USB ports are seen as PCI devices, rather than as built-in devices. This means that the driver will turn off the port and turn it back on again instead of suspending and resuming the port like it should.

I've written device drivers before and done some XCode development, and I'm currently getting my build environment correct, and starting to test some simple changes in the sleep capability section of AppleUSBEHCI.

Am I heading in the right direction?

If so, any pointers or other suggestions?

Thanks for the feedback.
PM Profile Card
Go to the top of the page
+ Quote Post

Posts in this topic
- pcb355   USB sleep then wake "Device Removal" problem   Feb 27 2009, 11:01 PM
- - indraganzo   I'm having the same problem on my GA EP45T DS3...   Feb 28 2009, 03:38 PM
|- - pcb355   I would like to coordinate and maybe we can solve ...   Mar 2 2009, 12:00 AM
|- - indraganzo   QUOTE (pcb355 @ Mar 2 2009, 12:00 AM) On ...   Mar 2 2009, 12:00 PM
|- - pcb355   On the Psystar 1.8.1 driver, it has to be in the p...   Mar 2 2009, 07:49 PM
- - hafnium   I have the exact same problem (USB functions lost ...   Mar 2 2009, 12:23 PM
- - indraganzo   I have done a little research and I have come acro...   Mar 2 2009, 02:56 PM
- - TheBogieMan   I'm having the same issue since upgrading to 1...   Mar 2 2009, 03:21 PM
- - indraganzo   when I boot without the usb drive I get this one i...   Mar 2 2009, 04:02 PM
- - hafnium   Sorry, but I don't think this is the solution ...   Mar 2 2009, 04:04 PM
|- - indraganzo   QUOTE (hafnium @ Mar 2 2009, 04:04 PM) So...   Mar 3 2009, 10:24 AM
|- - zhell   QUOTE (hafnium @ Mar 2 2009, 05:04 PM) So...   May 26 2009, 03:56 PM
- - pcb355   I agree. The root of the problem is the designatio...   Mar 2 2009, 07:01 PM
- - hafnium   Yes, I agree too. Vanilla kexts are preferred. If ...   Mar 2 2009, 07:58 PM
- - pcb355   This is the edit I made to the stock AppleUSBEHCI....   Mar 3 2009, 10:27 PM
|- - chrS   QUOTE (pcb355 @ Mar 3 2009, 11:27 PM) Thi...   Apr 9 2009, 04:05 PM
|- - TheBogieMan   QUOTE (pcb355 @ Mar 3 2009, 11:27 PM) Thi...   Apr 10 2009, 11:12 PM
- - indraganzo   pcb355, you rock man working on my GA EP45T DS3   Mar 5 2009, 10:42 PM
|- - pcb355   Thanks for the feedback. Alas, I'm having an ...   Mar 5 2009, 11:59 PM
- - TheBogieMan   Out of interest lads, what does your Host & PC...   Mar 5 2009, 11:26 PM
|- - hafnium   QUOTE (TheBogieMan @ Mar 6 2009, 12:26 AM...   Mar 6 2009, 09:28 AM
|- - TheBogieMan   QUOTE (hafnium @ Mar 6 2009, 09:28 AM) We...   Mar 6 2009, 11:09 AM
- - TheBogieMan   Don't panic, I didn't break it.....just sp...   Mar 16 2009, 03:56 AM
- - eberts   Hi there, I just read this. Can't say that I e...   Apr 4 2009, 10:03 PM
|- - pcb355   Thanks for the reply and possible direction for a ...   Apr 7 2009, 05:21 AM
- - chrS   Hi, I just want to report that I observe this pro...   Apr 8 2009, 09:43 PM
- - konkon   i wanted to download the AJA System test tool. It ...   Apr 10 2009, 02:54 PM
|- - Eliade   QUOTE (konkon @ Apr 10 2009, 07:54 AM) i ...   Apr 10 2009, 09:50 PM
|- - zhell   Please open IORegistryExplorer and go to the USB d...   Apr 10 2009, 11:24 PM
|- - chrS   QUOTE (zhell @ Apr 11 2009, 12:24 AM) Ple...   Apr 14 2009, 07:51 PM
|- - zhell   QUOTE (chrS @ Apr 14 2009, 08:51 PM) OK, ...   Apr 15 2009, 01:06 PM
|- - chrS   QUOTE (zhell @ Apr 15 2009, 02:06 PM) You...   Apr 17 2009, 04:37 PM
- - konkon   regarding the loos of speed: it looks like we don...   Apr 10 2009, 04:40 PM
- - LatinMcGyver75   so the usb is reconnecting as usb 1.1 instead of 2...   Apr 10 2009, 11:26 PM
- - konkon   no,no. it is not changing to usb1.1. this would be...   Apr 11 2009, 11:00 PM
- - zhell   I have verified this on a Macmini1,1 (Intel chipse...   Apr 12 2009, 07:08 PM
- - hafnium   Do you guys have waking from USB keyboards/mice wo...   Apr 14 2009, 07:51 AM
- - Farx   USB K/M can wake Leopard up.   Apr 14 2009, 08:16 AM
- - mr-pink   Hi all, I was thinking to pick the ga-g31m-es2l b...   Apr 30 2009, 09:16 PM
- - IntelMacGuy   The USB sleep kext works, but the sound won't ...   May 1 2009, 05:16 AM
- - ApexDE   Anyone found a DSDT Patch Solution for the "m...   Aug 16 2009, 10:32 PM
- - Fine Vision   Hello. I have iATKOS v7 10.5.7 on Asus P5N32-E. A...   Aug 17 2009, 02:22 PM
- - ApexDE   OK guys, i managed to patch my DSDT to get the EHC...   Aug 29 2009, 02:46 PM
|- - thorias   QUOTE (ApexDE @ Aug 29 2009, 02:46 PM) OK...   Aug 31 2009, 10:48 PM
|- - Dalton63841   I have an MSI Wind U100 that got the Device Remova...   Sep 2 2009, 12:01 AM
- - kizwan   Hi ApexDE, Very nice finding. I don't have th...   Aug 29 2009, 03:48 PM
- - kmare   Apex - great patch confirmed working in 10.6 on my...   Aug 30 2009, 02:59 AM
- - mm67   Works for me as well. Using ep45 ud3   Aug 30 2009, 03:19 PM
- - cparm   my usb2 (ehci) port are now reported as built-in, ...   Aug 30 2009, 04:14 PM
- - mm67   For me this works on both Leopard and SL, now if i...   Aug 30 2009, 05:02 PM
- - hernando   Guys, please help a noob. I have been looking for ...   Aug 30 2009, 11:39 PM
- - stellarola   Apex, Added the fix to my blog, http://stellarola...   Aug 31 2009, 12:07 AM
- - MACinized   here's for my dsdt: CODE Device (USBE...   Aug 31 2009, 07:55 AM
- - ApexDE   @ kizwan does your Applesystemprofiler show the hi...   Aug 31 2009, 08:59 AM
- - MACinized   kewl! got it working now ApexDE. tnx a lot. ...   Aug 31 2009, 01:26 PM
- - tuxianer   Hi, I have the same problem with my EP35-DS3 here ...   Sep 1 2009, 05:45 PM
- - Innerz   Thank you so much, it's working great also on ...   Sep 1 2009, 08:56 PM
- - tuxianer   I try this fixes without any success: http://paste...   Sep 1 2009, 10:53 PM
- - suri2001   when i compile i get always these two errors: /...   Sep 2 2009, 09:52 AM
- - ApexDE   look at post #52   Sep 2 2009, 09:56 AM
- - tuxianer   USB Bus is regcognized correct as integrated. But ...   Sep 2 2009, 10:02 AM
- - ApexDE   You have patched your Device-IDs, but you need the...   Sep 2 2009, 10:13 AM
- - tuxianer   so does I have to apply both fixes for the EHCI de...   Sep 2 2009, 10:14 AM
- - ApexDE   @tuxguy Yes, read my post @ P35 Mainboard Users...   Sep 2 2009, 10:21 AM
- - tuxianer   but I think we have to do both patches in one meth...   Sep 2 2009, 10:28 AM
- - ApexDE   Yes, one for each EHCI Device.   Sep 2 2009, 10:37 AM
- - tuxianer   yes but how can I combine the 2 methods (id and eh...   Sep 2 2009, 10:40 AM
- - ApexDE   The RTF File you posted contains the two fixes and...   Sep 2 2009, 10:45 AM
- - tuxianer   but it doesn't compile   Sep 2 2009, 10:49 AM
- - ApexDE   Integrate the EHCI Section into the existing Devic...   Sep 2 2009, 10:56 AM
- - tuxianer   .   Sep 2 2009, 11:02 AM
- - ApexDE   OK, this should work: USBE: CODE Device (US...   Sep 2 2009, 11:18 AM
|- - nathan7   Hi Apex, Thanks so much for your work. I have fo...   Sep 2 2009, 06:35 PM
|- - di524up   QUOTE (ApexDE @ Sep 2 2009, 12:18 PM) OK,...   Sep 3 2009, 01:34 PM
- - tuxianer   ok now the ids are injected and they are recognize...   Sep 2 2009, 11:28 AM
- - suri2001   @ ApexDE looked at post #52, have that in my dsdt...   Sep 2 2009, 03:14 PM
- - tuxianer   you need to insert a _DTGP method just under the _...   Sep 2 2009, 04:12 PM
- - ApexDE   @ nathan Your UHCI USB Devices need to be patched...   Sep 2 2009, 06:39 PM
|- - nathan7   QUOTE (ApexDE @ Sep 2 2009, 10:39 AM) @ n...   Sep 2 2009, 06:52 PM
- - ApexDE   Absolutely   Sep 2 2009, 06:55 PM
|- - nathan7   OK my UHCI devices are called USB instead of UHC 1...   Sep 2 2009, 07:41 PM
- - ApexDE   @nathan You renamed your USB Devices from USB0-5 ...   Sep 2 2009, 07:43 PM
|- - nathan7   QUOTE (ApexDE @ Sep 2 2009, 11:43 AM) @na...   Sep 2 2009, 07:48 PM
|- - nathan7   I just tried it, and strangely, all but 2937 show ...   Sep 2 2009, 08:05 PM
- - ApexDE   @nathan You can leave the names as they are. I al...   Sep 2 2009, 08:03 PM
- - ApexDE   Sorry for confusing you, US31 is USB3 but address ...   Sep 2 2009, 09:52 PM
|- - nathan7   Wow, cool I just did that on my own and it works...   Sep 2 2009, 09:59 PM
- - tuxianer   ok so thi should be correct:   Sep 2 2009, 10:01 PM
- - ApexDE   @ nathan @ tuxguy That's OK. Gigabyte BIOS...   Sep 2 2009, 10:03 PM
|- - keeza   Apex hoping you can help me. Your fix is the only...   Sep 3 2009, 06:53 AM
- - tuxianer   ok thank you very much. But I can't wake up wi...   Sep 2 2009, 10:07 PM
|- - kizwan   QUOTE (tuxianer @ Sep 3 2009, 06:07 AM) o...   Sep 3 2009, 04:47 AM
- - suri2001   @tuxianer: Hallo landsmann! @ Here's t...   Sep 3 2009, 06:47 AM
- - tuxianer   @kizwan Asus have P35 boards too. This is only the...   Sep 3 2009, 07:56 AM
- - hchinasky   Finally it seems that your patch worked in my leno...   Sep 3 2009, 10:51 AM
2 Pages V   1 2 >

Reply to this topic Start new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 31st July 2010 - 02:06 PM