Jump to content

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


  • Please log in to reply
365 replies to this topic

#221
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
I use a SATA Hdd and in BIOS I deactivated AHCI. To boot in IDE mode I use IOATAFamily.kext. I use IDE mode, because my AHCI BIOS is very slow to boot up. Is there any advantage in running AHCI mode instead of IDE?

#222
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

I use a SATA Hdd and in BIOS I deactivated AHCI. To boot in IDE mode I use IOATAFamily.kext. I use IDE mode, because my AHCI BIOS is very slow to boot up. Is there any advantage in running AHCI mode instead of IDE?


http://expertester.w...mark-advantage/

At the end of the day your just adding the device id to SATA/ IDE part of DSDT. The change in DSDT fron IDE1/2 to SATA is cosmetic.

D

#223
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
Should I inject IDE2 too? Or only IDE1?

#224
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

Should I inject IDE2 too? Or only IDE1?


Have to admitt I'm not sure - It looks like you'll have to apply the Method(_DSm ... ) to both IDE1 and 2 as they're not from a common route SATA.
Give it a go and see.

D.

#225
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
I have injected IDE2 too, but I do not get more entries in Sys Profiler.

#226
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

I have injected IDE2 too, but I do not get more entries in Sys Profiler.


are SATA devices now identified correctly without PortInjector kext?

#227
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
I never used an Injector before but I run only Leopard.

#228
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

I never used an Injector before but I run only Leopard.


The point of this approch is to use vanilla ACHIPort and BlockStorage kexts - although at the moment you will still need a patched or Legacy BlockStorage Kext.

#229
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

Just to save me going back to the PortInjector kext to find out, does anybody have the ICH9-R id to hand?

Sorry for being lazy!


0x22, 0x29, 0x00, 0x00

Thanks a lot ;) .... and it doesn't sodding work LOL

#230
tuxianer

tuxianer

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 155 posts
I use vanilla AHCIPort and no other patched kexts for AHCI.

The point of this approch is to use vanilla ACHIPort and BlockStorage kexts - although at the moment you will still need a patched or Legacy BlockStorage Kext.



#231
StillCantGetIt

StillCantGetIt

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts
It sounds as though the drive is stopping shortly after wake, and what I've got is just something in ram. Could this be an issue with the sleep image?
On a side note, I honestly don't understand how repairing the disk permissions will help with a dsdt created error. Primarily since dsdt happens before mach_kernel load.

I've experianced a KP since adding ESB2 id.
Repaired permissions and all appears OK since - However I think mitch_de is right in using the motherboards native SATA driver id and IOBlockStorageinjector.kext.

D.



#232
chibchan

chibchan

    InsanelyMac Protégé

  • Members
  • Pip
  • 29 posts
I post here only cause i've added everything thru this thread.

Since adding audio,usb fix and lan to dsdt, i can no longer do 400 fsb. Won't wake from sleep.
Without dsdt i can. What have i overlooked?

Attached Files



#233
StillCantGetIt

StillCantGetIt

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts
Alright, I made my ICH9 based GA-G33M-S2L work out, but I had to sacrifice my SATA DVD drive. Once I disconnected my drive, I had no trouble sleeping.

Right now, I'm on 10.6 and the only DSDT.aml patches I have are the standards for RTC/HPET, and APEX's combined UHCI device-id/ EHCI device-id patches. I also have the following kexts:
UUID
famesmc
AHCIPortInjector
IOAHCIBlockInjector
OpenHaltRestart
Disabler (only disables upstreamuser... kext, not power mgmt)

My bios SATA settings are AHCI Mode, Native Mode, IDE Controller Off.

Any ideas on how I can keep my DVD drive and wake up from sleep? Looks like having my DVD drive connected prevents my hard drive from being accessed when I wake up. I can still sometimes move windows around, and move the mouse. After I play with something that isn't in ram, then I end up only being able to move my beachball mouse around. I've never read about something quite like this, so I'm out of my element.

It sounds as though the drive is stopping shortly after wake, and what I've got is just something in ram. Could this be an issue with the sleep image?
On a side note, I honestly don't understand how repairing the disk permissions will help with a dsdt created error. Primarily since dsdt happens before mach_kernel load.



#234
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?


Ok, I've found the solution to this problem!!
After an automatic and instatantanely wake up, I investigated my system.log and i found this:
kernel[0]: Wake reason = LANC
The problem is the Device (LANC), in my dsdt:
Device (LANC)
			{
				Name (_ADR, 0x00190000)
				Name (_PRW, Package (0x02)
				{
					0x0D, 
					0x04
				})
			}

Wow!! With _PRW in a device, the device can wake up the system!!

THE SOLUTION IS DELETE _PRW!!!

Device (LANC)
			{
				Name (_ADR, 0x00190000)
			}

The end.
I think this works with any other dsdt.

#235
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,050 posts
  • Gender:Male
  • Location:UK

I've managed to get the icons recognized as internal by "tricking" the device into thinking it's ESB2.

Method (_DSM, 4, NotSerialized)
				{
					Store (Package (0x02)
						{
							"device-id", 
							Buffer (0x04)
							{
								0x81, 0x26, 0x00, 0x00
							}
						}, Local0)
					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					Return (Local0)
				}

This works for the GA-EP45-DS3L with ICH10. SATA wasn't in my DSDT so I added this code before Device (PRIM) and I can confirm it works and I now have my SATA devices recognised as Intel ESB2 AHCI in System Profiler. This allowed me to remove IOAHCIBlockStorageInjector.kext from /E/E.

Thanks you. :)

#236
kpkp

kpkp

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 433 posts
MSI P43 Neo DSDT patch?
After reading and applying the DSDT on my P5K-E Wifi A/P (Sleep, sound and SATA ESB2 AHCI fix) i was starting to wondering if i could do the same for the MSI P43 Neo...

After a successful install i am having some problems that a patched dsdt might solve... The issues are with the shutdown, sleep and audio (Realtek ALC888).

So i was wondering if there is a DSDT genius wiling to help or someone willing to share his P43 chipset based motherboard experience, because i am no sure what's exactly preventing the sleep/shutdown from working.

If u need additional info let me know.

Thx in advance.

Attached Files



#237
SMF

SMF

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 188 posts
I have been trying to patch the device ID of my broadcom based wireless card in my Dell E6500 and have had no luck so far. Anyone try this? I would think it might work since all it takes is a simple plist edit to get the card to work in Leopard.

Thanks,
SMF

#238
Master Chief

Master Chief

    Just Chief

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,176 posts
  • Gender:Male

This works for the GA-EP45-DS3L with ICH10. SATA wasn't in my DSDT so I added this code before Device (PRIM) and I can confirm it works and I now have my SATA devices recognised as Intel ESB2 AHCI in System Profiler. This allowed me to remove IOAHCIBlockStorageInjector.kext from /E/E.

Thanks you. :)


You can also simply rename the value of Chipset Name in the Info.plist of LegacyAppleAHCIPort.kext from the usual ICHn AHCI to ESB2 AHCI :P

N.b. This will initialize "AHCI Port Hot Plug" to False.

#239
poofyhairguy

poofyhairguy

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 252 posts

You can also simply rename the value of Chipset Name in the Info.plist of LegacyAppleAHCIPort.kext from the usual ICHn AHCI to ESB2 AHCI :P

N.b. This will initialize "AHCI Port Hot Plug" to False.


Using this awesome concept you have put forth, here is a modified AHCIPortInjector.kext to get rid of orange icons!

http://www.insanelym...howtopic=186653

Thanks!

#240
keypox

keypox

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 320 posts
  • Location:Somewhere out there

You can also simply rename the value of Chipset Name in the Info.plist of LegacyAppleAHCIPort.kext from the usual ICHn AHCI to ESB2 AHCI :D

N.b. This will initialize "AHCI Port Hot Plug" to False.


this is all you haev to do?

cause i dont understand this guide to well...





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