Jump to content

USB sleep then wake "Device Removal" problem


  • Please log in to reply
150 replies to this topic

#61
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
USB Bus is regcognized correct as integrated. But the USB High Speed Bus is still expansion slot. I have Attached my default USB DSDT and the fixed one.
Or does I have to put s.th. like this in my EHCI devices:

Method (_DSM, 4, NotSerialized)
						  {
							 Store (Package (0x04)
								 {
								   "AAPL,clock-id",
								   Buffer (0x01)
								   {
									   0x01
								   },
								   "device_type",
								   Buffer (0x05)
								   {
									  "EHCI"
								   }
								  }, Local0)
							  DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
							  Return (Local0)
						  }

Attached Files



#62
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
You have patched your Device-IDs, but you need the EHCI Fix for your "USE2" and "USBE" devices too (these are the EHCI Devices).

Insert this Method in USBE, the same way you inserted the device-id injection.
Method (_DSM, 4, NotSerialized)
						{
						   Store (Package (0x04)
							   {
								 "AAPL,clock-id",
								 Buffer (0x01)
								 {
									 0x01
								 },
								 "device_type",
								 Buffer (0x05)
								 {
									"EHCI"
								 }
								}, Local0)
							DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
							Return (Local0)
						}


And this in USE2
Method (_DSM, 4, NotSerialized)
						{
						   Store (Package (0x04)
							   {
								 "AAPL,clock-id",
								 Buffer (0x01)
								 {
									 0x02
								 },
								 "device_type",
								 Buffer (0x05)
								 {
									"EHCI"
								 }
								}, Local0)
							DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
							Return (Local0)
						}






Please report back if sleep/wake on USB Mouse works. Many EP35 users have problems with sleep / wake via USB Mouse when NOT using device-id injection.

#63
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
so does I have to apply both fixes for the EHCI devices?

#64
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
@tuxguy

Yes, read my post


@ P35 Mainboard Users

It seems that P35 Users need to patch the USB-Device-IDs too. If you have issues with the EHCI Sleep-Fix, check if you patched the USB Device-IDs too. P45 Users just need the EHCI-Fix as they already have the correct USB Device-IDs. Wake with USB Mouse should work for P35 Users too, after applying the USB Device-ID Patches.

Good Luck, and report back here!

#65
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
but I think we have to do both patches in one method. becaus adding two methods causing a lot of errors

Attached Files



#66
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
Yes, one for each EHCI Device.

#67
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
yes but how can I combine the 2 methods (id and ehci patch).

#68
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
The RTF File you posted contains the two fixes and should compile. It's hard to read RTF Files, please post as txt files. If something doesn't work, give more input like compile errors et cetera

#69
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
but it doesn't compile

Attached Files



#70
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
Integrate the EHCI Section into the existing Device-ID Injection part. Please post your DSDT as txt file.

#71
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
.

Attached Files



#72
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
OK, this should work:

USBE:
Device (USBE)
			{
				Name (_ADR, 0x001D0007)
				Method (_S3D, 0, NotSerialized)
				{
					If (LEqual (OSFL, 0x02))
					{
						Return (0x02)
					}

					Return (0x03)
				}

				Name (_PRW, Package (0x02)
				{
					0x0D, 
					One
				})

				Method (_DSM, 4, NotSerialized)
				{
					Store (Package (0x06)
						{
							"device-id",
							Buffer (0x04)
							{
								0x3A, 0x3A, 0x00, 0x00
							},
								 "AAPL,clock-id",
								 Buffer (0x01)
								 {
									 0x01
								 },
								 "device_type",
								 Buffer (0x05)
								 {
									"EHCI"
								 }

						}, Local0)
					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					Return (Local0)
				}
 
			}



USE2:
Device (USE2)
			{
				Name (_ADR, 0x001A0007)
				Method (_S3D, 0, NotSerialized)
				{
					If (LEqual (OSFL, 0x02))
					{
						Return (0x02)
					}

					Return (0x03)
				}

				Name (_PRW, Package (0x02)
				{
					0x0D, 
					One
				})

				Method (_DSM, 4, NotSerialized)
				{
					Store (Package (0x06)
						{
							"device-id",
							Buffer (0x04)
							{
								0x3C, 0x3A, 0x00, 0x00
							},
								 "AAPL,clock-id",
								 Buffer (0x01)
								 {
									 0x02
								 },
								 "device_type",
								 Buffer (0x05)
								 {
									"EHCI"
								 }

						}, Local0)
					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					Return (Local0)
				}

			}




