Jump to content

DSDT: trick retail drivers by changing "device-id" (e.g USB)


  • Please log in to reply
365 replies to this topic

#81
Boombeng

Boombeng

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 598 posts
  • Gender:Male
  • Location:France
Hi,

I tried the method on a P5K-se (P35 ICH9) who didn't want to wake after sleep but now with the fix it wakes immediatly after sleep and restart doesn't work anymore.

Here is the wake log :

kernel Wake reason = USB0 EUSB USBE USB3 USB4 USB6

EDIT

No sleep is because of ATI graphic card, without ATI kexts sleep works

#82
enb14

enb14

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 615 posts
  • Gender:Male
  • Location:Central America
Guys this is my DSDT.dsl file of my DP45SG motherboard ICH10-R and problems with USB, here is what I've changed but still sleeps doesn't seems to wake up

[codebox] Device (USB0)
{
Name (_ADR, 0x001D0000)
OperationRegion (BAR0, PCI_Config, 0xC4, One)
Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2,
Offset (0x01)
}

Name (_S4D, 0x02)
Name (_S3D, 0x02)
Name (_S2D, 0x02)
Name (_S1D, 0x02)
Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, USBW)
}
Else
{
Store (Zero, USBW)
}
}

Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x03, 0x03))
}
//OSX
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x02)
{
"device-id",
Buffer (0x04)
{
0x34, 0x3A, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
[/codebox]

Attached Files



#83
zhell

zhell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 125 posts
  • Gender:Male

Guys this is my DSDT.dsl file of my DP45SG motherboard ICH10-R and problems with USB, here is what I've changed but still sleeps doesn't seems to wake up

Get the debug kexts. Your problem seems to be unrelated to this fix. Injecting device-ids that your board has does nothing.

#84
lukamar

lukamar

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 402 posts
  • Gender:Male
  • Location:Italy
Hi!! Great work zhell!!

I confirm that this method works, with ICH9M on Laptop.

Devices UHCI 0...UHCI 5 have the following addresses and device IDs:

UHCI 0: 1D	2934 > 3A34
UHCI 1: 1D,1  2935 > 3A35
UHCI 2: 1D,2  2936 > 3A36
UHCI 3: 1A	 2937 > 3A37
UHCI 4: 1A,1  2938 > 3A38
UHCI 5: 1D,3  2939 > 3A39
EHCI 1: 1D,7  293A > 3A3A
EHCI 2: 1A,7  293C > 3A3C

But, that's the problem, this method worked only for the first time that I stopped the laptop. For the next times, my laptop goes to sleep only for a second, after it auto-wake up immediately.

Any solution?

Edited by lukamar, 03 August 2009 - 01:54 PM.


#85
zhell

zhell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 125 posts
  • Gender:Male

Hi!! Great work zhell!!

I confirm that this method works, with ICH9M on Laptop.
But, that's the problem, this method worked only for the first time that I stopped the laptop. For the next times, my laptop goes to sleep only for a second, after it auto-wake up immediately.

Thanks for your feedback and for providing the device-ids for other readers.
If it goes to sleep completely then this particular fix probably works. However, this is only the first step and may bring to surface new issues :-(
To fix the issue of immediate wake-up, there are other threads around. One suggests to enable "Restart automatically after a power failure" in Energy Saver preferences.

#86
lukamar

lukamar

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 402 posts
  • Gender:Male
  • Location:Italy

Thanks for your feedback and for providing the device-ids for other readers.
If it goes to sleep completely then this particular fix probably works. However, this is only the first step and may bring to surface new issues :-(
To fix the issue of immediate wake-up, there are other threads around. One suggests to enable "Restart automatically after a power failure" in Energy Saver preferences.


Tnx you too.
"Restart automatically after a power failure" option wasn't removed from 10.5.5?

#87
zhell

zhell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 125 posts
  • Gender:Male

Tnx you too.
"Restart automatically after a power failure" option wasn't removed from 10.5.5?

man pmset
:rolleyes:

#88
lukamar

lukamar

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 402 posts
  • Gender:Male
  • Location:Italy
He he he..tnx man. But I havn't resolved with
sudo pmset autorestart 1


#89
enb14

enb14

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 615 posts
  • Gender:Male
  • Location:Central America

Get the debug kexts. Your problem seems to be unrelated to this fix. Injecting device-ids that your board has does nothing.


zhell, finally those kexts for 10.5.7 are available, now what I have to do after I got those kexts installed?

#90
zhell

zhell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 125 posts
  • Gender:Male
Great, thanks for letting me know about those debug kexts. If you dowload them, you obtain two installer packages. One to install the debug USB kexts and one to install the default USB kexts. First make sure you have a backup of your installation. Then install the debug kexts. After reboot, go to Console (in Utilities folder) and search for "USB". See if you find any helpful messages such as "not recognized", "power management disabled" etc.

#91
enb14

enb14

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 615 posts
  • Gender:Male
  • Location:Central America
this is what I got so look at my USB error log.

Attached Files



#92
Cheezmen

Cheezmen

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts
Is there a separate guide or place i can get info on adding DTGP to my dsdt.dsl file?

#93
zhell

zhell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 125 posts
  • Gender:Male

Is there a separate guide or place i can get info on adding DTGP to my dsdt.dsl file?

Maybe this helps: http://www.insanelym...amp;pid=1180037

#94
bullys

bullys

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts
hi guys,

i am a very noob on patching dsdt ;) so any help to my questions would be really appreciated:

im running on 10.5.7 (darwin 9.7.0 kernel) on my Gigabyte EP35-DS3. Everything works fine except sleep.
in 10.5.6 sleep never woke up... so i tried it after updating.

sleep works now as followed:
system goes to sleep - wakes up immediately (caused by hdd activity) - then error message comes up that usb drive was removed and ext. usb hdd (time machine backups) ejects and reconnets.
also after this procedure my lan doesnt work anymore... have to deactivate and reenable it to get it work.

will this method here fix this ? or can i try other things without patching.

i tried so long:
- different IOUSBFamily.kext - no change
- deleting IOPCMCIAFamily.kext - sleeps fine (no fans) but doesnt wake up

can u pls help and point me to the right direction ?
can i just use the txt. file posted here for the GA EP35-DS3 ?

thx for ur help
cheers bullys

#95
zhell

zhell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 125 posts
  • Gender:Male

this is what I got so look at my USB error log.

EHCI controller unable to take control from BIOS	
AppleUSBEHCI[0x67c0800]: unable to obtain ownership: 0xe00002be	
AppleUSBEHCI[0x67c0800]::UIMInitialize - Error occurred (0xe00002be)
Try Chameleon 2RC1 with EHCIAcquire=yes or something like that. Look at the read me.

#96
bullys

bullys

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts
none of this works for me :((
i dont have UHCI in my dsdt.dsl neither brutal deleting of all USB devices from that file lets my darling sleep...
couldnt u give me advice ?
cheers bullys

#97
Cheezmen

Cheezmen

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts
Thanks, that guide did help :rolleyes:

Now my computer goes to sleep properly, but as soon as it actually sleeps, it just "restarts" and loads the bios like i restarted

Do you know what might cause this issue?

#98
enb14

enb14

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 615 posts
  • Gender:Male
  • Location:Central America

EHCI controller unable to take control from BIOS	
AppleUSBEHCI[0x67c0800]: unable to obtain ownership: 0xe00002be	
AppleUSBEHCI[0x67c0800]::UIMInitialize - Error occurred (0xe00002be)
Try Chameleon 2RC1 with EHCIAcquire=yes or something like that. Look at the read me.


zhell I did it, with debug kexts it hangs and goes black screen, with normal kexts it removes those messages.

#99
kdawg

kdawg

    InsanelyMac Legend

  • Donators
  • 508 posts
  • Gender:Male
  • Location:Boston, MA
zhell, what would happen if you tried to patch the "seventh" UHCI device? Where does the seventh one come from?

Something like so:
Device (USB3)
			{
				Name (_ADR, 0x001D0003)
				Method (_DSM, 4, NotSerialized)
				{
					Store (Package (0x02)
						{
							"device-id", 
							Buffer (0x04)
							{
								0x33, 0x3A, 0x00, 0x00
							}
						}, Local0)
					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					Return (Local0)
				}
			}


#100
zhell

zhell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 125 posts
  • Gender:Male

zhell, what would happen if you tried to patch the "seventh" UHCI device? Where does the seventh one come from?

I don't know what would happen, but I don't think it would make much sense. This 7th port does not exist in hardware and it's probably best to ignore it. As long as it is not shown in ioreg, OS X probably does not care about it.
I read in the board manual of the DP35DP that the 7th UHCI can somehow be remapped somewhere else, I'm sorry I don't recall this more precisely.





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