I tested it, it compiles fine here. Good Luck!

#73
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
ok now the ids are injected and they are recognized as internal devices too. The device removal error is gone. But no wakeup by keyboard or mouse is possible.

#74
suri2001

suri2001

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
@ ApexDE

looked at post #52, have that in my dsdt already (although a bit further down...)

added to mine the code you sent tuxguy, but now all i get are 90 errors complaining about invalid signs.

ill add my dsdt, perhaps you can have a look at it?

already included audio hdef and pwrbfix from dsdtse app, but still no wake and usb internal
:mellow:


im using an ep35-ds4, efi string for ethernet and gfx...

Attached Files

  • Attached File  dsdt.txt   185.82KB   14 downloads


#75
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
you need to insert a _DTGP method just under the _WAK method.

whats about this I have found:
Method (_DSM, 4, NotSerialized)
				{
					Store (Package (0x0f)
						{
							"device-id",
							Buffer (0x04)
							{
								0x34, 0x3A, 0x00, 0x00  //the values below
							},
							"AAPL,clock-id",   // property needed for sleep support
							Buffer (One)
							{
								0x0a   
							}, 

								"built-in",
								Buffer ()
								{
										0x00
								},

							  "device_type",   //not sure it is useful
							  Buffer (0x05)
							  {
								  "EHCI"
							  },
 
							
							"AAPL,current-available", 
							0x04B0, 
							"AAPL,current-extra", 
							0x02BC, 
							"AAPL,current-in-sleep",  // to solve a problem with sleep when stick is inserted
							0x03E8, 

							Buffer (0x01)
							{
								0x00
							}
						}, Local0)
					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					Return (Local0)
				}


#76
nathan7

nathan7

    InsanelyMac Protégé

  • Members
  • PipPip
  • 76 posts
Hi Apex,

Thanks so much for your work. I have followed your instructions and come up with a DSDT that compiles fine, and it shows my USB High Speed Bus as built-in now, but when I sleep the power supply and light stays on. I also tried the latest USBE and USE2 sections you posted above with same result. I have attached my dsl in hopes you can help. My system sleeps fine with standard DSDT from DSDT patcher. The patcher works with and without New HPET, which is best? I am fooling with this on a 10A421 install, waiting for my "upgrade" disc to arrive. Thanks again.

Attached Files



#77
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
@ nathan

Your UHCI USB Devices need to be patched with the device-id injection too. Check out

http://www.insanelym...p...t&p=1247462

I posted the USBE and USE2 sections there, patch USB0-5 as described in post #1 there

#78
nathan7

nathan7

    InsanelyMac Protégé

  • Members
  • PipPip
  • 76 posts

@ nathan

Your UHCI USB Devices need to be patched with the device-id injection too. Check out
http://www.insanelym...howtopic=168014


Ahhh I see. UHCI currently shows as Expansion Slot, so this should fix that, too? This looks a little complicated, so I need to read and see if I can figure it out. Thanks.

#79
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
Absolutely

#80
nathan7

nathan7

    InsanelyMac Protégé

  • Members
  • PipPip
  • 76 posts
OK my UHCI devices are called USB instead of UHC 1-6, except there is no USB6. In between 1-3 and 4-5 is US31. Then I have USBE after USB5. All of the device id's match up with that post you linked. Should I leave out USB6 or add it? Here is what I have so far, with USB6 added.

OK my UHCI devices are called USB instead of UHC 1-6, except there is no USB6. In between 1-3 and 4-5 is US31. Then I have USBE after USB5. All of the device id's match up with that post you linked. Should I leave out USB6 or add it? Here is what I have so far, with USB6 added.


I tried to compile and got lots of errors. I changed USB1-6 to USB0-5 and now it compiles. Am I good to go now?

Attached Files







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy